zephyr/drivers
Jeremy LOCHE 33abbbfd85 drivers: clock_control: stm32h7: Add HSE,HSI,CSI,PLL sysclk opt.
Add HSE,HSI,CSI,PLL as system clock options.
Also add correct configuration of the PLL.

New sysclk options:
- HSI with: CONFIG_CLOCK_STM32_SYSCLK_SRC_HSI=y
- HSE with: CONFIG_CLOCK_STM32_SYSCLK_SRC_HSE=y
- CSI with: CONFIG_CLOCK_STM32_SYSCLK_SRC_CSI=y
Existing sysclk options:
- PLL with: CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y

PLL clock options:
- More PLL source clocks:
Existing:
	1. HSE with: CONFIG_CLOCK_STM32_PLL_SRC_HSE=y
New:
	2. HSI with: CONFIG_CLOCK_STM32_PLL_SRC_HSI=y
	3. CSI with: CONFIG_CLOCK_STM32_PLL_SRC_CSI=y
- PLL vco input range is auto-calculated based on PLL DIVM1

-> Example for sysclock 96MHz generated with PLL from HSI
CONFIG_CLOCK_STM32_PLL_SRC_HSI=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y
CONFIG_CLOCK_STM32_PLL_M_DIVISOR=4
CONFIG_CLOCK_STM32_PLL_N_MULTIPLIER=12
CONFIG_CLOCK_STM32_PLL_P_DIVISOR=2
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=4
CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2

Use LL_SetFlashLatency function from stm32h7xx_ll_utils.h
instead to setup the correct latency.

Signed-off-by: Jeremy LOCHE <lochejeremy@gmail.com>
2020-07-27 13:24:27 +02:00
..
adc drivers: adc_mcp320x: respect devicetree cs-gpios flags 2020-07-09 06:07:07 -05:00
audio zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bluetooth drivers: bluetooth: rpmsg: validate heap size configuration 2020-07-10 13:13:46 +02:00
can can: mcp2515: Add chip select flags 2020-07-01 16:40:03 -05:00
clock_control drivers: clock_control: stm32h7: Add HSE,HSI,CSI,PLL sysclk opt. 2020-07-27 13:24:27 +02:00
console drivers: console: gsm_mux: fix timeout after timeout API change 2020-07-07 15:08:43 +02:00
counter drivers: counter: rtc for stm32f0 doc series 2020-07-24 16:16:21 +02:00
crypto zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dac drivers: dac: mcux_dac32: add Kconfig option for enabling test output 2020-07-03 08:05:25 -04:00
debug
display driver: display: Added extra asserts to SDL display 2020-07-21 15:12:05 +02:00
dma drivers: dma: Add pl330 dma driver 2020-07-24 11:54:31 +02:00
eeprom drivers: eeprom_at2x: respect devicetree cs-gpios flags 2020-07-09 06:07:07 -05:00
entropy drivers: entropy: cc13xx_cc26xx: add power management support 2020-07-10 11:45:31 +02:00
espi drivers: espi: xec: Fix incorrect ACK to eSPI host about channel readiness 2020-07-26 09:02:35 -04:00
ethernet drivers/ethernet: stm32: Enable Kconfig symbol ETH_STM32_HAL using dts 2020-07-24 12:03:33 +02:00
flash drivers: flash: stm32wb: disable Page Erase at end of erase_page() 2020-07-20 12:48:10 +02:00
gpio gpio_intel_apl: use DEVICE_MMIO 2020-07-17 11:38:18 +02:00
hwinfo shell: enable modules by default if shell is enabled 2020-06-24 21:37:12 -04:00
i2c drivers: eeprom_slave: add const qualifier to read-only data 2020-07-22 21:41:12 +02:00
i2s drivers: use macro to define device structures 2020-06-08 15:01:52 -04:00
ieee802154 drivers: ieee802154: rf2xx: Add CS gpio flags from DT 2020-07-08 23:22:19 -04:00
interrupt_controller x86: apic: use device MMIO APIs 2020-07-17 11:38:18 +02:00
ipm drivers: use macro to define device structures 2020-06-08 15:01:52 -04:00
kscan zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
led zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
led_strip drivers: led_strip: ws2812_gpio: Adapt to clock using onoff 2020-07-20 16:22:21 +02:00
lora drivers: lora: sx126x: Use the new pin helpers 2020-07-13 13:11:59 +02:00
modem random: Include header where it is used 2020-07-08 21:05:36 -04:00
net random: Include header where it is used 2020-07-08 21:05:36 -04:00
neural_net drivers: use macro to define device structures 2020-06-08 15:01:52 -04:00
pcie drivers: pcie: refactor pcie directory to make RC and EP independent 2020-07-14 19:35:31 -04:00
peci zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pinmux drivers: pinumx: stm32: pinmux_stm32h7: added ethernet pins 2020-07-21 15:12:18 +02:00
ps2 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ptp_clock
pwm drivers: pwm: stm32: fix polarity setting 2020-07-07 15:09:03 +02:00
sensor sensor: shell: Add a 'battery' command 2020-07-23 12:12:09 -04:00
serial Serial: NSIM: remove legacy ARC-NSIM UART driver 2020-07-20 13:34:34 -04:00
spi drivers: spi: fix the fast path on the SAM0 driver 2020-07-06 10:02:14 -04:00
timer drivers: timer: nrf: Adapt to clock_control changes 2020-07-20 16:22:21 +02:00
usb drivers: usb: device: nrf: Adapt to control clock using onoff 2020-07-20 16:22:21 +02:00
video zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
watchdog drivers: wdt: sam0: fix register access in feed() 2020-07-11 12:40:18 -04:00
wifi drivers: wifi: esp: Retry command for getting IP settings 2020-07-24 12:01:30 +02:00
CMakeLists.txt drivers: pcie: refactor pcie directory to make RC and EP independent 2020-07-14 19:35:31 -04:00
Kconfig