Skip to contentSkip to conversation

ARM: mach-shmobile: Add memchunk support

PATCH New Magnus Damm 1 participant 1 message May 12, 2010

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 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.

---

 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