projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
board: pm9g45: Migrate to CONFIG_DM
[oweals/u-boot.git]
/
board
/
ronetix
/
pm9g45
/
pm9g45.c
diff --git
a/board/ronetix/pm9g45/pm9g45.c
b/board/ronetix/pm9g45/pm9g45.c
index e2620e3c0484bbe6823dd1dd888557a38475bd68..c5d28c61e2d714dc91375e2ee6fa95ffe704ceae 100644
(file)
--- a/
board/ronetix/pm9g45/pm9g45.c
+++ b/
board/ronetix/pm9g45/pm9g45.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2010
* Ilko Iliev <iliev@ronetix.at>
/*
* (C) Copyright 2010
* Ilko Iliev <iliev@ronetix.at>
@@
-7,8
+8,6
@@
* (C) Copyright 2007-2008
* Stelian Pop <stelian@popies.net>
* Lead Tech Design <www.leadtechdesign.com>
* (C) Copyright 2007-2008
* Stelian Pop <stelian@popies.net>
* Lead Tech Design <www.leadtechdesign.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-125,7
+124,7
@@
int board_init(void)
/* arch number of AT91SAM9M10G45EK-Board */
gd->bd->bi_arch_number = MACH_TYPE_PM9G45;
/* adress of boot parameters */
/* arch number of AT91SAM9M10G45EK-Board */
gd->bd->bi_arch_number = MACH_TYPE_PM9G45;
/* adress of boot parameters */
- gd->bd->bi_boot_params =
PHYS_SDRAM
+ 0x100;
+ gd->bd->bi_boot_params =
CONFIG_SYS_SDRAM_BASE
+ 0x100;
#ifdef CONFIG_CMD_NAND
pm9g45_nand_hw_init();
#ifdef CONFIG_CMD_NAND
pm9g45_nand_hw_init();
@@
-140,15
+139,15
@@
int board_init(void)
int dram_init(void)
{
/* dram_init must store complete ramsize in gd->ram_size */
int dram_init(void)
{
/* dram_init must store complete ramsize in gd->ram_size */
- gd->ram_size = get_ram_size((void *)
PHYS_SDRAM
,
-
PH
YS_SDRAM_SIZE);
+ gd->ram_size = get_ram_size((void *)
CONFIG_SYS_SDRAM_BASE
,
+
CONFIG_S
YS_SDRAM_SIZE);
return 0;
}
int dram_init_banksize(void)
{
return 0;
}
int dram_init_banksize(void)
{
- gd->bd->bi_dram[0].start =
PHYS_SDRAM
;
- gd->bd->bi_dram[0].size =
PH
YS_SDRAM_SIZE;
+ gd->bd->bi_dram[0].start =
CONFIG_SYS_SDRAM_BASE
;
+ gd->bd->bi_dram[0].size =
CONFIG_S
YS_SDRAM_SIZE;
return 0;
}
return 0;
}