ARM: mach-shmobile: Add memchunk support
Magnus Damm
maintainerPATCH 1/5 ARM: mach-shmobile: Add memchunk support
From: Magnus Damm <[email protected]>
Add SH-Mobile ARM support for "memchunk". The code is taken straight from the SH architecture.
Signed-off-by Magnus Damm <[email protected]>
---
arch/arm/mach-shmobile/Makefile | 2 arch/arm/mach-shmobile/include/mach/common.h | 4 + arch/arm/mach-shmobile/memory.c | 74 ++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/Makefile +1 -1
@@ -3,7 +3,7 @@ # # Common objects -obj-y := timer.o console.o +obj-y := timer.o console.o memory.o # CPU objects obj-$(CONFIG_ARCH_SH7367) += setup-sh7367.o clock-sh7367.o intc-sh7367.o
arch/arm/mach-shmobile/include/mach/common.h +4 -0
@@ -4,6 +4,10 @@extern struct sys_timer shmobile_timer;extern void shmobile_setup_console (void ); +/* allocate contiguous memory chunk and fill in struct resource */ +extern int platform_resource_setup_memory (struct platform_device *pdev, +char *name,unsigned long memsize); +extern void sh7367_init_irq (void );extern void sh7367_add_early_devices (void );extern void sh7367_add_standard_devices (void );
arch/arm/mach-shmobile/memory.c new file +74 -0
74 lines not on this page · raw message