summaryrefslogtreecommitdiff
path: root/board/siemens/common
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-08-17 17:59:40 -0400
committerTom Rini <[email protected]>2021-08-30 14:10:05 -0400
commit433eb4affc497ed9e88e1e758bc3e1f21c6fda4d (patch)
treeedc2e19fdcf4f3e28e3328314752d0b38038356e /board/siemens/common
parentd64d1536b878176afdb6e2780ee8f5f8e0d657ea (diff)
siemens: Move CONFIG_SYS_I2C_EEPROM_ADDR usage out of CONFIG namespace
The instances of CONFIG_SYS_I2C_EEPROM_ADDR on these platforms doesn't match up with the rest of the EERPOM related defines in U-Boot. Move these out of the CONFIG namespace rather than make complex Kconfig logic. Cc: Samuel Egli <[email protected]> Cc: Anatolij Gustschin <[email protected]> Cc: Heiko Schocher <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Reviewed-by: Anatolij Gustschin <[email protected]>
Diffstat (limited to 'board/siemens/common')
-rw-r--r--board/siemens/common/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/siemens/common/board.c b/board/siemens/common/board.c
index 1bdf404ac3e..56283660d37 100644
--- a/board/siemens/common/board.c
+++ b/board/siemens/common/board.c
@@ -70,6 +70,7 @@ void sdram_init(void)
#endif /* #ifdef CONFIG_SPL_BUILD */
#ifndef CONFIG_SPL_BUILD
+#define FACTORYSET_EEPROM_ADDR 0x50
/*
* Basic board specific setup. Pinmux has been handled already.
*/
@@ -87,7 +88,7 @@ int board_init(void)
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
#ifdef CONFIG_FACTORYSET
- factoryset_read_eeprom(CONFIG_SYS_I2C_EEPROM_ADDR);
+ factoryset_read_eeprom(FACTORYSET_EEPROM_ADDR);
#endif
gpmc_init();