Skip to contentSkip to conversation

board: gateworks: venice: rename eeprom_init

PATCH New Tim Harvey 2 participants 2 messages Aug 11, 2022 – Oct 21, 2022

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 board: gateworks: venice: rename eeprom_init

rename eeprom_init to avoid build failure when using CMD_EEPROM.

---
 board/gateworks/venice/eeprom.c | 2 +-
 board/gateworks/venice/eeprom.h | 2 +-
 board/gateworks/venice/spl.c    | 2 +-
 board/gateworks/venice/venice.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
board/gateworks/venice/eeprom.c +1 -1
index ac52cc0a9ec9..6aea60ad05c7 100644
@@ -299,7 +299,7 @@ static int eeprom_info(bool verbose)
 	return 0;
 }
 
-int eeprom_init(int quiet)
+int venice_eeprom_init(int quiet)
 {
 	char rev_pcb;
 	int rev_bom;
board/gateworks/venice/eeprom.h +1 -1
index 8ea7318d7dfc..bb7a5fa9ad1f 100644
@@ -24,7 +24,7 @@ struct venice_board_info {
 	u8 chksum[2];	/* 0x4E */
 };
 
-int eeprom_init(int quiet);
+int venice_eeprom_init(int quiet);
 const char *eeprom_get_model(void);
 const char *eeprom_get_baseboard_model(void);
 const char *eeprom_get_dtb_name(int level, char *buf, int len);
board/gateworks/venice/spl.c +1 -1
index ae460296cb99..14241e5e2fb6 100644
@@ -280,7 +280,7 @@ void board_init_f(ulong dummy)
 			break;
 		mdelay(1);
 	}
-	dram_sz = eeprom_init(0);
+	dram_sz = venice_eeprom_init(0);
 
 	/* PMIC */
 	power_init_board();
board/gateworks/venice/venice.c +1 -1
index 32b25ffd3edf..d94f6b8a577d 100644
@@ -111,7 +111,7 @@ int board_phy_config(struct phy_device *phydev)
 
 int board_init(void)
 {
-	eeprom_init(1);
+	venice_eeprom_init(1);
 
 	if (IS_ENABLED(CONFIG_FEC_MXC))
 		setup_fec();
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 board: gateworks: venice: rename eeprom_init

Quoted 2 lines

rename eeprom_init to avoid build failure when using CMD_EEPROM.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================