summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc/Kconfig2
-rw-r--r--arch/ppc/lib/ppclinux.c9
-rw-r--r--board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c11
-rw-r--r--common/cmd_bootm.c4
-rw-r--r--cpu/mpc5xxx/Makefile1
-rw-r--r--cpu/mpc5xxx/interrupts.c2
-rw-r--r--include/configs/phycore_mpc5200b_tiny.h6
-rw-r--r--include/image.h1
8 files changed, 14 insertions, 22 deletions
diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig
index 3cac655b36..ef7fc3afbe 100644
--- a/arch/ppc/Kconfig
+++ b/arch/ppc/Kconfig
@@ -25,4 +25,4 @@ endchoice
source common/Kconfig
source net/Kconfig
source drivers/Kconfig
-
+source fs/Kconfig
diff --git a/arch/ppc/lib/ppclinux.c b/arch/ppc/lib/ppclinux.c
index 53208e874e..6562860e58 100644
--- a/arch/ppc/lib/ppclinux.c
+++ b/arch/ppc/lib/ppclinux.c
@@ -1,18 +1,24 @@
#include <common.h>
+#include <command.h>
#include <watchdog.h>
+#include <image.h>
+#include <environment.h>
+#include <asm/global_data.h>
+#include <asm/bitops.h>
#ifdef CONFIG_OF_FLAT_TREE
#include <ft_build.h>
#endif
-static void __attribute__((noinline))
+void __attribute__((noinline))
do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
int argc, char *argv[],
ulong addr,
ulong *len_ptr,
int verify)
{
+#if 0
ulong sp;
ulong len, checksum;
ulong initrd_start, initrd_end;
@@ -458,5 +464,6 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
(*kernel) ((bd_t *)of_flat_tree, (ulong)kernel, 0, 0, 0);
#endif
+#endif
}
diff --git a/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c b/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c
index 65b0e2844a..2395b0fb3e 100644
--- a/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c
+++ b/board/phycore_mpc5200b_tiny/phycore_mpc5200b_tiny.c
@@ -84,17 +84,6 @@ static int devices_init (void)
device_initcall(devices_init);
-/* Do not collide with the env from our first stage loader for now */
-static char *env_spec = "nor0:0+128k";
-
-static int init_env(void)
-{
- add_env_spec(env_spec);
- return 0;
-}
-
-late_initcall(init_env);
-
#define CFG_RAMBOOT
#include "mt46v32m16-75.h"
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 19b6238213..964a022b17 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -813,13 +813,13 @@ U_BOOT_CMD(
void
print_image_hdr (image_header_t *hdr)
{
-#if (CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_TIMESTAMP)
+#ifdef CONFIG_CMD_DATE || defined(CONFIG_TIMESTAMP)
time_t timestamp = (time_t)ntohl(hdr->ih_time);
struct rtc_time tm;
#endif
printf (" Image Name: %.*s\n", IH_NMLEN, hdr->ih_name);
-#if (CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_TIMESTAMP)
+#ifdef CONFIG_CMD_DATE || defined(CONFIG_TIMESTAMP)
to_tm (timestamp, &tm);
printf (" Created: %4d-%02d-%02d %2d:%02d:%02d UTC\n",
tm.tm_year, tm.tm_mon, tm.tm_mday,
diff --git a/cpu/mpc5xxx/Makefile b/cpu/mpc5xxx/Makefile
index 1288442df9..5feca5c5ba 100644
--- a/cpu/mpc5xxx/Makefile
+++ b/cpu/mpc5xxx/Makefile
@@ -12,4 +12,3 @@ obj-y += serial.o
obj-y += speed.o
extra-y += start.o
obj-y += traps.o
-obj-y += usb_ohci.o
diff --git a/cpu/mpc5xxx/interrupts.c b/cpu/mpc5xxx/interrupts.c
index beeb222636..863d353eea 100644
--- a/cpu/mpc5xxx/interrupts.c
+++ b/cpu/mpc5xxx/interrupts.c
@@ -41,6 +41,8 @@
#include <asm/processor.h>
#include <asm/io.h>
#include <command.h>
+#include <asm/arch/sdma.h>
+#include <asm/bitops.h>
struct irq_action {
interrupt_handler_t *handler;
diff --git a/include/configs/phycore_mpc5200b_tiny.h b/include/configs/phycore_mpc5200b_tiny.h
index b2354d7031..00fcf17f9f 100644
--- a/include/configs/phycore_mpc5200b_tiny.h
+++ b/include/configs/phycore_mpc5200b_tiny.h
@@ -54,9 +54,6 @@ Serial console configuration
#define CONFIG_BAUDRATE 115200 /* ... at 115200 bps */
#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
-/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
-#include <cmd_confdefs.h>
-
#define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */
#if (TEXT_BASE == 0xFF000000) /* Boot low */
@@ -68,9 +65,6 @@ Serial console configuration
Autobooting
------------------------------------------------------------------------------------------------------------------------------------------------------*/
#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
-#define CONFIG_ZERO_BOOTDELAY_CHECK /* allow stopping of boot process even with bootdelay=0 */
-#undef CONFIG_BOOTARGS
-
#define CONFIG_PREBOOT "echo;" \
"echo Type \"run net_nfs\" to load Kernel over TFTP and to mount root filesystem over NFS;" \
diff --git a/include/image.h b/include/image.h
index 1cfb76631b..98f154c981 100644
--- a/include/image.h
+++ b/include/image.h
@@ -158,5 +158,6 @@ typedef struct image_header {
/* common/cmd_bootm.c */
void print_image_hdr (image_header_t *hdr);
+extern image_header_t header;
#endif /* __IMAGE_H__ */