u-boot-brain/include/configs/km
Holger Brunck c471d84808 arm/km: remove calls to kw_gpio_* in board_early_init_f
These functions tried to access two static tables before relocation
(board_early_init_f is executed before relocation). But these static
tables lie in the bss section which is not valid before relocation.
These accesses then overwrote some parts of u-boot binary before it was
relocated. For the kmnusa build, this results in a corrupted important
env variable (bootcmd) but it may be that some other parts of the u-boot
binary are corrupted.

This patch solves this problem by moving all the kw_gpio_* calls to
board_init, which should be early enough in the boot sequence. The only
calls that could not be moved is the one for the SOFT (bitbang) I2C, and
they have been replaced by a direct access to the GPIO dataout Control
register to set the two GPIOs as output.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
2012-07-07 14:07:38 +02:00
..
keymile-common.h hush.c: Move default CONFIG_SYS_PROMPT_HUSH_PS2 to hush.c 2012-06-20 20:36:51 +02:00
km_arm.h arm/km: remove calls to kw_gpio_* in board_early_init_f 2012-07-07 14:07:38 +02:00
km-powerpc.h km/common: moved eeprom config to pbec specific part 2011-07-28 15:40:02 +02:00
km82xx-common.h km/common: add support for second flash 2012-06-15 17:07:11 -05:00
km83xx-common.h powerpc/83xx: add kmcoge5ne board support 2012-06-15 17:12:40 -05:00
km8321-common.h powerpc/83xx/km: update SDRAM parameters for km8321 boards 2012-01-09 20:10:33 -06:00