Commit d3f6b54f authored by Scott Worley's avatar Scott Worley Committed by Christopher Friedt
Browse files

Microchip: MEC172x clock control driver



Implement a clock control driver for Microchip MEC172x handling
configuring the 32 KHz input sources for the PLL and peripheral-32k
clock domains. MEC172x differs from MEC152x. MEC152x had one 32K source
for both PLL and peripherals. MEC172x allows the two domains to use
independent 32 KHz sources. Device tree updated to provide addresses
of hardware used by the driver.

Signed-off-by: default avatarScott Worley <scott.worley@microchip.com>
parent f5b42d0a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@
	status = "okay";
};

&pcr {
	status = "okay";
};

&uart1 {
	status = "okay";
};
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ CONFIG_BOARD_MEC172XEVB_ASSY6906=y

CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000

CONFIG_CLOCK_CONTROL=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_ESP32               clock_control_esp32.c)
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_LITEX               clock_control_litex.c)
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RCAR_CPG_MSSR       clock_control_rcar_cpg_mssr.c)
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_MCHP_XEC            clock_control_mchp_xec.c)

if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
if(CONFIG_SOC_SERIES_STM32MP1X)
+2 −0
Original line number Diff line number Diff line
@@ -52,4 +52,6 @@ source "drivers/clock_control/Kconfig.litex"

source "drivers/clock_control/Kconfig.rcar"

source "drivers/clock_control/Kconfig.xec"

endif # CLOCK_CONTROL
+10 −0
Original line number Diff line number Diff line
# Microchip XEC

# Copyright (c) 2021 Microchip Technology Inc.
# SPDX-License-Identifier: Apache-2.0

config CLOCK_CONTROL_MCHP_XEC
	bool "MCHP XEC PCR clock control driver"
	depends on SOC_SERIES_MEC172X
	help
	  Enable support for Microchip XEC PCR clock driver.
Loading