diff options
author | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 |
commit | 8bde7f776c77b343aca29b8c7b58464d915ac245 (patch) | |
tree | 20f1fd99975215e7c658454a15cdb4ed4694e2d4 /board/a3000 | |
parent | 993cad9364c6b87ae429d1ed1130d8153f6f027e (diff) |
* Code cleanup:LABEL_2003_06_27_2340
- 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/a3000')
-rw-r--r-- | board/a3000/Makefile | 2 | ||||
-rw-r--r-- | board/a3000/README | 1 | ||||
-rw-r--r-- | board/a3000/flash.c | 14 | ||||
-rw-r--r-- | board/a3000/u-boot.lds | 5 |
4 files changed, 12 insertions, 10 deletions
diff --git a/board/a3000/Makefile b/board/a3000/Makefile index 02e2b4b98bf..5fde362713b 100644 --- a/board/a3000/Makefile +++ b/board/a3000/Makefile @@ -28,7 +28,7 @@ LIB = lib$(BOARD).a OBJS = $(BOARD).o flash.o $(LIB): .depend $(OBJS) - $(AR) crv $@ $^ + $(AR) crv $@ $(OBJS) ######################################################################### diff --git a/board/a3000/README b/board/a3000/README index 417969f55fe..f0e92c543df 100644 --- a/board/a3000/README +++ b/board/a3000/README @@ -15,4 +15,3 @@ Thus, U-Boot is configured to reside in flash starting at the address of U-Boot, at the address of 0xFFFE0000. There is a National ns83815 10/100M ethernet controller on-board. - diff --git a/board/a3000/flash.c b/board/a3000/flash.c index cbfd1d1a6d0..13a5ca5b065 100644 --- a/board/a3000/flash.c +++ b/board/a3000/flash.c @@ -71,7 +71,7 @@ unsigned long flash_init (void) int i; /* Init: no FLASHes known */ - for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) + for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) { flash_info[i].flash_id = FLASH_UNKNOWN; @@ -81,7 +81,7 @@ unsigned long flash_init (void) */ size_b[i] = flash_get_size((vu_char *) 0xff800000 , &flash_info[i]); - if (flash_info[i].flash_id == FLASH_UNKNOWN) + if (flash_info[i].flash_id == FLASH_UNKNOWN) { printf ("## Unknown FLASH on Bank %d: " "ID 0x%lx, Size = 0x%08lx = %ld MB\n", @@ -119,7 +119,7 @@ unsigned long flash_init (void) size = 0; DEBUGF("## Final Flash bank sizes: "); - for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) + for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) { DEBUGF("%08lx ", size_b[i]); size += size_b[i]; @@ -174,16 +174,16 @@ void flash_print_info (flash_info_t *info) } switch (info->flash_id & FLASH_TYPEMASK) { - case FLASH_28F320J3A: + case FLASH_28F320J3A: printf ("28F320J3A (32Mbit = 128K x 32)\n"); break; - case FLASH_28F640J3A: + case FLASH_28F640J3A: printf ("28F640J3A (64Mbit = 128K x 64)\n"); break; - case FLASH_28F128J3A: + case FLASH_28F128J3A: printf ("28F128J3A (128Mbit = 128K x 128)\n"); break; - default: + default: printf ("Unknown Chip Type\n"); break; } diff --git a/board/a3000/u-boot.lds b/board/a3000/u-boot.lds index 627a53b3b60..6bd865e8cce 100644 --- a/board/a3000/u-boot.lds +++ b/board/a3000/u-boot.lds @@ -102,6 +102,10 @@ SECTIONS _edata = .; PROVIDE (edata = .); + __u_boot_cmd_start = .; + .u_boot_cmd : { *(.u_boot_cmd) } + __u_boot_cmd_end = .; + __start___ex_table = .; __ex_table : { *(__ex_table) } __stop___ex_table = .; @@ -125,4 +129,3 @@ SECTIONS _end = . ; PROVIDE (end = .); } - |