arm: kirkwood: Change naming of dram functions from km_foo() to mvebu_foo()

Additionally the SDRAM address decoding register address is not hard coded
in the C code any more. A define is introduced for this base address.

This makes is possible to use those gpio functions from other MVEBU SoC's
as well.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Luka Perkov <luka@openwrt.org>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
This commit is contained in:
Stefan Roese
2014-10-22 12:13:13 +02:00
committed by Tom Rini
parent 4fd7717e8e
commit 96c5f0816a
21 changed files with 50 additions and 48 deletions

View File

@@ -64,7 +64,7 @@ int board_early_init_f(void)
int board_init(void)
{
/* Boot parameters address */
gd->bd->bi_boot_params = kw_sdram_bar(0) + 0x100;
gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
return 0;
}