Skip to contentSkip to conversation

ppc4xx: Add chip_config command to AMCC Kilauea eval board

PATCH Superseded Stefan Roese 1 participant 1 message Jul 21, 2009

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Add chip_config command to AMCC Kilauea eval board

This patch removes the "alterpll" command and replaces it with the now ppc4xx standard "chip_config" command to configure the I2C bootstrap EEPROM.

---
 board/amcc/kilauea/Makefile      |    4 +-
 board/amcc/kilauea/chip_config.c |   49 +++++++
 board/amcc/kilauea/cmd_pll.c     |  297 --------------------------------------
 include/configs/kilauea.h        |    6 +
 4 files changed, 58 insertions(+), 298 deletions(-)
 create mode 100644 board/amcc/kilauea/chip_config.c
 delete mode 100644 board/amcc/kilauea/cmd_pll.c
board/amcc/kilauea/Makefile +3 -1
index df0a68f..751e9f3 100644
@@ -25,8 +25,10 @@ include $(TOPDIR)/config.mk
 
 LIB	= $(obj)lib$(BOARD).a
 
-COBJS	= $(BOARD).o cmd_pll.o
+COBJS-y	:= $(BOARD).o
+COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
 
+COBJS   := $(COBJS-y)
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 
board/amcc/kilauea/chip_config.c new file +49 -0

49 lines not on this page · raw message

board/amcc/kilauea/cmd_pll.c deleted +0 -297

297 lines not on this page · raw message

include/configs/kilauea.h +6 -0
index 1e7e731..44bcbc0 100644
@@ -379,6 +379,11 @@
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	3
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	10
 
+/* I2C bootstrap EEPROM */
+#define CONFIG_4xx_CONFIG_I2C_EEPROM_ADDR	0x52
+#define CONFIG_4xx_CONFIG_I2C_EEPROM_OFFSET	0
+#define CONFIG_4xx_CONFIG_BLOCKSIZE		16
+
 /* Standard DTT sensor configuration */
 #define CONFIG_DTT_DS1775	1
 #define CONFIG_DTT_SENSORS	{ 0 }
@@ -427,6 +432,7 @@
 /*
  * Commands additional to the ones defined in amcc-common.h
  */
+#define CONFIG_CMD_CHIP_CONFIG
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_LOG
 #define CONFIG_CMD_NAND
Signature · 1 line
1.6.3.3