public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/eeprom: update MAX_NUM_PORTS to fix program failure
@ 2013-08-08  9:14 Shengzhou Liu
  2013-08-11 23:50 ` Timur Tabi
  0 siblings, 1 reply; 6+ messages in thread
From: Shengzhou Liu @ 2013-08-08  9:14 UTC (permalink / raw)
  To: u-boot

On some boards, the size of EEPROM is 128 Bytes instead of 256.
so we set default MAX_NUM_PORTS to 9 rather than previous 23 to
avoid the programming failure, we can define MAX_NUM_PORTS in
board-specific header file to overwrite the default value.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
 board/freescale/common/sys_eeprom.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index d2ed036..6bfc376 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -34,7 +34,9 @@
 #endif
 
 #ifdef CONFIG_SYS_I2C_EEPROM_NXID
-#define MAX_NUM_PORTS	23
+#ifndef MAX_NUM_PORTS
+#define MAX_NUM_PORTS	9
+#endif
 #define NXID_VERSION	1
 #endif
 
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-30 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08  9:14 [U-Boot] [PATCH] powerpc/eeprom: update MAX_NUM_PORTS to fix program failure Shengzhou Liu
2013-08-11 23:50 ` Timur Tabi
2013-08-29  9:56   ` Liu Shengzhou-B36685
2013-08-29 15:09     ` Timur Tabi
2013-08-30 11:04       ` Liu Shengzhou-B36685
2013-08-30 13:19         ` Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox