ppc4xx: Sequoia: Add chip_config command
PATCH 1/1 ppc4xx: Sequoia: Add chip_config command
This patch removes the Sequoia "bootstrap" command and replaces it with the now common command "chip_config".
Please note that the patches with the dynamic PCI sync clock configuration have to be applied, before this one should go in. This is because Sequoia has 2 different bootstrap EEPROMs, and the old bootstrap command configured different values depending on the detected PCI async clock (33 vs. 66MHz). With the PCI sync clock patches, this is not necessary anymore. The PCI sync clock will be configured correctly on-the-fly now.
--- board/amcc/sequoia/Makefile | 4 +- board/amcc/sequoia/chip_config.c | 122 ++++++++++++++++++++ board/amcc/sequoia/cmd_sequoia.c | 231 -------------------------------------- include/configs/sequoia.h | 6 + 4 files changed, 131 insertions(+), 232 deletions(-) create mode 100644 board/amcc/sequoia/chip_config.c delete mode 100644 board/amcc/sequoia/cmd_sequoia.c
board/amcc/sequoia/Makefile +3 -1
@@ -25,9 +25,11 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS = $(BOARD).o cmd_sequoia.o sdram.o +COBJS-y = $(BOARD).o sdram.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/sequoia/chip_config.c new file +122 -0
122 lines not on this page · raw message
board/amcc/sequoia/cmd_sequoia.c deleted +0 -231
231 lines not on this page · raw message
include/configs/sequoia.h +6 -0
@@ -243,6 +243,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 +/* I2C SYSMON (LM75, AD7414 is almost compatible) */ #define CONFIG_DTT_LM75 1/* ON Semi's LM75 */ #define CONFIG_DTT_AD7414 1/* use AD7414 */
@@ -300,6 +305,7 @@/* * Commands additional to the ones defined in amcc-common.h */ +#define CONFIG_CMD_CHIP_CONFIG #define CONFIG_CMD_DTT #define CONFIG_CMD_FAT #define CONFIG_CMD_NAND
Signature · 1 line
1.6.5.1
PATCH 1/1 ppc4xx: Sequoia: Add chip_config command
Quoted 10 lines · On Monday 19 October 2009 16:28:14 Stefan Roese wrote:
This patch removes the Sequoia "bootstrap" command and replaces it with the now common command "
chip_config".Please note that the patches with the dynamic PCI sync clock configuration have to be applied, before this one should go in. This is because Sequoia has 2 different bootstrap EEPROMs, and the old bootstrap command configured different values depending on the detected PCI async clock (33 vs. 66MHz). With the PCI sync clock patches, this is not necessary anymore. The PCI sync clock will be configured correctly on-the-fly now.
Applied to u-boot-ppc4xx/master. 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