soc: stm32f3x: clean up after Cube LL clock control
Following activation of Cube LL based clock control driver, this commits cleans up the useless structures for RCC definitions and remove code relative to native F3 Clock control driver. Change-Id: I6f3ee44adb09adc52927eb4b05f8a829665eb96d Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
dd481e2dc3
commit
c4154fd591
5 changed files with 1 additions and 120 deletions
|
@ -42,12 +42,9 @@ static int stm32f3_init(struct device *arg)
|
|||
irq_unlock(key);
|
||||
|
||||
/* Update CMSIS SystemCoreClock variable (HCLK) */
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
/* At reset, System core clock is set to 4MHz */
|
||||
SystemCoreClock = 4000000;
|
||||
#else
|
||||
SystemCoreClock = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue