u-boot/include/asm-ppc
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_pci.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
4xx_pcie.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
5xx_immap.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
8xx_immap.h Patch by Yuli Barcohen, 19 Apr 2004: 2004-06-06 21:35:06 +00:00
atomic.h Initial revision 2001-04-28 17:59:11 +00:00
bitops.h PPC: Added fls, fls64, __ilog2_u64, and ffs64 to bitops 2008-07-01 21:47:12 +02:00
byteorder.h Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
cache.h 85xx: Add basic e500mc core support 2008-10-24 15:10:47 -05:00
config.h ppc: Fix compile error for boards with CONFIG_DDR_ECC 2009-07-17 23:44:42 +02:00
cpm_85xx.h Fix DPRAM offset/size for MPC8541/8555. 2005-12-06 15:02:31 +01:00
cpm_8260.h POWERPC 82xx: add the SCC as an HDLC controller 2009-01-24 00:42:04 +01:00
e300.h powerpc: Move duplicated BAT defines to mmu.h 2009-02-10 00:27:40 +01:00
errno.h asm-generic: Consolidate errno.h to asm-generic/errno.h 2009-07-09 14:07:11 +02:00
fsl_ddr_dimm_params.h fsl-ddr: add the DDR3 SPD infrastructure 2009-03-30 13:33:50 -05:00
fsl_ddr_sdram.h fsl-ddr: add the DDR3 SPD infrastructure 2009-03-30 13:33:50 -05:00
fsl_dma.h 83xx: Add support for fsl_dma driver 2009-07-02 11:15:57 -05:00
fsl_i2c.h Make fsl-i2c not conflict with SOFT I2C 2006-11-29 00:25:26 -06:00
fsl_law.h mpc85xx: Add support for the P2020 2009-02-16 18:05:55 -06:00
fsl_lbc.h 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
fsl_pci.h fsl_pci: Move prototypes into fsl_pci.h and remove explicit externs 2009-04-04 10:21:30 -05:00
fsl_serdes.h mpc83xx: serdes: add forgotten shifts for rfcks 2008-10-21 18:34:01 -05:00
global_data.h 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
gpio.h ppc4xx: Add AMCC Canyonlands support (460EX) (3/3) 2008-03-15 07:28:05 +01:00
immap_83xx.h usb: mpc834x: added support of the MPH USB controller in addition to the DR one 2009-07-14 14:53:52 -05:00
immap_85xx.h 85xx: Adds GPIO registers to MPC85xx Memory Map. 2009-07-02 08:33:20 -05:00
immap_86xx.h 86xx: Rename ccsr_ddr's sdram_mode_1, sdram_cfg_1 fields 2009-07-22 09:43:47 -05:00
immap_512x.h MPC512x: Add MSCAN1...4 Clock Control Registers 2009-07-14 00:01:32 +02:00
immap_8220.h Patch by TsiChung Liew, 23 Sep 2004: 2004-10-28 00:09:35 +00:00
immap_8260.h Patch by Thomas Viehweger, 14 May 2004: 2004-06-09 12:42:26 +00:00
immap_qe.h drivers/qe: Add more SNUM number for QE 2009-06-12 17:17:00 -05:00
interrupt.h ppc4xx: CPU PPC440x5 on Virtex5 FX 2008-07-18 12:30:50 +02:00
io.h ppc: Use addrmap in virt_to_phys and map_physmem. 2008-12-19 18:20:08 -06:00
iopin_8xx.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
iopin_85xx.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
iopin_8260.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
m8260_pci.h * Code cleanup: 2003-06-27 21:31:46 +00:00
mc146818rtc.h Initial revision 2000-11-20 17:21:10 +00:00
mmu.h mpc86xx: Add support to populate addr map based on BATs 2009-02-10 00:29:49 +01:00
mp.h Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
mpc8xxx_spi.h 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
mpc512x.h MPC512x: factor out common code 2009-07-14 00:02:41 +02:00
mpc8349_pci.h Added PCI support for MPC8349ADS board 2006-01-12 19:51:38 -06:00
pci_io.h * Code cleanup: 2003-06-27 21:31:46 +00:00
pnp.h * Code cleanup: 2003-06-27 21:31:46 +00:00
posix_types.h Initial revision 2001-04-28 17:59:11 +00:00
ppc4xx_config.h Add "chip_config" command for PPC4xx bootstrap configuration 2009-07-24 06:42:32 +02:00
ppc4xx-ebc.h ppc4xx: Correctly setup ranges property in ebc node 2008-10-21 17:35:02 +02:00
ppc4xx-isram.h ppc4xx: Added ppc4xx-isram.h for internal SRAM and L2 cache DCRs 2008-11-21 10:52:33 +01:00
ppc4xx-sdram.h ppc4xx: Autocalibration can set RDCC to over aggressive value. 2009-02-12 06:08:07 +01:00
ppc4xx-uic.h ppc4xx: CPU PPC440x5 on Virtex5 FX 2008-07-18 12:30:50 +02:00
processor.h 86xx: Add CPU_TYPE_ENTRY support 2009-06-30 08:24:22 -05:00
ptrace.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
residual.h * Code cleanup: 2003-06-27 21:31:46 +00:00
sigcontext.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
signal.h Initial revision 2001-04-28 17:59:11 +00:00
status_led.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
string.h Initial revision 2000-08-21 15:05:47 +00:00
types.h Replace __attribute references with __attribute__ 2009-04-28 01:01:39 +02:00
u-boot.h 83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx 2009-06-12 20:47:17 +02:00
unaligned.h Add LZO decompressor support 2009-03-20 22:39:15 +01:00
xilinx_irq.h ppc4xx: Minor coding style cleanup of Xilinx Virtex5 ml507 support 2008-07-18 12:31:25 +02:00