summaryrefslogtreecommitdiff
path: root/net/bootp.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2010-09-03 13:27:02 +0200
committerStefan Roese <sr@denx.de>2010-09-23 09:02:06 +0200
commite02d44964407716104c78d72170a086052c64e86 (patch)
tree9ece2861dad4076dbd231638d3b9edb500ea728a /net/bootp.c
parent5b9144638e7d4c86e0470e21869b341278e183c3 (diff)
downloadu-boot-imx-e02d44964407716104c78d72170a086052c64e86.zip
u-boot-imx-e02d44964407716104c78d72170a086052c64e86.tar.gz
u-boot-imx-e02d44964407716104c78d72170a086052c64e86.tar.bz2
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>
Diffstat (limited to 'net/bootp.c')
0 files changed, 0 insertions, 0 deletions