diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-11-04 15:19:04 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-11-05 13:10:36 +0300 |
commit | 5b39d1548dc2751f8de89e6f429b6560a137eebb (patch) | |
tree | c121a4118a4da4441b8dad03362ebaab98a1867a /arch/arm/mach-realview/core.h | |
parent | 9b229fa0951fb47cbc178be4bd8e9ef185b38802 (diff) | |
download | linux-5b39d1548dc2751f8de89e6f429b6560a137eebb.tar.xz |
RealView: Add default memory configuration
This patch adds a realview_fixup() function called during booting to set
up the memory banks. This way there is no need to pass a "mem=" argument
on the kernel command line.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview/core.h')
-rw-r--r-- | arch/arm/mach-realview/core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/core.h b/arch/arm/mach-realview/core.h index 699671fa6e0b..781bca68a9fa 100644 --- a/arch/arm/mach-realview/core.h +++ b/arch/arm/mach-realview/core.h @@ -25,6 +25,7 @@ #include <linux/amba/bus.h> #include <linux/io.h> +#include <asm/setup.h> #include <asm/leds.h> #define AMBA_DEVICE(name,busid,base,plat) \ @@ -44,6 +45,8 @@ static struct amba_device name##_device = { \ /* .dma = base##_DMA,*/ \ } +struct machine_desc; + extern struct platform_device realview_flash_device; extern struct platform_device realview_cf_device; extern struct platform_device realview_i2c_device; @@ -61,5 +64,8 @@ extern void realview_timer_init(unsigned int timer_irq); extern int realview_flash_register(struct resource *res, u32 num); extern int realview_eth_register(const char *name, struct resource *res); extern int realview_usb_register(struct resource *res); +extern void realview_fixup(struct machine_desc *mdesc, struct tag *tags, + char **from, struct meminfo *meminfo); extern void (*realview_reset)(char); + #endif |