Commit 8d76e2ca authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: get flash based boot args for SCALES and CAMcam boards

Removed unused include of asm/delay.h.
Add support for getting boot args from dedicated flash segment
on the SCALES and CANcam boards.
Signed-off-by: default avatarGreg Ungerer <gerg@snapgear.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f92f8b55
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <asm/mcftimer.h> #include <asm/mcftimer.h>
#include <asm/mcfsim.h> #include <asm/mcfsim.h>
#include <asm/mcfdma.h> #include <asm/mcfdma.h>
#include <asm/delay.h>
/***************************************************************************/ /***************************************************************************/
...@@ -110,7 +109,7 @@ void config_BSP(char *commandp, int size) ...@@ -110,7 +109,7 @@ void config_BSP(char *commandp, int size)
#if defined(CONFIG_BOOTPARAM) #if defined(CONFIG_BOOTPARAM)
strncpy(commandp, CONFIG_BOOTPARAM_STRING, size); strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
commandp[size-1] = 0; commandp[size-1] = 0;
#elif defined(CONFIG_NETtel) #elif defined(CONFIG_NETtel) || defined(CONFIG_SCALES)
/* Copy command line from FLASH to local buffer... */ /* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xf0004000, size); memcpy(commandp, (char *) 0xf0004000, size);
commandp[size-1] = 0; commandp[size-1] = 0;
...@@ -118,6 +117,10 @@ void config_BSP(char *commandp, int size) ...@@ -118,6 +117,10 @@ void config_BSP(char *commandp, int size)
/* Copy command line from FLASH to local buffer... */ /* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xffe06000, size); memcpy(commandp, (char *) 0xffe06000, size);
commandp[size-1] = 0; commandp[size-1] = 0;
#elif defined(CONFIG_CANCam)
/* Copy command line from FLASH to local buffer... */
memcpy(commandp, (char *) 0xf0010000, size);
commandp[size-1] = 0;
#else #else
memset(commandp, 0, size); memset(commandp, 0, size);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment