u-boot/cpu
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
..
74xx_7xx 74xx_7xx: Fix rounding problem in CPU frequency calculation 2009-05-15 22:22:01 +02:00
arm720t arm: remove cpu_init 2009-06-12 20:39:52 +02:00
arm920t rm9200 ethernet driver: board-specific quirk (csb337) 2009-07-22 22:39:23 -07:00
arm925t arm: remove cpu_init 2009-06-12 20:39:52 +02:00
arm926ejs fec_mxc: driver for FEC ethernet controller on i.MX27 2009-07-22 22:59:07 -07:00
arm946es arm: remove cpu_init 2009-06-12 20:39:52 +02:00
arm1136 i.MX31: Create a common device file. 2009-06-21 16:18:13 +02:00
arm1176 s3c64xx: move the reset_cpu function 2009-06-26 00:02:35 +02:00
arm_cortexa8 Merge branch 'master' of git://git.denx.de/u-boot-arm 2009-07-23 00:59:37 +02:00
arm_intcm arm: remove cpu_init 2009-06-12 20:39:52 +02:00
at32ap AVR32: Make cacheflush cpu-dependent 2009-02-23 10:34:23 +01:00
blackfin Blackfin: split cpu COBJS into multilines 2009-07-18 21:15:54 -04:00
i386 Add basic relocation to i386 port 2009-03-20 22:39:13 +01:00
ixp unify HOST_CFLAGS and HOSTCFLAGS 2009-07-23 21:26:14 +02:00
leon2 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
leon3 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
lh7a40x lh7a40x: move serial driver to drivers/serial 2009-06-12 20:39:53 +02:00
mcf52x2 ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf523x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf532x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf547x_8x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf5227x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf5445x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
microblaze microblaze: Use cache functions (especially cache status) 2009-01-23 10:40:00 +01:00
mips MIPS: Implement ethernet halt for au1x00 2009-05-16 09:20:03 +09:00
mpc5xx Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc5xxx board support patch for phyCORE-MPC5200B-tiny 2009-07-10 23:21:32 +02:00
mpc8xx stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
mpc8xxx/ddr 85xx, 86xx: Add common board_add_ram_info() 2009-07-22 09:43:48 -05:00
mpc83xx usb: mpc834x: added support of the MPH USB controller in addition to the DR one 2009-07-14 14:53:52 -05:00
mpc85xx fsl_dma: Break out common memory initialization function 2009-07-01 23:12:01 -05:00
mpc86xx 86xx: Rename ccsr_ddr's sdram_mode_1, sdram_cfg_1 fields 2009-07-22 09:43:47 -05:00
mpc512x stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
mpc824x Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8220 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8260 i2c: Create common default i2c_[set|get]_bus_speed() functions 2009-06-12 20:39:45 +02:00
nios General help message cleanup 2009-06-12 20:47:16 +02:00
nios2 General help message cleanup 2009-06-12 20:47:16 +02:00
ppc4xx Add "chip_config" command for PPC4xx bootstrap configuration 2009-07-24 06:42:32 +02:00
pxa stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
s3c44b0 arm: remove cpu_init 2009-06-12 20:39:52 +02:00
sa1100 arm: remove cpu_init 2009-06-12 20:39:52 +02:00
sh2 sh: unify linker script 2009-07-08 11:43:15 +09:00
sh3 sh: unify linker script 2009-07-08 11:43:15 +09:00
sh4 sh: unify linker script 2009-07-08 11:43:15 +09:00