board: pm9g45: Migrate to CONFIG_DM
PATCH v2 1/1 board: pm9g45: Migrate to CONFIG_DM
Migrate the following options to CONFIG_DM:
CONFIG_DM_GPIO
CONFIG_DM_MMC
CONFIG_DM_ETH
CONFIG_DM_SERIAL
CONFIG_DM_USB
Signed-off-by Ilko Iliev <[email protected]>
---
Changes for v2:
- fix undeclared 'PHYS_SDRAM' in pm9g45.c
- add missing .dtb
arch/arm/dts/Makefile | 2 + board/ronetix/pm9g45/pm9g45.c | 10 +- configs/pm9g45_defconfig | 44 +++++++-- include/configs/pm9g45.h | 173 ++++++++++++++++++---------------- 4 files changed, 135 insertions(+), 94 deletions(-)
arch/arm/dts/Makefile +2 -0
@@ -598,6 +598,8 @@ dtb-$(CONFIG_TARGET_AT91SAM9260EK) += \ dtb-$(CONFIG_TARGET_AT91SAM9M10G45EK) += at91sam9m10g45ek.dtb +dtb-$(CONFIG_TARGET_PM9G45) += at91sam9m10g45ek.dtb + dtb-$(CONFIG_TARGET_AT91SAM9X5EK) += \ at91sam9g15ek.dtb \ at91sam9g25ek.dtb \
board/ronetix/pm9g45/pm9g45.c +5 -5
@@ -124,7 +124,7 @@ int board_init(void)/* 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 ();
@@ -139,15 +139,15 @@ int board_init(void)int dram_init (void ) {/* dram_init must store complete ramsize in gd->ram_size */ - gd->ram_size =get_ram_size ((void *)PHYS_SDRAM , -PHYS_SDRAM_SIZE ); + gd->ram_size =get_ram_size ((void *)CONFIG_SYS_SDRAM_BASE , +CONFIG_SYS_SDRAM_SIZE );return 0 ; }int dram_init_banksize (void ) { - gd->bd->bi_dram[0 ].start =PHYS_SDRAM ; - gd->bd->bi_dram[0 ].size =PHYS_SDRAM_SIZE ; + gd->bd->bi_dram[0 ].start =CONFIG_SYS_SDRAM_BASE ; + gd->bd->bi_dram[0 ].size =CONFIG_SYS_SDRAM_SIZE ;return 0 ; }
configs/pm9g45_defconfig +37 -7
64 lines not on this page · raw message
include/configs/pm9g45.h +91 -82
201 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v2 1/1 board: pm9g45: Migrate to CONFIG_DM
Quoted 8 lines · Ilko Iliev
Migrate the following options to
CONFIG_DM:
CONFIG_DM_GPIO
CONFIG_DM_MMC
CONFIG_DM_ETH
CONFIG_DM_SERIAL
CONFIG_DM_USBSigned-off-by Ilko Iliev <[email protected]>
Applied to u-boot-atmel/next
Thanks !