arm: at91: reworked meesc board support
PATCH v3 1/1 arm: at91: reworked meesc board support
Signed-off-by Daniel Gorsulowski <[email protected]>
---
Changes in V2:
- Fetched again and created patch against current master
Changes in V3:
- None, just resent using 'git send-email'
board/esd/meesc/meesc.c | 20 ++++++++++++++++---- include/configs/meesc.h | 42 ++++++++++++++++++++---------------------- 2 files changed, 36 insertions(+), 26 deletions(-)
board/esd/meesc/meesc.c +16 -4
@@ -3,7 +3,7 @@* Stelian Pop <[email protected]> * Lead Tech Design <www.leadtechdesign.com> * -* (C) Copyright 2009-2011 +* (C) Copyright 2009-2015 * Daniel Gorsulowski <[email protected]> * esd electronic system design gmbh <www.esd.eu> *
@@ -28,6 +28,7 @@ DECLARE_GLOBAL_DATA_PTR;* Miscelaneous platform dependent initialisations */ +#ifdef CONFIG_REVISION_TAG static int hw_rev =-1 ;/* hardware revision */ int get_hw_rev (void )
@@ -45,6 +46,7 @@ int get_hw_rev(void) return hw_rev; } +#endif /* CONFIG_REVISION_TAG */ #ifdef CONFIG_CMD_NAND static void meesc_nand_hw_init (void )
@@ -125,12 +127,18 @@ static void meesc_ethercat_hw_init(void)int dram_init (void ) { - gd->ram_size =get_ram_size ( - (void *)CONFIG_SYS_SDRAM_BASE , -CONFIG_SYS_SDRAM_SIZE ); +/* dram_init must store complete ramsize in gd->ram_size */ + gd->ram_size =get_ram_size ((void *)PHYS_SDRAM , +PHYS_SDRAM_SIZE );return 0 ; } +void dram_init_banksize (void ) +{ + gd->bd->bi_dram[0 ].start =PHYS_SDRAM ; + gd->bd->bi_dram[0 ].size =PHYS_SDRAM_SIZE ; +} +int board_eth_init (bd_t *bis) {int rc =0 ;
@@ -140,6 +148,7 @@ int board_eth_init(bd_t *bis)return rc; } +#ifdef CONFIG_DISPLAY_BOARDINFO int checkboard (void ) {char str[32 ];
@@ -173,10 +182,13 @@ int checkboard(void)puts (", serial# " ); puts(str); } +#ifdef CONFIG_REVISION_TAG printf ("\nHardware-revision: 1.%d\n" ,get_hw_rev ()); +#endif printf ("Mach-type: %lu\n" , gd->bd->bi_arch_number);return 0 ; } +#endif /* CONFIG_DISPLAY_BOARDINFO */ #ifdef CONFIG_SERIAL_TAG void get_board_serial (struct tag_serialnr *serialnr)
include/configs/meesc.h +20 -22
99 lines not on this page · raw message
Signature · 1 line
2.5.0
PATCH v3 1/1 arm: at91: reworked meesc board support
Dear Daniel Gorsulowski,
Quoted 11 lines · Daniel Gorsulowski
Signed-off-by Daniel Gorsulowski <[email protected]>---
Changes in V2:
- Fetched again and created patch against current masterChanges in V3:
- None, just resent using 'git send-email'
board/esd/meesc/meesc.c| 20 ++++++++++++++++----include/configs/meesc.h| 42 ++++++++++++++++++++----------------------2 files changed, 36 insertions(+), 26 deletions(-)
applied to u-boot-atmel/master, thanks!
Best regards,
Andreas Bie?mann