blob: 082b2b9c9a56edd0f09ba4109383f6699df782a7 [file] [log] [blame]
Mario Sixb47839c2019-01-21 09:17:58 +01001#if defined(CONFIG_LBLAW0)
Tom Rini364d0022023-01-10 11:19:45 -05002#define CFG_SYS_LBLAWBAR0_PRELIM \
Mario Sixb47839c2019-01-21 09:17:58 +01003 CONFIG_LBLAW0_BASE
Tom Rini364d0022023-01-10 11:19:45 -05004#define CFG_SYS_LBLAWAR0_PRELIM (\
Mario Sixb47839c2019-01-21 09:17:58 +01005 CONFIG_LBLAW0_ENABLE_BIT |\
6 CONFIG_LBLAW0_LENGTH \
7)
8#endif
9
10#if defined(CONFIG_LBLAW1)
Tom Rini364d0022023-01-10 11:19:45 -050011#define CFG_SYS_LBLAWBAR1_PRELIM \
Mario Sixb47839c2019-01-21 09:17:58 +010012 CONFIG_LBLAW1_BASE
Tom Rini364d0022023-01-10 11:19:45 -050013#define CFG_SYS_LBLAWAR1_PRELIM (\
Mario Sixb47839c2019-01-21 09:17:58 +010014 CONFIG_LBLAW1_ENABLE_BIT |\
15 CONFIG_LBLAW1_LENGTH \
16)
17#endif
18
19#if defined(CONFIG_LBLAW2)
Tom Rini364d0022023-01-10 11:19:45 -050020#define CFG_SYS_LBLAWBAR2_PRELIM \
Mario Sixb47839c2019-01-21 09:17:58 +010021 CONFIG_LBLAW2_BASE
Tom Rini364d0022023-01-10 11:19:45 -050022#define CFG_SYS_LBLAWAR2_PRELIM (\
Mario Sixb47839c2019-01-21 09:17:58 +010023 CONFIG_LBLAW2_ENABLE_BIT |\
24 CONFIG_LBLAW2_LENGTH \
25)
26#endif
27
28#if defined(CONFIG_LBLAW3)
Tom Rini364d0022023-01-10 11:19:45 -050029#define CFG_SYS_LBLAWBAR3_PRELIM \
Mario Sixb47839c2019-01-21 09:17:58 +010030 CONFIG_LBLAW3_BASE
Tom Rini364d0022023-01-10 11:19:45 -050031#define CFG_SYS_LBLAWAR3_PRELIM (\
Mario Sixb47839c2019-01-21 09:17:58 +010032 CONFIG_LBLAW3_ENABLE_BIT |\
33 CONFIG_LBLAW3_LENGTH \
34)
35#endif
36
37#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_0
Tom Rini364d0022023-01-10 11:19:45 -050038#define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR0_PRELIM
39#define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR0_PRELIM
Mario Sixb47839c2019-01-21 09:17:58 +010040#endif
41
42#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_1
Tom Rini364d0022023-01-10 11:19:45 -050043#define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR1_PRELIM
44#define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR1_PRELIM
Mario Sixb47839c2019-01-21 09:17:58 +010045#endif
46
47#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_2
Tom Rini364d0022023-01-10 11:19:45 -050048#define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR2_PRELIM
49#define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR2_PRELIM
Mario Sixb47839c2019-01-21 09:17:58 +010050#endif
51
52#ifdef CONFIG_NAND_LBLAWBAR_PRELIM_3
Tom Rini364d0022023-01-10 11:19:45 -050053#define CFG_SYS_NAND_LBLAWBAR_PRELIM CFG_SYS_LBLAWBAR3_PRELIM
54#define CFG_SYS_NAND_LBLAWAR_PRELIM CFG_SYS_LBLAWAR3_PRELIM
Mario Sixb47839c2019-01-21 09:17:58 +010055#endif