]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc: re-add bi_ip_addr to bd_t struct
authorAnatolij Gustschin <agust@denx.de>
Sun, 2 Sep 2012 09:09:00 +0000 (09:09 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 2 Sep 2012 20:55:59 +0000 (22:55 +0200)
commite5ab702a6c458ad2eb041692aed3db114b5846e1
tree7d2c45b228ddaf5b8c76ffe9e6935605c58805b4
parenta005f19eff946454985785788c344f10616d571e
powerpc: re-add bi_ip_addr to bd_t struct

Since commit 50a47d0523e8efebe912bef539a77ffd42116451
(net: punt bd->bi_ip_addr) booting old 2.4.x ppc kernels
is broken due to changed offsets of the fields in struct bd_t.
Offsets of the fields after removed bi_ip_addr are wrong,
causing wrong bus clocks and console baudrate configurations
and various other issues. Re-add the bi_ip_addr field to preserve
backward compatibility with older ppc kernels. Setting bi_ip_addr
in board.c is not really needed, grepping in the 2.4 linux tree
shows that bi_ip_addr is not accessed there. Adding bi_ip_addr
to struct bd_t for other arches isn't needed it seems. bd_t is
not used by other arches in the 2.4 linux tree.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Wolfgang Denk <wd@denx.de>
arch/powerpc/include/asm/u-boot.h