Files
zephyr/boards/u-blox/ubx_evk_iris_w1/CMakeLists.txt
Tarang Patel b43382c685 boards: u-blox: ubx_evk_iris_w1_rw612: fix flash config
correct flash_config.c file for different flash varient
fix spelling error across board files
update boards/deprecated.cmake to help older release support

Signed-off-by: Tarang Patel <tarang3399.patel@gmail.com>
2026-01-15 15:24:45 +01:00

35 lines
1.0 KiB
CMake

#
# Copyright 2022-2025 NXP
# Copyright (c) 2025 u-blox AG
# SPDX-License-Identifier: Apache-2.0
#
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")
zephyr_library_sources(macronix_flash_config.c)
elseif(BOARD_REVISION STREQUAL "fidelix")
zephyr_library_sources(fidelix_flash_config.c)
else()
message(FATAL_ERROR "Unsupported board revision: ${BOARD_REVISION}")
endif()
if(CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
message(FATAL_ERROR "mutually exclusive on RW612_BGA due to shared PCB nets "
"between the ethernet PHY and the external oscillator")
endif()
# Set TX power limit
if(CONFIG_WIFI_NXP)
zephyr_include_directories(
tx_pwr_limits
)
zephyr_compile_definitions(WIFI_BT_TX_PWR_LIMITS_OVERRIDE="wlan_txpwrlimit_cfg_WW_rw610.h")
endif()
endif()