ppc4xx: Add chip_config command to AMCC Kilauea eval board
PATCH v2 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.
---
v2:
- Update identation of chip_config struct
board/amcc/kilauea/Makefile | 4 +- board/amcc/kilauea/chip_config.c | 73 ++++++++++ board/amcc/kilauea/cmd_pll.c | 297 -------------------------------------- include/configs/kilauea.h | 6 + 4 files changed, 82 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
@@ -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 +73 -0
73 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
@@ -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
Stefan Roese
AppliedPATCH v2 1/1 ppc4xx: Add chip_config command to AMCC Kilauea eval board
Quoted 5 lines · On Thursday 23 July 2009 09:13:24 Stefan Roese wrote:
This patch removes the "alterpll" command and replaces it with the now ppc4xx standard "
chip_config" command to configure the I2C bootstrap EEPROM.Signed-off-by Stefan Roese <[email protected]>
Applied to ppc4xx/master. Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================