mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
9c5df7a2a9
The LBLAW_* values determine the window configuration of the memory controller. Hence, they must be known at compile time, and cannot be implemented in the DT mechanism. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig, and assemble the final value from these. Signed-off-by: Mario Six <mario.six@gdsys.cc>
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
#if defined(CONFIG_LBLAW0)
|
|
#define CONFIG_SYS_LBLAWBAR0_PRELIM \
|
|
CONFIG_LBLAW0_BASE
|
|
#define CONFIG_SYS_LBLAWAR0_PRELIM (\
|
|
CONFIG_LBLAW0_ENABLE_BIT |\
|
|
CONFIG_LBLAW0_LENGTH \
|
|
)
|
|
#endif
|
|
|
|
#if defined(CONFIG_LBLAW1)
|
|
#define CONFIG_SYS_LBLAWBAR1_PRELIM \
|
|
CONFIG_LBLAW1_BASE
|
|
#define CONFIG_SYS_LBLAWAR1_PRELIM (\
|
|
CONFIG_LBLAW1_ENABLE_BIT |\
|
|
CONFIG_LBLAW1_LENGTH \
|
|
)
|
|
#endif
|
|
|
|
#if defined(CONFIG_LBLAW2)
|
|
#define CONFIG_SYS_LBLAWBAR2_PRELIM \
|
|
CONFIG_LBLAW2_BASE
|
|
#define CONFIG_SYS_LBLAWAR2_PRELIM (\
|
|
CONFIG_LBLAW2_ENABLE_BIT |\
|
|
CONFIG_LBLAW2_LENGTH \
|
|
)
|
|
#endif
|
|
|
|
#if defined(CONFIG_LBLAW3)
|
|
#define CONFIG_SYS_LBLAWBAR3_PRELIM \
|
|
CONFIG_LBLAW3_BASE
|
|
#define CONFIG_SYS_LBLAWAR3_PRELIM (\
|
|
CONFIG_LBLAW3_ENABLE_BIT |\
|
|
CONFIG_LBLAW3_LENGTH \
|
|
)
|
|
#endif
|
|
|
|
#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_0
|
|
#define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR0_PRELIM
|
|
#define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR0_PRELIM
|
|
#endif
|
|
|
|
#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_1
|
|
#define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR1_PRELIM
|
|
#define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR1_PRELIM
|
|
#endif
|
|
|
|
#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_2
|
|
#define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR2_PRELIM
|
|
#define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR2_PRELIM
|
|
#endif
|
|
|
|
#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_3
|
|
#define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR3_PRELIM
|
|
#define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR3_PRELIM
|
|
#endif
|