X-Git-Url: https://rtime.felk.cvut.cz/gitweb/mcf548x/linux.git/blobdiff_plain/698a4555a5744245272c7d7eea04068a57c18914..db6f0eeb987ccb6db01d0ea318700368c26be7bf:/arch/m68k/coldfire/config.c diff --git a/arch/m68k/coldfire/config.c b/arch/m68k/coldfire/config.c index aac09391a04c..23be9d435865 100644 --- a/arch/m68k/coldfire/config.c +++ b/arch/m68k/coldfire/config.c @@ -21,10 +21,10 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include #include @@ -35,16 +35,6 @@ #include -#ifdef CONFIG_UBOOT - -#if defined(CONFIG_M5445X) -#define UBOOT_EXTRA_CLOCKS -#elif defined(CONFIG_M547X_8X) -#define UBOOT_PCI -#endif - -#endif - #include #ifdef CONFIG_M5445X @@ -56,7 +46,7 @@ #endif #ifdef CONFIG_M547X_8X -#include +#include #endif extern int get_irq_list(struct seq_file *p, void *v); @@ -67,6 +57,7 @@ extern unsigned long availmem; #if CONFIG_UBOOT extern char m68k_command_line[CL_SIZE]; +struct mem_info m68k_ramdisk; #endif static int irq_enable[NR_IRQS]; @@ -111,11 +102,22 @@ int __init uboot_commandline(char *bootargs) int len = 0, cmd_line_len; unsigned long cmd_line_stop, cmd_line_start; + unsigned long initrd_start, initrd_stop; u32 offset = PAGE_OFFSET_RAW - PHYS_OFFSET; //uboot_init_sp parameters - must add offset to them !! cmd_line_start = uboot_init_sp + 16 + offset; - cmd_line_start = uboot_init_sp + 20 + offset; + cmd_line_stop = uboot_init_sp + 20 + offset; + + initrd_start = uboot_init_sp + 8 + offset; + + if ( *((unsigned long*)initrd_start) != 0) + { + initrd_stop = uboot_init_sp + 12 + offset; + + m68k_ramdisk.addr = initrd_start; + m68k_ramdisk.size = *((unsigned long*)initrd_stop) - *((unsigned long*)initrd_start); + } /* copy command line */ cmd_line_len = cmd_line_stop - cmd_line_start;