update VCMA9 port
PATCH 1/1 update VCMA9 port
This patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- various cleanups and coding style fixes
board/mpl/vcma9/Makefile +1 -1
@@ -28,7 +28,7 @@ endif LIB = $(obj)lib$(BOARD).o -COBJS := vcma9.o flash.o cmd_vcma9.o +COBJS := vcma9.o cmd_vcma9.o COBJS += ../common/common_util.o SOBJS := lowlevel_init.o
board/mpl/vcma9/cmd_vcma9.c +2 -2
@@ -43,7 +43,7 @@ static uchar cs8900_chksum(ushort data)DECLARE_GLOBAL_DATA_PTR ; -extern void print_vcma9_info (void ); +extern void vcma9_print_info (void );extern int vcma9_cantest (int );extern int vcma9_nandtest (void );extern int vcma9_nanderase (void );
@@ -60,7 +60,7 @@ int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])char cs8900_name[10 ];if (strcmp (argv[1 ],"info" ) ==0 ) { -print_vcma9_info (); +vcma9_print_info ();return 0 ; }#if defined(CONFIG_CS8900 )
board/mpl/vcma9/config.mk +3 -11
@@ -1,5 +1,5 @@ # -# (C) Copyright 2002, 2003 +# (C) Copyright 2002, 2003, 2010 # David Mueller, ELSOFT AG, <[email protected]> # # MPL VCMA9 board with S3C2410X (ARM920T) cpu
@@ -7,18 +7,10 @@ # see http://www.mpl.ch/ for more information about the MPL VCMA9 # -# -# MPL VCMA9 has 1 bank of minimal 16 MB DRAM -# from 0x30000000 -# # Linux-Kernel is expected to be at 3000'8000, entry 3000'8000 # optionally with a ramdisk at 3040'0000 # -# we load ourself to 33F8'0000 +# NOR flash is mapped at address 0 # -# download area is 3080'0000 -# - -#CONFIG_SYS_TEXT_BASE = 0x30F80000 -CONFIG_SYS_TEXT_BASE = 0x33F80000 +CONFIG_SYS_TEXT_BASE = 0x0
board/mpl/vcma9/flash.c deleted +0 -432
432 lines not on this page · raw message
board/mpl/vcma9/lowlevel_init.S +429 -120
614 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +75 -207
389 lines not on this page · raw message
board/mpl/vcma9/vcma9.h +14 -103
120 lines not on this page · raw message
include/configs/VCMA9.h +125 -94
335 lines not on this page · raw message
PATCH 1/1 update VCMA9 port
Dear =?UTF-8?q?David=20M=C3=BCller?=,
Quoted 6 lines · In message <[email protected]> you wrote:
This patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- various cleanups and coding style fixes
...
Quoted 4 lines
board/mpl/vcma9/config.mk +0
-0
...
board/mpl/vcma9/config.mk line 16
Quoted 3 lines
board/mpl/vcma9/config.mk +1
-2-#CONFIG_SYS_TEXT_BASE = 0x30F80000 -CONFIG_SYS_TEXT_BASE = 0x33F80000 +CONFIG_SYS_TEXT_BASE = 0x0
Please move this line into your board config file, and drop the config.mk file.
board/mpl/vcma9/lowlevel_init.S line 8
Quoted 10 lines
board/mpl/vcma9/lowlevel_init.S +0
-2@@ -4,9 +4,9 @@ * Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw at its.tudelft.nl) and * Jan-Derk Bakker (J.D.Bakker at its.tudelft.nl) * - * Modified for the Samsung SMDK2410 by - * (C) Copyright 2002
I understand this file was created using copy & paste; why do you think it is legal to remove the original copyright notice?
board/mpl/vcma9/lowlevel_init.S line 8
Quoted 2 lines
board/mpl/vcma9/lowlevel_init.S +1
-0+ * Modified for MPL VCMA9 by * David Mueller, ELSOFT AG, <[email protected]>
We don't need this here. This information is present in the commit logs.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You Don't Have To Be 'Damned' To Work Here, But It Helps!!!
- Terry Pratchett, _Eric_PATCH 1/1 update VCMA9 port
Quoted 2 lines · Wolfgang Denk
Please move this line into your board config file, and drop the config.mk file.
Ok, will be done.
Quoted 7 lines
Quoted 4 lines
- * Modified for the Samsung SMDK2410 by
- * (C) Copyright 2002
+ * Modified for MPL VCMA9 by
* David Mueller, ELSOFT AG, <[email protected]>I understand this file was created using copy & paste; why do you think it is legal to remove the original copyright notice?
The actual patch looks like this:
- * Modified for the Samsung SMDK2410 by
- * (C) Copyright 2002
+ * Modified for MPL VCMA9 by
* David Mueller, ELSOFT AG, <[email protected]>
+ * (C) Copyright 2002, 2003, 2004, 2005
As you can see, i don't remove any copyright notice (just extending it) and i fix an obviously bad reference to SMDK2410.
Dave
PATCH v2 1/1 update VCMA9 port
In reply to David MüllerThis patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- remove the unneeded config.mk file
- various cleanups and coding style fixes
board/mpl/vcma9/Makefile +1 -1
@@ -28,7 +28,7 @@ endif LIB = $(obj)lib$(BOARD).o -COBJS := vcma9.o flash.o cmd_vcma9.o +COBJS := vcma9.o cmd_vcma9.o COBJS += ../common/common_util.o SOBJS := lowlevel_init.o
board/mpl/vcma9/cmd_vcma9.c +2 -2
@@ -43,7 +43,7 @@ static uchar cs8900_chksum(ushort data)DECLARE_GLOBAL_DATA_PTR ; -extern void print_vcma9_info (void ); +extern void vcma9_print_info (void );extern int vcma9_cantest (int );extern int vcma9_nandtest (void );extern int vcma9_nanderase (void );
@@ -60,7 +60,7 @@ int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])char cs8900_name[10 ];if (strcmp (argv[1 ],"info" ) ==0 ) { -print_vcma9_info (); +vcma9_print_info ();return 0 ; }#if defined(CONFIG_CS8900 )
board/mpl/vcma9/config.mk deleted +0 -24
@@ -1,24 +0,0 @@ -# -# (C) Copyright 2002, 2003 -# David Mueller, ELSOFT AG, <[email protected]> -# -# MPL VCMA9 board with S3C2410X (ARM920T) cpu -# -# see http://www.mpl.ch/ for more information about the MPL VCMA9 -# - -# -# MPL VCMA9 has 1 bank of minimal 16 MB DRAM -# from 0x30000000 -# -# Linux-Kernel is expected to be at 3000'8000, entry 3000'8000 -# optionally with a ramdisk at 3040'0000 -# -# we load ourself to 33F8'0000 -# -# download area is 3080'0000 -# - - -#CONFIG_SYS_TEXT_BASE = 0x30F80000 -CONFIG_SYS_TEXT_BASE = 0x33F80000
board/mpl/vcma9/flash.c deleted +0 -432
432 lines not on this page · raw message
board/mpl/vcma9/lowlevel_init.S +429 -120
614 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +75 -207
389 lines not on this page · raw message
board/mpl/vcma9/vcma9.h +14 -103
120 lines not on this page · raw message
include/configs/VCMA9.h +127 -94
337 lines not on this page · raw message
PATCH v2 1/1 update VCMA9 port
Dear =?UTF-8?q?David=20M=C3=BCller?=,
board/mpl/vcma9/Makefile
Quoted 13 lines · In message <[email protected]> you wrote:
--===============1318198764==
This patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- remove the unneeded config.mk file
- various cleanups and coding style fixesSigned-off-by David M??ller <[email protected]>board/mpl/vcma9/Makefile +0
-0
NAK. I'm not going to review that. Please stick to the rules. When submitting a new version of the patch you are supposed to descibe what has been changed. For details please see
http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A year spent in artificial intelligence is enough to make one believe in God.
PATCH v3 1/1 update VCMA9 port
In reply to David MüllerThis patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- various cleanups and coding style fixes
- remove the unneeded config.mk file
---
Changes for V2:
- delete config.mk
Changes for V3:
- adjust patch meta info
board/mpl/vcma9/Makefile +1 -1
@@ -28,7 +28,7 @@ endif LIB = $(obj)lib$(BOARD).o -COBJS := vcma9.o flash.o cmd_vcma9.o +COBJS := vcma9.o cmd_vcma9.o COBJS += ../common/common_util.o SOBJS := lowlevel_init.o
board/mpl/vcma9/cmd_vcma9.c +2 -2
@@ -43,7 +43,7 @@ static uchar cs8900_chksum(ushort data)DECLARE_GLOBAL_DATA_PTR ; -extern void print_vcma9_info (void ); +extern void vcma9_print_info (void );extern int vcma9_cantest (int );extern int vcma9_nandtest (void );extern int vcma9_nanderase (void );
@@ -60,7 +60,7 @@ int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])char cs8900_name[10 ];if (strcmp (argv[1 ],"info" ) ==0 ) { -print_vcma9_info (); +vcma9_print_info ();return 0 ; }#if defined(CONFIG_CS8900 )
board/mpl/vcma9/config.mk deleted +0 -24
@@ -1,24 +0,0 @@ -# -# (C) Copyright 2002, 2003 -# David Mueller, ELSOFT AG, <[email protected]> -# -# MPL VCMA9 board with S3C2410X (ARM920T) cpu -# -# see http://www.mpl.ch/ for more information about the MPL VCMA9 -# - -# -# MPL VCMA9 has 1 bank of minimal 16 MB DRAM -# from 0x30000000 -# -# Linux-Kernel is expected to be at 3000'8000, entry 3000'8000 -# optionally with a ramdisk at 3040'0000 -# -# we load ourself to 33F8'0000 -# -# download area is 3080'0000 -# - - -#CONFIG_SYS_TEXT_BASE = 0x30F80000 -CONFIG_SYS_TEXT_BASE = 0x33F80000
board/mpl/vcma9/flash.c deleted +0 -432
432 lines not on this page · raw message
board/mpl/vcma9/lowlevel_init.S +429 -120
614 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +75 -207
389 lines not on this page · raw message
board/mpl/vcma9/vcma9.h +14 -103
120 lines not on this page · raw message
include/configs/VCMA9.h +127 -94
337 lines not on this page · raw message
PATCH v3 1/1 update VCMA9 port
In reply to David MüllerDear David M?ller,
Quoted 7 lines · David M?ller
This patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
?- do the necessary adjustments to support the ARM relocation feature ?- use the CFI flash driver (and removing the old one)
?- various cleanups and coding style fixes
?- remove the unneeded config.mk file
If so, you should separate the patch.
Thanks
Minkyu Kang
Signature · 2 lines
from. prom. www.promsoft.net
PATCH v3 1/1 update VCMA9 port
Dear Minkyu Kang,
Quoted 5 lines · In message <[email protected]> you…
Quoted 3 lines · David M=FCller
This patch brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
...
Quoted 1 line
If so, you should separate the patch.
You you ask for such changes, could you please also update the patch status in patchwork to "Changes Requested"? Thanks!
[This applies to all other custodians as well! Thanks!]
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I paid too much for it, but its worth it.
PATCH v3 1/1 update VCMA9 port
Dear Wolfgang Denk,
Quoted 6 lines · Wolfgang Denk
Dear Minkyu Kang,
You you ask for such changes, could you please also update the patch status in patchwork to "Changes Requested"? ?Thanks!
Quoted 6 lines
[This applies to all other custodians as well! ?Thanks!]
Best regards,
Wolfgang Denk
OK, I will.
Thanks
Minkyu Kang
Signature · 2 lines
from. prom. www.promsoft.net
PATCH v4 1/1 update VCMA9 port
In reply to David MüllerThis patch serie brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- remove the unneeded config.mk file
- various cleanups/coding style fixes
---
board/mpl/vcma9/Makefile | 2 +- board/mpl/vcma9/cmd_vcma9.c | 4 +- board/mpl/vcma9/config.mk | 24 -- board/mpl/vcma9/flash.c | 432 ------------------------------ board/mpl/vcma9/lowlevel_init.S | 549 ++++++++++++++++++++++++++++++--------- board/mpl/vcma9/vcma9.c | 284 ++++++--------------- board/mpl/vcma9/vcma9.h | 117 +-------- include/configs/VCMA9.h | 232 ++++++++++------- 8 files changed, 654 insertions(+), 990 deletions(-)
Changes for V2:
- delete config.mk
Changes for V3:
- adjust patch meta info
Changes for V4:
- split patch into smaller pieces
- prefix patches with VCMA9
- additional tabulator cleanup in VCMA9.h
- remove unneeded #undef CONFIG_SYS_ARM_WITHOUT_RELOC in VCMA9.h
PATCH v4 1/4 VCMA9: activate ARM relocation feature
In reply to David Müller--- include/configs/VCMA9.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
include/configs/VCMA9.h +6 -0
@@ -247,4 +247,10 @@#define MULTI_PURPOSE_SOCKET_ADDR 0x08000000 +/* additions for new relocation code, must added to all boards */ +#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - \ + GENERATED_GBL_DATA_SIZE) + +#endif /* __CONFIG_H */
Signature · 1 line
1.7.1
PATCH v4 1/4 VCMA9: activate ARM relocation feature
Dear =?UTF-8?q?David=20M=C3=BCller?=,
Quoted 13 lines · In message <[email protected]> you wrote:
--===============0390427290==
Signed-off-by David M??ller <[email protected]>--- include/configs/VCMA9.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)include/configs/VCMA9.h +0
-0
include/configs/VCMA9.h line 250
Quoted 4 lines
include/configs/VCMA9.h +1
-0@@ -247,4 +247,10 @@#define MULTI_PURPOSE_SOCKET_ADDR 0x08000000 +/* additions for new relocation code, must added to all boards */
I don't see much sense in such a comment. "New relocation code" is not generally meaningful, and "must be added" is not only missing a "be" but also redundant as you just added the code.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"He only drinks when he gets depressed." "Why does he get depressed?"
"Sometimes it's because he hasn't had a drink."
- Terry Pratchett, _Men at Arms_PATCH v4 1/4 VCMA9: activate ARM relocation feature
In reply to David MüllerDear =?UTF-8?q?David=20M=C3=BCller?=,
Quoted 2 lines · In message <[email protected]> you wrote:
Signed-off-by David M??ller <[email protected]>
Actually the Subject: is wrong. No part in this patch "activates" anything - you just add some missing definitions to fix build problems.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I've already got a female to worry about. Her name is the Enterprise. -- Kirk, "The Corbomite Maneuver", stardate 1514.0
PATCH v4 2/4 VCMA9: remove unneeded config.mk
In reply to David Müller--- board/mpl/vcma9/config.mk | 24 ------------------------ include/configs/VCMA9.h | 2 ++ 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 board/mpl/vcma9/config.mk
board/mpl/vcma9/config.mk deleted +0 -24
@@ -1,24 +0,0 @@ -# -# (C) Copyright 2002, 2003 -# David Mueller, ELSOFT AG, <[email protected]> -# -# MPL VCMA9 board with S3C2410X (ARM920T) cpu -# -# see http://www.mpl.ch/ for more information about the MPL VCMA9 -# - -# -# MPL VCMA9 has 1 bank of minimal 16 MB DRAM -# from 0x30000000 -# -# Linux-Kernel is expected to be at 3000'8000, entry 3000'8000 -# optionally with a ramdisk at 3040'0000 -# -# we load ourself to 33F8'0000 -# -# download area is 3080'0000 -# - - -#CONFIG_SYS_TEXT_BASE = 0x30F80000 -CONFIG_SYS_TEXT_BASE = 0x33F80000
include/configs/VCMA9.h +2 -0
@@ -38,6 +38,8 @@#define CONFIG_S3C2410 1/* specifically a SAMSUNG S3C2410 SoC */ #define CONFIG_VCMA9 1/* on a MPL VCMA9 Board */ +#define CONFIG_SYS_TEXT_BASE 0x0 +/* input clock of PLL */ #define CONFIG_SYS_CLK_FREQ 12000000/* VCMA9 has 12MHz input clock */
Signature · 1 line
1.7.1
PATCH v4 3/4 VCMA9: use the CFI driver (and remove the old one)
In reply to David Müller--- board/mpl/vcma9/Makefile | 2 +- board/mpl/vcma9/flash.c | 432 ---------------------------------------------- board/mpl/vcma9/vcma9.c | 12 ++ include/configs/VCMA9.h | 28 +-- 4 files changed, 22 insertions(+), 452 deletions(-) delete mode 100644 board/mpl/vcma9/flash.c
board/mpl/vcma9/Makefile +1 -1
@@ -28,7 +28,7 @@ endif LIB = $(obj)lib$(BOARD).o -COBJS := vcma9.o flash.o cmd_vcma9.o +COBJS := vcma9.o cmd_vcma9.o COBJS += ../common/common_util.o SOBJS := lowlevel_init.o
board/mpl/vcma9/flash.c deleted +0 -432
432 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +12 -0
@@ -360,3 +360,15 @@ int board_eth_init(bd_t *bis) return rc; }#endif + +/* +* Hardcoded flash setup: +* Flash 0 is a non-CFI AMD AM29F400BB flash. +*/ +ulong board_flash_get_legacy (ulong base,int banknum,flash_info_t *info) +{ + info->portwidth =FLASH_CFI_16BIT ; + info->chipwidth =FLASH_CFI_BY16 ; + info->interface =FLASH_CFI_X16 ; +return 1 ; +}
include/configs/VCMA9.h +9 -19
@@ -105,6 +105,7 @@/*#define CONFIG_MALLOC_SIZE (CONFIG_ENV_SIZE + 128*1024)*/ #define CONFIG_SYS_MONITOR_LEN (256 * 1024) +#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE#define CONFIG_SYS_MALLOC_LEN (1024 * 1024)/* BUNZIP2 needs a lot of RAM */ /*
@@ -211,32 +212,21 @@#define PHYS_SDRAM_1 0x30000000/* SDRAM Bank #1 */ #define PHYS_FLASH_1 0x00000000/* Flash Bank #1 */ -#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1 +#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1/*----------------------------------------------------------------------- * FLASH and environment organization */ -#define CONFIG_AMD_LV400 1/* uncomment this if you have a LV400 flash */ -#if 0 -#define CONFIG_AMD_LV800 1/* uncomment this if you have a LV800 flash */ -#endif +#define CONFIG_SYS_FLASH_CFI +#define CONFIG_FLASH_CFI_DRIVER +#define CONFIG_FLASH_CFI_LEGACY +#define CONFIG_SYS_FLASH_LEGACY_512Kx16 +#define CONFIG_FLASH_SHOW_PROGRESS 45#define CONFIG_SYS_MAX_FLASH_BANKS 1/* max number of memory banks */ -#ifdef CONFIG_AMD_LV800 -#define PHYS_FLASH_SIZE 0x00100000/* 1MB */ -#define CONFIG_SYS_MAX_FLASH_SECT (19)/* max number of sectors on one chip */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x0F0000)/* addr of environment */ -#endif -#ifdef CONFIG_AMD_LV400 -#define PHYS_FLASH_SIZE 0x00080000/* 512KB */ -#define CONFIG_SYS_MAX_FLASH_SECT (11)/* max number of sectors on one chip */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x070000)/* addr of environment */ -#endif - -/* timeout values are in ticks */ -#define CONFIG_SYS_FLASH_ERASE_TOUT (5*CONFIG_SYS_HZ)/* Timeout for Flash Erase */ -#define CONFIG_SYS_FLASH_WRITE_TOUT (5*CONFIG_SYS_HZ)/* Timeout for Flash Write */ +#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } +#define CONFIG_SYS_MAX_FLASH_SECT (19)#if 0 #define CONFIG_ENV_IS_IN_FLASH 1
Signature · 1 line
1.7.1
PATCH v4 4/4 VCMA9: various cleanups/code style fixes
In reply to David Müller--- board/mpl/vcma9/cmd_vcma9.c | 4 +- board/mpl/vcma9/lowlevel_init.S | 549 ++++++++++++++++++++++++++++++--------- board/mpl/vcma9/vcma9.c | 272 +++++--------------- board/mpl/vcma9/vcma9.h | 117 +-------- include/configs/VCMA9.h | 200 +++++++++------ 5 files changed, 626 insertions(+), 516 deletions(-)
board/mpl/vcma9/cmd_vcma9.c +2 -2
@@ -43,7 +43,7 @@ static uchar cs8900_chksum(ushort data)DECLARE_GLOBAL_DATA_PTR ; -extern void print_vcma9_info (void ); +extern void vcma9_print_info (void );extern int vcma9_cantest (int );extern int vcma9_nandtest (void );extern int vcma9_nanderase (void );
@@ -60,7 +60,7 @@ int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])char cs8900_name[10 ];if (strcmp (argv[1 ],"info" ) ==0 ) { -print_vcma9_info (); +vcma9_print_info ();return 0 ; }#if defined(CONFIG_CS8900 )
board/mpl/vcma9/lowlevel_init.S +429 -120
614 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +63 -209
374 lines not on this page · raw message
board/mpl/vcma9/vcma9.h +14 -103
120 lines not on this page · raw message
include/configs/VCMA9.h +118 -82
321 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH v4 4/4 VCMA9: various cleanups/code style fixes
Dear =?UTF-8?q?David=20M=C3=BCller?=,
Quoted 11 lines · In message <[email protected]> you wrote:
--===============1758926862==
Signed-off-by David M??ller <[email protected]>--- board/mpl/vcma9/cmd_vcma9.c | 4 +- board/mpl/vcma9/lowlevel_init.S | 549 ++++++++++++++++++++++++++++++--------- board/mpl/vcma9/vcma9.c | 272 +++++--------------- board/mpl/vcma9/vcma9.h | 117 +-------- include/configs/VCMA9.h | 200 +++++++++------ 5 files changed, 626 insertions(+), 516 deletions(-)
Where is the change log that shows what has been changed with this new patch version? Please see
http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions
board/mpl/vcma9/cmd_vcma9.c static uchar cs8900_chksum(ushort data) · line 46
Quoted 2 lines
board/mpl/vcma9/cmd_vcma9.c +1
-1-extern void print_vcma9_info (void ); +extern void vcma9_print_info (void );
Please get rid of all such externs - move the prototype declarations to appropriate header files. Please fix globally.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is impractical for the standard to attempt to constrain the
behavior of code that does not obey the constraints of the standard.
- Doug Gwynv5 cover update VCMA9 port
In reply to David MüllerThis patch serie brings the VCMA9 port in sync with the latest U-Boot version by doing the following:
- do the necessary adjustments to support the ARM relocation feature
- use the CFI flash driver (and removing the old one)
- remove the unneeded config.mk file
- various cleanups/coding style fixes
---
board/mpl/vcma9/Makefile | 4 +- board/mpl/vcma9/cmd_vcma9.c | 56 +---- board/mpl/vcma9/config.mk | 24 -- board/mpl/vcma9/flash.c | 432 ------------------------------ board/mpl/vcma9/lowlevel_init.S | 549 ++++++++++++++++++++++++++++++--------- board/mpl/vcma9/vcma9.c | 284 ++++++--------------- board/mpl/vcma9/vcma9.h | 121 ++-------- include/configs/VCMA9.h | 256 ++++++++++--------- 8 files changed, 661 insertions(+), 1065 deletions(-)
Changes for V2:
- delete config.mk
Changes for V3:
- adjust patch meta info
Changes for V4:
- split patch into smaller pieces
- prefix patches with VCMA9
- additional tabulator cleanup in VCMA9.h
- remove unneeded #undef CONFIG_SYS_ARM_WITHOUT_RELOC in VCMA9.h
Changes for V5:
- remove unneeded comment and change subject
- remove dead debug code and move externs into header file
PATCH v5 1/4 VCMA9: use ARM relocation feature to fix build error
In reply to David Müller--- include/configs/VCMA9.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
Changes for V5:
- remove unneeded comment and change subject
include/configs/VCMA9.h +5 -0
@@ -247,4 +247,9 @@#define MULTI_PURPOSE_SOCKET_ADDR 0x08000000 +#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - \ + GENERATED_GBL_DATA_SIZE) + +#endif /* __CONFIG_H */
Signature · 1 line
1.7.1
PATCH v5 2/4 VCMA9: remove unneeded config.mk
In reply to David Müller--- board/mpl/vcma9/config.mk | 24 ------------------------ include/configs/VCMA9.h | 2 ++ 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 board/mpl/vcma9/config.mk
board/mpl/vcma9/config.mk deleted +0 -24
@@ -1,24 +0,0 @@ -# -# (C) Copyright 2002, 2003 -# David Mueller, ELSOFT AG, <[email protected]> -# -# MPL VCMA9 board with S3C2410X (ARM920T) cpu -# -# see http://www.mpl.ch/ for more information about the MPL VCMA9 -# - -# -# MPL VCMA9 has 1 bank of minimal 16 MB DRAM -# from 0x30000000 -# -# Linux-Kernel is expected to be at 3000'8000, entry 3000'8000 -# optionally with a ramdisk at 3040'0000 -# -# we load ourself to 33F8'0000 -# -# download area is 3080'0000 -# - - -#CONFIG_SYS_TEXT_BASE = 0x30F80000 -CONFIG_SYS_TEXT_BASE = 0x33F80000
include/configs/VCMA9.h +2 -0
@@ -38,6 +38,8 @@#define CONFIG_S3C2410 1/* specifically a SAMSUNG S3C2410 SoC */ #define CONFIG_VCMA9 1/* on a MPL VCMA9 Board */ +#define CONFIG_SYS_TEXT_BASE 0x0 +/* input clock of PLL */ #define CONFIG_SYS_CLK_FREQ 12000000/* VCMA9 has 12MHz input clock */
Signature · 1 line
1.7.1
PATCH v5 3/4 VCMA9: use CFI driver (and remove the old one)
In reply to David Müller--- board/mpl/vcma9/Makefile | 2 +- board/mpl/vcma9/flash.c | 432 ---------------------------------------------- board/mpl/vcma9/vcma9.c | 12 ++ include/configs/VCMA9.h | 28 +-- 4 files changed, 22 insertions(+), 452 deletions(-) delete mode 100644 board/mpl/vcma9/flash.c
board/mpl/vcma9/Makefile +1 -1
@@ -28,7 +28,7 @@ endif LIB = $(obj)lib$(BOARD).o -COBJS := vcma9.o flash.o cmd_vcma9.o +COBJS := vcma9.o cmd_vcma9.o COBJS += ../common/common_util.o SOBJS := lowlevel_init.o
board/mpl/vcma9/flash.c deleted +0 -432
432 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +12 -0
@@ -360,3 +360,15 @@ int board_eth_init(bd_t *bis) return rc; }#endif + +/* +* Hardcoded flash setup: +* Flash 0 is a non-CFI AMD AM29F400BB flash. +*/ +ulong board_flash_get_legacy (ulong base,int banknum,flash_info_t *info) +{ + info->portwidth =FLASH_CFI_16BIT ; + info->chipwidth =FLASH_CFI_BY16 ; + info->interface =FLASH_CFI_X16 ; +return 1 ; +}
include/configs/VCMA9.h +9 -19
@@ -105,6 +105,7 @@/*#define CONFIG_MALLOC_SIZE (CONFIG_ENV_SIZE + 128*1024)*/ #define CONFIG_SYS_MONITOR_LEN (256 * 1024) +#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE#define CONFIG_SYS_MALLOC_LEN (1024 * 1024)/* BUNZIP2 needs a lot of RAM */ /*
@@ -211,32 +212,21 @@#define PHYS_SDRAM_1 0x30000000/* SDRAM Bank #1 */ #define PHYS_FLASH_1 0x00000000/* Flash Bank #1 */ -#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1 +#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1/*----------------------------------------------------------------------- * FLASH and environment organization */ -#define CONFIG_AMD_LV400 1/* uncomment this if you have a LV400 flash */ -#if 0 -#define CONFIG_AMD_LV800 1/* uncomment this if you have a LV800 flash */ -#endif +#define CONFIG_SYS_FLASH_CFI +#define CONFIG_FLASH_CFI_DRIVER +#define CONFIG_FLASH_CFI_LEGACY +#define CONFIG_SYS_FLASH_LEGACY_512Kx16 +#define CONFIG_FLASH_SHOW_PROGRESS 45#define CONFIG_SYS_MAX_FLASH_BANKS 1/* max number of memory banks */ -#ifdef CONFIG_AMD_LV800 -#define PHYS_FLASH_SIZE 0x00100000/* 1MB */ -#define CONFIG_SYS_MAX_FLASH_SECT (19)/* max number of sectors on one chip */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x0F0000)/* addr of environment */ -#endif -#ifdef CONFIG_AMD_LV400 -#define PHYS_FLASH_SIZE 0x00080000/* 512KB */ -#define CONFIG_SYS_MAX_FLASH_SECT (11)/* max number of sectors on one chip */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x070000)/* addr of environment */ -#endif - -/* timeout values are in ticks */ -#define CONFIG_SYS_FLASH_ERASE_TOUT (5*CONFIG_SYS_HZ)/* Timeout for Flash Erase */ -#define CONFIG_SYS_FLASH_WRITE_TOUT (5*CONFIG_SYS_HZ)/* Timeout for Flash Write */ +#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } +#define CONFIG_SYS_MAX_FLASH_SECT (19)#if 0 #define CONFIG_ENV_IS_IN_FLASH 1
Signature · 1 line
1.7.1
PATCH v5 4/4 VCMA9: various cleanups/code style fixes
In reply to David Müller--- board/mpl/vcma9/Makefile | 4 +- board/mpl/vcma9/cmd_vcma9.c | 56 +---- board/mpl/vcma9/lowlevel_init.S | 549 ++++++++++++++++++++++++++++++--------- board/mpl/vcma9/vcma9.c | 272 +++++--------------- board/mpl/vcma9/vcma9.h | 121 ++-------- include/configs/VCMA9.h | 223 +++++++++-------- 6 files changed, 634 insertions(+), 591 deletions(-)
Changes for V5:
- remove dead debug code and move externs into header file
board/mpl/vcma9/Makefile +2 -2
@@ -28,8 +28,8 @@ endif LIB = $(obj)lib$(BOARD).o -COBJS := vcma9.o cmd_vcma9.o -COBJS += ../common/common_util.o +COBJS := ../common/common_util.o +COBJS += $(BOARD).o cmd_$(BOARD).o SOBJS := lowlevel_init.o
board/mpl/vcma9/cmd_vcma9.c +3 -53
78 lines not on this page · raw message
board/mpl/vcma9/lowlevel_init.S +429 -120
614 lines not on this page · raw message
board/mpl/vcma9/vcma9.c +63 -209
374 lines not on this page · raw message
board/mpl/vcma9/vcma9.h +16 -105
124 lines not on this page · raw message
include/configs/VCMA9.h +121 -102
329 lines not on this page · raw message
Signature · 1 line
1.7.1