1# SPDX-License-Identifier: Apache-2.0 2# 3# Copyright (c) 2024 Realtek Semiconductor Corporation, SIBG-SD7 4# 5 6if SOC_FAMILY_REALTEK_EC 7 8menuconfig REALTEK_RTS5912_BOOTROM_HEADER 9 bool "Create BOOTROM header for RTS5912" 10 help 11 The RTS5912 BOOTROM needs the information about boot up progress. 12 Invoke the 'rts5912_imgtool' to generates the RTS5912 bootrom header. 13 14if REALTEK_RTS5912_BOOTROM_HEADER 15 16config REALTEK_HEADER_CHIP 17 string 18 default "RTS5912" if SOC_RTS5912 19 20DT_CHOSEN_Z_FLASH := zephyr,flash 21FLASH_BASE := $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH)) 22 23config REALTEK_RTS5912_BOOTROM_HEADER_LOAD_ADDRESS 24 string "Set the address for BOOTROM" 25 default "$(FLASH_BASE) - 0x20" 26 help 27 This address will be used by the RTS5912 BOOTROM to decide where firmware image start. 28 29endif # REALTEK_RTS5912_BOOTROM_HEADER 30 31# Select SoC Part No. and configuration options 32rsource "*/Kconfig" 33 34endif # SOC_FAMILY_REALTEK_EC 35