ppc4xx: Katmai: Add chip_config command
PATCH 2/2 ppc4xx: Katmai: Add chip_config command
This patch removes the Katmai "bootstrap" command and replaces it with the now common command "chip_config".
Signed-off-by Stefan Roese <[email protected]>
--- board/amcc/katmai/Makefile | 4 +- board/amcc/katmai/chip_config.c | 55 ++++++++++ board/amcc/katmai/cmd_katmai.c | 218 --------------------------------------- include/configs/katmai.h | 9 ++- 4 files changed, 66 insertions(+), 220 deletions(-) create mode 100644 board/amcc/katmai/chip_config.c delete mode 100644 board/amcc/katmai/cmd_katmai.c
board/amcc/katmai/Makefile +3 -1
@@ -25,9 +25,11 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS = $(BOARD).o cmd_katmai.o +COBJS-y := $(BOARD).o +COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o SOBJS = init.o +COBJS := $(COBJS-y) SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
board/amcc/katmai/chip_config.c new file +55 -0
55 lines not on this page · raw message
board/amcc/katmai/cmd_katmai.c deleted +0 -218
218 lines not on this page · raw message
include/configs/katmai.h +8 -1
@@ -140,6 +140,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 0x50 +#define CONFIG_4xx_CONFIG_I2C_EEPROM_OFFSET 0 +#define CONFIG_4xx_CONFIG_BLOCKSIZE 8 +/* I2C RTC */ #define CONFIG_RTC_M41T11 1#define CONFIG_SYS_RTC_BUS_NUM 1/* The I2C bus for RTC */
@@ -194,8 +199,10 @@/* * Commands additional to the ones defined in amcc-common.h */ -#define CONFIG_CMD_EXT2 +#define CONFIG_CMD_CHIP_CONFIG #define CONFIG_CMD_DATE +#define CONFIG_CMD_EXT2 +#define CONFIG_CMD_FAT #define CONFIG_CMD_PCI #define CONFIG_CMD_SDRAM #define CONFIG_CMD_SNTP
Signature · 1 line
1.6.5.2
PATCH 2/2 ppc4xx: Katmai: Add chip_config command
Quoted 2 lines · On Monday 09 November 2009 14:16:51 Stefan Roese wrote:
This patch removes the Katmai "bootstrap" command and replaces it with the now common command "
chip_config".
Applied to u-boot-ppc4xx/next. Thanks.
Cheers,
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