u-boot/cpu/ppc4xx
Stefan Roese 87c0b72908 Add "chip_config" command for PPC4xx bootstrap configuration
This patch adds a generic command for programming I2C bootstrap
eeproms on PPC4xx. An implementation for Canyonlands board is
included.

The command name is intentionally chosen not to be PPC4xx specific.
This way other CPU's/SoC's can implement a similar command under
the same name, perhaps with a different syntax.

Usage on Canyonlands:

=> chip_config
Available configurations (I2C address 0x52):
600-nor          - NOR  CPU: 600 PLB: 200 OPB: 100 EBC: 100
600-nand         - NAND CPU: 600 PLB: 200 OPB: 100 EBC: 100
800-nor          - NOR  CPU: 800 PLB: 200 OPB: 100 EBC: 100
800-nand         - NAND CPU: 800 PLB: 200 OPB: 100 EBC: 100
1000-nor         - NOR  CPU:1000 PLB: 200 OPB: 100 EBC: 100
1000-nand        - NAND CPU:1000 PLB: 200 OPB: 100 EBC: 100
1066-nor         - NOR  CPU:1066 PLB: 266 OPB:  88 EBC:  88 ***
1066-nand        - NAND CPU:1066 PLB: 266 OPB:  88 EBC:  88
=> chip_config 600-nor
Using configuration:
600-nor          - NOR  CPU: 600 PLB: 200 OPB: 100 EBC: 100
done (dump via 'i2c md 52 0.1 10')
Reset the board for the changes to take effect

Other 4xx boards will be migrated to use this command soon
as well.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu>
2009-07-24 06:42:32 +02:00
..
4xx_ibm_ddr2_autocalib.c ppc4xx: Autocalibration can set RDCC to over aggressive value. 2009-02-12 06:08:07 +01:00
4xx_pci.c ppc4xx: Set default PCI device ID for 405EP boards 2009-07-10 08:26:11 +02:00
4xx_pcie.c ppc4xx: PCIe: Change 16GB inbound memory to 4GB 2009-02-18 15:59:20 +01:00
4xx_uart.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
40x_spd_sdram.c i2c.h: Provide a default CONFIG_SYS_I2C_SLAVE value 2009-06-12 20:39:45 +02:00
44x_spd_ddr.c i2c.h: Provide a default CONFIG_SYS_I2C_SLAVE value 2009-06-12 20:39:45 +02:00
44x_spd_ddr2.c 4xx: Fix compilation warnings and MQ registers dump in SPD DDR2 code 2009-07-08 10:59:07 +02:00
Makefile Add "chip_config" command for PPC4xx bootstrap configuration 2009-07-24 06:42:32 +02:00
bedbug_405.c Standardize command usage messages with cmd_usage() 2009-01-28 08:43:45 +01:00
cache.S rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
cmd_chip_config.c Add "chip_config" command for PPC4xx bootstrap configuration 2009-07-24 06:42:32 +02:00
commproc.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
config.mk cpu/ppc4xx/config.mk: Make a needlessly deffered expansion immediate. 2008-02-23 09:44:54 +01:00
cpu.c ppc4xx: Remove compilation warning "pci_async_enabled defined but not used" 2009-07-08 10:59:07 +02:00
cpu_init.c ppc4xx: Move 405EP pci code from cpu_init_f() to __pci_pre_init() 2009-07-10 08:26:03 +02:00
dcr.S cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
denali_data_eye.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
denali_spd_ddr2.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
ecc.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
ecc.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
fdt.c ppc4xx: Only fixup opb attached UARTs 2009-02-06 10:53:15 +01:00
gpio.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
i2c.c i2c: Create common default i2c_[set|get]_bus_speed() functions 2009-06-12 20:39:45 +02:00
interrupts.c ppc4xx: Minor coding style cleanup of Xilinx Virtex5 ml507 support 2008-07-18 12:31:25 +02:00
iop480_uart.c ppc4xx: Consolidate PPC4xx UIC defines 2008-07-11 13:18:13 +02:00
kgdb.S Big white-space cleanup. 2008-05-21 00:14:08 +02:00
miiphy.c Cleanup: fix "MHz" spelling 2008-10-21 11:25:39 +02:00
resetvec.S * Code cleanup: 2003-06-27 21:31:46 +00:00
sdram.c ppc4xx: Improve DDR autodetect 2009-01-26 10:13:11 +01:00
sdram.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
speed.c ppc4xx: Fix missing freqOPB for 405EP 2009-07-24 06:42:31 +02:00
start.S ppc4xx: Fix TLB reset problem with recent 44x images 2009-07-24 06:42:31 +02:00
tlb.c ppc4xx: Fix printf format warnings now visible with the updated format check 2008-07-10 09:58:06 +02:00
traps.c ppc4xx: Fix printf format warnings now visible with the updated format check 2008-07-10 09:58:06 +02:00
uic.c ppc4xx: Fixed PPC4xx debug compilation error in uic.c 2009-07-08 10:59:07 +02:00
usb.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
usb_ohci.c Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
usb_ohci.h Replace __attribute references with __attribute__ 2009-04-28 01:01:39 +02:00
usbdev.c ppc4xx: Consolidate PPC4xx UIC defines 2008-07-11 13:18:14 +02:00
usbdev.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
xilinx_irq.c ppc4xx: CPU PPC440x5 on Virtex5 FX 2008-07-18 12:30:50 +02:00