Commit c3058ec7 authored by Mahesh Mahadevan's avatar Mahesh Mahadevan Committed by Benjamin Cabé
Browse files

dts: nxp_rw6xx: Use device tree property to configure XTAL32



Switch the XTAL32 configuration from Kconfig to devicetree

Signed-off-by: default avatarMahesh Mahadevan <mahesh.mahadevan@nxp.com>
parent f4a85bba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@

zephyr_library()
zephyr_library_sources(init.c)
dt_nodelabel(xtal32 NODELABEL "xtal32")
dt_node_has_status(xtal32_status PATH ${xtal32} STATUS okay)

if(CONFIG_NXP_RW6XX_BOOT_HEADER)
  zephyr_compile_definitions(BOARD_FLASH_SIZE=CONFIG_FLASH_SIZE*1024)
@@ -16,7 +18,7 @@ if(CONFIG_NXP_RW6XX_BOOT_HEADER)
  zephyr_library_sources(W25Q512JVFIQ_FCB.c)
endif()

if (CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND CONFIG_XTAL32K)
if (CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
	message(FATAL_ERROR "Ethernet and external 32K clock source are "
		"mutually exclusive on FRDM_RW612 due to shared PCB nets "
		"between the ethernet PHY and the external oscillator")
+0 −7
Original line number Diff line number Diff line
@@ -25,11 +25,4 @@ config LV_Z_FLUSH_THREAD

endif # LVGL

if COUNTER_MCUX_LPC_RTC_1HZ

config XTAL32K
	default y

endif # COUNTER_MCUX_LPC_RTC_1HZ

endif # BOARD_FRDM_RW612
+3 −1
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@

zephyr_library()
zephyr_library_sources(init.c)
dt_nodelabel(xtal32 NODELABEL "xtal32")
dt_node_has_status(xtal32_status PATH ${xtal32} STATUS okay)

if(CONFIG_NXP_RW6XX_BOOT_HEADER)
  if(NOT DEFINED CONFIG_BOARD_RD_RW612_BGA)
@@ -18,7 +20,7 @@ if(CONFIG_NXP_RW6XX_BOOT_HEADER)
  zephyr_library_sources(MX25U51245GZ4I00_FCB.c)
endif()

if (CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND CONFIG_XTAL32K)
if (CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
	message(FATAL_ERROR "Ethernet and external 32K clock source are "
		"mutually exclusive on RD_RW612_BGA due to shared PCB nets "
		"between the ethernet PHY and the external oscillator")
+0 −7
Original line number Diff line number Diff line
@@ -37,11 +37,4 @@ config NET_L2_ETHERNET

endif # DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING

if COUNTER_MCUX_LPC_RTC_1HZ

config XTAL32K
	default y

endif # COUNTER_MCUX_LPC_RTC_1HZ

endif # BOARD_RD_RW612_BGA
+3 −1
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@
#

if(CONFIG_NXP_RW6XX_BOOT_HEADER)
	dt_nodelabel(xtal32 NODELABEL "xtal32")
	dt_node_has_status(xtal32_status PATH ${xtal32} STATUS okay)
	zephyr_compile_definitions(BOARD_FLASH_SIZE=${CONFIG_FLASH_SIZE}*1024)

	if(BOARD_REVISION STREQUAL "macronix")
@@ -15,7 +17,7 @@ if(CONFIG_NXP_RW6XX_BOOT_HEADER)
		message(FATAL_ERROR "Unsupported board revision: ${BOARD_REVISION}")
	endif()

	if(CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND CONFIG_XTAL32K)
	if(CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
		message(FATAL_ERROR
			"Ethernet and external 32K clock source are "
			"mutually exclusive on FRDM_RW612 due to shared PCB nets "
Loading