powerpc/km82xx: rework DIP switch detection
authorHuber, Andreas <Andreas.Huber@keymile.com>
Mon, 2 May 2011 22:56:54 +0000 (22:56 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 10 May 2011 20:48:45 +0000 (22:48 +0200)
commitf30c62bbe8988a8341970cbb7e14bb7a99abb157
tree13134f96cb17a2d67a19d21df5cbc271dd620dd7
parent0278236c38a7fcde95dadc493b26ad612e88ac05
powerpc/km82xx: rework DIP switch detection

Introduce a struct for the BFTICU FPGA to increase the readability of
the code. And the define CONFIG_SYS_BFTICU_BASE was removed because
the CONFIG_SYS_FPGA_BASE is already the base value for BFTICU registers.

Signed-off-by: Andreas Huber <andreas.huber@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
board/keymile/common/common.h
board/keymile/km82xx/km82xx.c
include/configs/mgcoge.h