[U-Boot] [PATCH] move the flash setup to "#ifndef CONFIG_SYS_NO_FLASH"

From: Xiangfu Liu xiangfu@sharism.cc
Hi Wolfgang Denk
in my Ben Nanonote board. there is no flash. I got a error about no "CONFIG_SYS_FLASH_BASE" define. so I move this line to "#ifndef CONFIG_SYS_NO_FLASH"
I have tested with "MAKEALL". no warning or error relate this patch.
this patch is base on [master] branch commit: 1f82ff4777f360e92aa37bbbed647f7b9d9d2044
Signed-off-by: Xiangfu Liu xiangfu@sharism.cc --- arch/mips/lib/board.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c index b2d113e..0af09c6 100644 --- a/arch/mips/lib/board.c +++ b/arch/mips/lib/board.c @@ -349,9 +349,9 @@ void board_init_r (gd_t *id, ulong dest_addr) size = flash_init(); display_flash_config (size); bd->bi_flashsize = size; + bd->bi_flashstart = CONFIG_SYS_FLASH_BASE; #endif
- bd->bi_flashstart = CONFIG_SYS_FLASH_BASE; #if CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE bd->bi_flashoffset = monitor_flash_len; /* reserved area for U-Boot */ #else

Dear xiangfu,
In message 1279510479-5285-1-git-send-email-xiangfu@openmobilefree.net you wrote:
From: Xiangfu Liu xiangfu@sharism.cc
Hi Wolfgang Denk
in my Ben Nanonote board. there is no flash. I got a error about no "CONFIG_SYS_FLASH_BASE" define. so I move this line to "#ifndef CONFIG_SYS_NO_FLASH"
Is there any specific reason for posting the same message 4 times from two different mail addresses?
Please stop doing this!
Best regards,
Wolfgang Denk

oh. very sorry about the same message. the "git send-emails" give me some error. so I thought the email don't sended.
thanks for let me know :)
On 07/20/2010 02:56 AM, Wolfgang Denk wrote:
Dear xiangfu,
In message1279510479-5285-1-git-send-email-xiangfu@openmobilefree.net you wrote:
From: Xiangfu Liuxiangfu@sharism.cc
Hi Wolfgang Denk
in my Ben Nanonote board. there is no flash. I got a error about no "CONFIG_SYS_FLASH_BASE" define. so I move this line to "#ifndef CONFIG_SYS_NO_FLASH"
Is there any specific reason for posting the same message 4 times from two different mail addresses?
Please stop doing this!
Best regards,
Wolfgang Denk
participants (3)
-
"Xiangfu Liu(刘向富)"
-
Wolfgang Denk
-
xiangfu