]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: kill off useless initdram() usage
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Nov 2009 11:28:22 +0000 (06:28 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 17 Jan 2010 14:17:26 +0000 (09:17 -0500)
While the initdram() function makes sense on some arches, it doesn't for
Blackfin systems as it's always implemented the same way.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
23 files changed:
board/bf518f-ezbrd/bf518f-ezbrd.c
board/bf526-ezbrd/bf526-ezbrd.c
board/bf527-ezkit/bf527-ezkit.c
board/bf533-ezkit/bf533-ezkit.c
board/bf533-stamp/bf533-stamp.c
board/bf537-minotaur/bf537-minotaur.c
board/bf537-pnav/bf537-pnav.c
board/bf537-srv1/bf537-srv1.c
board/bf537-stamp/bf537-stamp.c
board/bf538f-ezkit/bf538f-ezkit.c
board/bf548-ezkit/bf548-ezkit.c
board/bf561-acvilon/bf561-acvilon.c
board/bf561-ezkit/bf561-ezkit.c
board/blackstamp/blackstamp.c
board/cm-bf527/cm-bf527.c
board/cm-bf533/cm-bf533.c
board/cm-bf537e/cm-bf537e.c
board/cm-bf537u/cm-bf537u.c
board/cm-bf548/cm-bf548.c
board/cm-bf561/cm-bf561.c
board/ibf-dsp561/ibf-dsp561.c
board/tcm-bf537/tcm-bf537.c
lib_blackfin/board.c

index 63be7cf06c90dea9e711ef440ac3d0221e24305a..279c55c99dbd4ebcbc8bab93881b98a02474584c 100644 (file)
@@ -25,13 +25,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #if defined(CONFIG_BFIN_MAC)
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 1666bf661448861b33086a8706e0e9455d89e3cb..52d82cd87e4b6832bcbbf398228257a84975d107 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 2cbfa8d03acf72c2ae2b2231cc70140c477853ca..a8800661130f5b2c1b811ef0fe301dfafc301ce7 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 8727dee6d9d01334ce1ea0a9cf15517d644eb9a6..b1aa7b7ceea4c8acdf19edb0e4f64eaf15e756c8 100644 (file)
@@ -39,13 +39,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 /* miscellaneous platform dependent initialisations */
 int misc_init_r(void)
 {
index a2269105bebdd6e594f862781692df035eedfeab..7a63c527ed06668c939d3d0a71c5cc3c37c116c5 100644 (file)
@@ -39,13 +39,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 /* PF0 and PF1 are used to switch between the ethernet and flash:
  *         PF0  PF1
  *  flash:  0    0
index 71b452a4f88825f625e4ba15796f910365da9c12..920429c12e69fb88aba5ba5bfe1d87f635646c45 100644 (file)
@@ -23,13 +23,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 12cfefa8ffaa780420ce42296a65d1dcb660da46..c5125288cbddcac21ff45820df4daaa67eb6241c 100644 (file)
@@ -23,13 +23,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 5ad39cc9357057f3d1751f7192596779ae941f84..04d38910b3f14cb8b75b6b1d90259b5fd3174989 100644 (file)
@@ -23,13 +23,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 28597c9e69dc9bf0caac14bf20e79f3a762b3139..3911be671bbec61df51b4569f0c80dd55cddfd8d 100644 (file)
@@ -43,13 +43,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 void board_reset(void)
 {
        /* workaround for weak pull ups on ssel */
index 15916fad64a631bc948a3c10df0dfa9dea59e7b8..49d30e75d0bd64eb3a216d2e01137b0e507803ba 100644 (file)
@@ -20,13 +20,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_SMC91111
 int board_eth_init(bd_t *bis)
 {
index 88a0cd4d619b9d15ddc9ebaf1615fd76199bc4da..29c2e923e06faf432ee0617e7fae73763f7e9cb1 100644 (file)
@@ -21,13 +21,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 int board_early_init_f(void)
 {
        /* Port H: PH8 - PH13 == A4 - A9
index 58a276837e5d15c06d1f814d46e3c382257fe527..483758ef9912b95bd9f6ec6b2d1a50f4d4a6f3f0 100644 (file)
@@ -43,13 +43,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_SMC911X
 int board_eth_init(bd_t *bis)
 {
index e5d7eb3388acad298d17cf2da0ac2e912345af9d..b2411b65bf65fc13c88f980f569045666da19f73 100644 (file)
@@ -38,13 +38,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_SMC91111
 int board_eth_init(bd_t *bis)
 {
index f55ab975e447b06443bf71e33822b5ca7f3099c0..6355c10959d804c06087ce3fc75e7adcfbd0c56e 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef SHARED_RESOURCES
 void swap_to(int device_id)
 {
index db1cf9028cb9f40a55c524a428c7c6dfdebec1f0..b6815b1ccda687fa6d224bb84724284e4c3e7cf2 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index ab0bf3bf6598e5f9e00e85425d01c93f0499470c..a863195057d121aeeeb6d874bb4dff11ad4ed4e3 100644 (file)
@@ -18,13 +18,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_SMC91111
 int board_eth_init(bd_t *bis)
 {
index d1ca0a420fde5cac31059ba1aae191f54b9dbf8e..1e350dc0648335ef077e9d4b2984889fec5bb48d 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 9628e0f949a0d8d2e1120ed0caa67585699ec0bd..92fa5a099375fa42151551662d123bbaf4db31f7 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 796263d62b39b66a5f700be7563baefc0c64a351..3627586b69359fcec3feb1fca646b5d25c379323 100644 (file)
@@ -21,13 +21,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 int board_early_init_f(void)
 {
        /* Port H: PH8 - PH13 == A4 - A9
index f21a015e42c8e7db2e2d19f296e3d5da2855613e..80cfff7242cb3eba56482e367beb409d0aeec34d 100644 (file)
@@ -18,13 +18,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_SMC91111
 int board_eth_init(bd_t *bis)
 {
index 551fc291a052128a8aa0a983fcf647a836efc7d5..b5bebd4a90f0a19ad9610c4e69ec0c44dad2ab0f 100644 (file)
@@ -16,10 +16,3 @@ int checkboard(void)
        printf("       Support: http://www.i-syst.com/\n");
        return 0;
 }
-
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
index 573387d4f669bfaf3183e486f6b83c74c4b6a2d7..60742dfea5b52a995a02f857c595a386b9e7c59a 100644 (file)
@@ -24,13 +24,6 @@ int checkboard(void)
        return 0;
 }
 
-phys_size_t initdram(int board_type)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
-       return gd->bd->bi_memsize;
-}
-
 #ifdef CONFIG_BFIN_MAC
 static void board_init_enetaddr(uchar *mac_addr)
 {
index 6cade7d1102e2d968ab3148732ee33f5ea934e6f..b414b2a0f3be03027afa2b95de91b798b8774c14 100644 (file)
@@ -239,6 +239,8 @@ void board_init_f(ulong bootflag)
        bd->bi_vco = get_vco();
        bd->bi_cclk = get_cclk();
        bd->bi_sclk = get_sclk();
+       bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
 
        /* Initialize */
        serial_early_puts("IRQ init\n");
@@ -262,7 +264,7 @@ void board_init_f(ulong bootflag)
        printf("System: %s MHz\n", strmhz(buf, get_sclk()));
 
        printf("RAM:   ");
-       print_size(initdram(0), "\n");
+       print_size(bd->bi_memsize, "\n");
 #if defined(CONFIG_POST)
        post_init_f();
        post_bootmode_init();