aboutsummaryrefslogtreecommitdiff
path: root/board/siemens/capricorn/board.c
diff options
context:
space:
mode:
authorEnrico Leto2024-01-24 15:43:49 +0100
committerTom Rini2024-02-05 13:32:48 -0500
commit5ae54613ebb7b926ea09e8f145d9a40a85d6480e (patch)
treeddd4d73a411912efe81bee2177723f898cbeea79 /board/siemens/capricorn/board.c
parent9152a51e3c3af8cd766dfaad50aa5bb97678378c (diff)
siemens: eeprom: clean up definitions
Move the I2C and EEPROM address definitions in common board header. Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Signed-off-by: Enrico Leto <enrico.leto@siemens.com>
Diffstat (limited to 'board/siemens/capricorn/board.c')
-rw-r--r--board/siemens/capricorn/board.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c
index 924c88e8fab..5f7e2b1e899 100644
--- a/board/siemens/capricorn/board.c
+++ b/board/siemens/capricorn/board.c
@@ -28,6 +28,7 @@
#include <asm/arch-imx8/clock.h>
#endif
#include <linux/delay.h>
+#include "../common/eeprom.h"
#include "../common/factoryset.h"
#define GPIO_PAD_CTRL \
@@ -337,13 +338,11 @@ void board_late_mmc_env_init(void)
}
#ifndef CONFIG_SPL_BUILD
-int factoryset_read_eeprom(int i2c_addr);
-
static int load_parameters_from_factoryset(void)
{
int ret;
- ret = factoryset_read_eeprom(EEPROM_I2C_ADDR);
+ ret = factoryset_read_eeprom(SIEMENS_EE_I2C_ADDR);
if (ret)
return ret;