zephyr/drivers
Erwan Gouriou 77db273f6f stm32: clock_control: Enforce HCLK prescaler value
STM32 clock control subsystem allows to configure a different
frequency value for core clock (SYSCLK) and AHB clock (HCLK).
Though, it is HCLK which is used to feed Cortex Systick timer
which  is used in zephyr as reference system clock.
If HCLK frequency is configured to a different value from SYSCLK
frequency, whole system is exposed to desynchro between zephyr clock
subsytem and STM32 HW configuration.
To prevent this, and until zephyr clock subsystem is changed to be
aware of this potential configuration, enforce AHB prescaler value
to 1 (which is current default value in use for all STM32 based
boards).

On STM32H7, enforce D1CPRE which fills the same role as ABH precaler.

On STM32MP1, the equivalent setting is done on A7 core, so it is
not exposed to the same issue as long as SYS_CLOCK_HW_CYCLES_PER_SEC
is set with the 'mlhclk_ck' clock frequency value. Update
matching boards documentation.

Fixes #17188

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2019-08-03 14:18:55 -04:00
..
adc drivers/adc: provide API to access reference voltage 2019-08-01 13:28:41 +02:00
audio cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
bluetooth Bluetooth: drivers: ipm_st32wb: Fix compilation 2019-07-09 21:35:44 +03:00
can drivers: can: Add CAN shell 2019-07-29 10:27:54 +03:00
clock_control stm32: clock_control: Enforce HCLK prescaler value 2019-08-03 14:18:55 -04:00
console drivers: ipm_console: increase coverage stack size 2019-07-04 07:25:44 -04:00
counter dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
crypto cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
display dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
dma boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
entropy cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
espi drivers: espi: Add driver for microchip XEC family 2019-07-25 08:23:38 -07:00
ethernet dts: riscv32: fix reg-names for liteeth 2019-07-23 10:51:21 +02:00
flash drivers: fix printf formatting in flash drivers 2019-08-01 11:33:17 -07:00
gpio drivers/gpio: Adding missing braces for XEC driver 2019-08-02 23:24:34 +03:00
hwinfo cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
i2c drivers/i2c: Add support of stm32mp1 2019-07-31 05:59:16 -04:00
i2s cleanup: include/: move misc/__assert.h to sys/__assert.h 2019-06-27 22:55:49 -04:00
ieee802154 soc: nordic: Add HAS_HW_NRF_RADIO_IEEE802154 Kconfig option 2019-07-31 16:09:30 +03:00
interrupt_controller riscv32: rename to riscv 2019-08-02 13:54:48 -07:00
ipm boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
led dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
led_strip dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
modem cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
net tests: net: ppp: Add unit tests for PPP driver 2019-07-29 10:24:46 +03:00
neural_net cleanup: include/: move gna.h to drivers/gna.h 2019-06-27 22:55:49 -04:00
pci cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
pcie drivers/pcie/shell: add basic probe for MSI-X capability 2019-06-10 10:52:02 -04:00
pinmux driver/pinumx: Adding missing braces for XEC driver 2019-08-02 23:24:34 +03:00
ptp_clock net: ptp: clock: Add usermode support to ptp_clock_get() 2019-06-25 15:22:51 +03:00
pwm dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
rtc cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
sensor driver/sensor: add STTS751 temperature sensor 2019-07-31 10:32:10 -04:00
serial drivers: serial: uart_rtt: Virtual UARTs over RTT channels 2019-07-31 17:23:57 +02:00
spi drivers: spi: spi_ll_stm32: Long line cleanup 2019-08-01 11:58:02 -04:00
timer drivers: timer: nrf_rtc_timer: Fix set_comparator corner case 2019-08-01 12:29:36 +02:00
usb boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
watchdog drivers: wdog_cmsdk_apb: Get clock frequency from DTS 2019-07-24 15:10:02 +02:00
wifi wifi: eswifi: Implement TCP listen/accept 2019-07-02 09:08:59 +03:00
CMakeLists.txt boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
Kconfig boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00