Skip to content

Commit

Permalink
soc: LPC54xxx, LPC55xxx: Update to use clock control
Browse files Browse the repository at this point in the history
Use the clock control driver to get flexcomm clock
frequency

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
  • Loading branch information
mmahadevan108 authored and galak committed Oct 15, 2020
1 parent 350edf9 commit f025700
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soc/arm/nxp_lpc/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ config I2C_MCUX_FLEXCOMM
config SPI_MCUX_FLEXCOMM
default y if HAS_MCUX_FLEXCOMM
depends on SPI

config CLOCK_CONTROL_MCUX_SYSCON
default y if HAS_MCUX_SYSCON
depends on CLOCK_CONTROL
1 change: 1 addition & 0 deletions soc/arm/nxp_lpc/lpc54xxx/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config SOC_SERIES_LPC54XXX
select ARM
select HAS_MCUX
select HAS_MCUX_FLEXCOMM
select HAS_MCUX_SYSCON
select SOC_FAMILY_LPC
select CPU_CORTEX_M_HAS_SYSTICK
help
Expand Down
2 changes: 2 additions & 0 deletions soc/arm/nxp_lpc/lpc54xxx/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ config SOC_LPC54114_M4
select CPU_CORTEX_M_HAS_DWT
select CPU_HAS_ARM_MPU
select PLATFORM_SPECIFIC_INIT
select CLOCK_CONTROL

config SOC_LPC54114_M0
bool "SOC_LPC54114_M0"
select CPU_CORTEX_M0PLUS
select CPU_CORTEX_M_HAS_VTOR
select CLOCK_CONTROL

endchoice

Expand Down
1 change: 1 addition & 0 deletions soc/arm/nxp_lpc/lpc55xxx/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config SOC_SERIES_LPC55XXX
select ARM
select HAS_MCUX
select HAS_MCUX_FLEXCOMM
select HAS_MCUX_SYSCON
select HAS_MCUX_RNG
select HAS_MCUX_WWDT
select SOC_FAMILY_LPC
Expand Down
2 changes: 2 additions & 0 deletions soc/arm/nxp_lpc/lpc55xxx/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ config SOC_LPC55S16
select CPU_HAS_FPU
select ARMV8_M_DSP
select ARM_TRUSTZONE_M
select CLOCK_CONTROL
select HAS_MCUX_IAP if !TRUSTED_EXECUTION_NONSECURE

config SOC_LPC55S69_CPU0
Expand All @@ -25,6 +26,7 @@ config SOC_LPC55S69_CPU0
select CPU_HAS_FPU
select ARMV8_M_DSP
select ARM_TRUSTZONE_M
select CLOCK_CONTROL
select HAS_MCUX_IAP
select HAS_MCUX_LPADC

Expand Down

0 comments on commit f025700

Please sign in to comment.