summaryrefslogtreecommitdiffstats
path: root/board/wepep250
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-27 21:31:46 +0000
committerwdenk <wdenk>2003-06-27 21:31:46 +0000
commit8bde7f776c77b343aca29b8c7b58464d915ac245 (patch)
tree20f1fd99975215e7c658454a15cdb4ed4694e2d4 /board/wepep250
parent993cad9364c6b87ae429d1ed1130d8153f6f027e (diff)
downloadblackbird-obmc-uboot-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.gz
blackbird-obmc-uboot-8bde7f776c77b343aca29b8c7b58464d915ac245.zip
* Code cleanup:
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'board/wepep250')
-rw-r--r--board/wepep250/Makefile2
-rw-r--r--board/wepep250/flash.c2
-rw-r--r--board/wepep250/intel.h1
-rw-r--r--board/wepep250/memsetup.S10
-rw-r--r--board/wepep250/u-boot.lds24
-rw-r--r--board/wepep250/wepep250.c9
6 files changed, 24 insertions, 24 deletions
diff --git a/board/wepep250/Makefile b/board/wepep250/Makefile
index d4314d76af..802ccb950f 100644
--- a/board/wepep250/Makefile
+++ b/board/wepep250/Makefile
@@ -29,7 +29,7 @@ OBJS := wepep250.o flash.o
SOBJS := memsetup.o
$(LIB): $(OBJS) $(SOBJS)
- $(AR) crv $@ $^
+ $(AR) crv $@ $(OBJS) $(SOBJS)
clean:
rm -f $(SOBJS) $(OBJS)
diff --git a/board/wepep250/flash.c b/board/wepep250/flash.c
index 5c9d346da0..2a322903d5 100644
--- a/board/wepep250/flash.c
+++ b/board/wepep250/flash.c
@@ -201,7 +201,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
} else {
printf ("Erasing sector %2d ... ", sector);
}
-
+
address = (FLASH_BUS *) (info->start[sector]);
*address = FLASH_CMD (CFI_INTEL_CMD_BLOCK_ERASE);
diff --git a/board/wepep250/intel.h b/board/wepep250/intel.h
index f622590107..77498b6e1d 100644
--- a/board/wepep250/intel.h
+++ b/board/wepep250/intel.h
@@ -97,4 +97,3 @@
#define CFI_CHIPN_INTEL_28F256K18 "28F256K18"
#endif /* FLASH_INTEL_H */
-
diff --git a/board/wepep250/memsetup.S b/board/wepep250/memsetup.S
index 8a5d42fc4b..26fc0eaf25 100644
--- a/board/wepep250/memsetup.S
+++ b/board/wepep250/memsetup.S
@@ -5,17 +5,17 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
- *
+ *
* Written by Marcel Telka <marcel@telka.sk>, 2001, 2002.
* Changes for U-Boot Peter Figuli <peposh@etc.sk>, 2003.
*
@@ -28,7 +28,7 @@
* Revision 1.0, February 2002
* [3] Samsung Electronics, "16Mx16 SDRAM 54CSP K4S561633C-RL(N)",
* Revision 1.0, February 2002
- *
+ *
*/
#include <config.h>
@@ -51,7 +51,6 @@ memsetup:
ldr r0, =0x48000000 /* MC_BASE */
-
/* step 1.a - setup MSCx
*/
ldr r1, =0x000012B3 /* MSC0_RRR0(1) | MSC0_RDN0(2) | MSC0_RDF0(11) | MSC0_RT0(3) */
@@ -144,4 +143,3 @@ memsetup:
/* Step 11 - optional (TODO) */
mov pc,r10
-
diff --git a/board/wepep250/u-boot.lds b/board/wepep250/u-boot.lds
index 46beb152c7..38ec25f3fb 100644
--- a/board/wepep250/u-boot.lds
+++ b/board/wepep250/u-boot.lds
@@ -26,29 +26,33 @@ OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
- . = 0x00000000;
+ . = 0x00000000;
- . = ALIGN(4);
+ . = ALIGN(4);
.text :
{
cpu/pxa/start.o (.text)
*(.text)
}
- . = ALIGN(4);
- .rodata : { *(.rodata) }
+ . = ALIGN(4);
+ .rodata : { *(.rodata) }
- . = ALIGN(4);
- .data : { *(.data) }
+ . = ALIGN(4);
+ .data : { *(.data) }
- . = ALIGN(4);
- .got : { *(.got) }
+ . = ALIGN(4);
+ .got : { *(.got) }
+
+ __u_boot_cmd_start = .;
+ .u_boot_cmd : { *(.u_boot_cmd) }
+ __u_boot_cmd_end = .;
armboot_end_data = .;
- . = ALIGN(4);
+ . = ALIGN(4);
bss_start = .;
- .bss : { *(.bss) }
+ .bss : { *(.bss) }
bss_end = .;
armboot_end = .;
diff --git a/board/wepep250/wepep250.c b/board/wepep250/wepep250.c
index ebf75d745d..08b1bfde72 100644
--- a/board/wepep250/wepep250.c
+++ b/board/wepep250/wepep250.c
@@ -26,7 +26,7 @@
int board_init( void ){
DECLARE_GLOBAL_DATA_PTR;
- gd->bd->bi_arch_number = 288;
+ gd->bd->bi_arch_number = 288;
gd->bd->bi_boot_params = 0xa0000000;
/*
* Setup GPIO stuff to get serial working
@@ -59,11 +59,11 @@ int dram_init( void ){
gd->bd->bi_dram[0].start = WEP_SDRAM_1;
gd->bd->bi_dram[0].size = WEP_SDRAM_1_SIZE;
#endif
-#if ( CONFIG_NR_DRAM_BANKS > 1 )
+#if ( CONFIG_NR_DRAM_BANKS > 1 )
gd->bd->bi_dram[1].start = WEP_SDRAM_2;
gd->bd->bi_dram[1].size = WEP_SDRAM_2_SIZE;
#endif
-#if ( CONFIG_NR_DRAM_BANKS > 2 )
+#if ( CONFIG_NR_DRAM_BANKS > 2 )
gd->bd->bi_dram[2].start = WEP_SDRAM_3;
gd->bd->bi_dram[2].size = WEP_SDRAM_3_SIZE;
#endif
@@ -71,7 +71,6 @@ int dram_init( void ){
gd->bd->bi_dram[3].start = WEP_SDRAM_4;
gd->bd->bi_dram[3].size = WEP_SDRAM_4_SIZE;
#endif
-
+
return 0;
}
-
OpenPOWER on IntegriCloud