diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig index 3cac655b3..ef7fc3afb 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 53208e874..6562860e5 100644 --- a/arch/ppc/lib/ppclinux.c +++ b/arch/ppc/lib/ppclinux.c @@ -1,18 +1,24 @@ #include +#include #include +#include +#include +#include +#include #ifdef CONFIG_OF_FLAT_TREE #include #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 65b0e2844..2395b0fb3 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 19b623821..964a022b1 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 1288442df..5feca5c5b 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 beeb22263..863d353ee 100644 --- a/cpu/mpc5xxx/interrupts.c +++ b/cpu/mpc5xxx/interrupts.c @@ -41,6 +41,8 @@ #include #include #include +#include +#include struct irq_action { interrupt_handler_t *handler; diff --git a/include/configs/phycore_mpc5200b_tiny.h b/include/configs/phycore_mpc5200b_tiny.h index b2354d703..00fcf17f9 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 - #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 1cfb76631..98f154c98 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__ */