u-boot-brain/arch
Stefan Roese e02d449644 ppc4xx: Cleanup of PVR detection code in cpu.c
This patch cleans the PVR detection code in check_cpu() up a bit.
Basically the strings are better seperated, resulting in an easier
to understand and maintain code version.

The #ifdef's couldn't be removed easily because of two reasons:

- Some SoC revisions have the same PVR, so need a way to differentiate
  between those two SoC's.
- In some case statements registers only available in this SoC variant
  are referenced.

Instead I moved the CONFIG_440 #ifdef a bit, so that 405 platforms don't
add this 440 detection code and vice versa. Resulting in this U-Boot
image size change:

405EX (Kilauea):     408 bytes less
440EPx (Sequoia):    604 bytes less
460EX (Canyonlands): 564 bytes less

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
2010-09-23 09:02:06 +02:00
..
arm ARM: implement relocation for arm1176 2010-09-19 19:29:56 +02:00
avr32 relocation: fixup cmdtable 2010-09-19 19:29:51 +02:00
blackfin New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
i386 Remove unused CONFIG_SERIAL_SOFTWARE_FIFO feature 2010-09-23 09:02:05 +02:00
m68k Remove unused CONFIG_SERIAL_SOFTWARE_FIFO feature 2010-09-23 09:02:05 +02:00
microblaze New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
mips common: move TOTAL_MALLOC_LEN to include/common.h 2010-09-19 19:29:52 +02:00
nios2 New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
powerpc ppc4xx: Cleanup of PVR detection code in cpu.c 2010-09-23 09:02:06 +02:00
sh New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
sparc Remove unused CONFIG_SERIAL_SOFTWARE_FIFO feature 2010-09-23 09:02:05 +02:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00