aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/devices.c')
-rwxr-xr-xarch/arm/mach-ux500/devices.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/devices.c b/arch/arm/mach-ux500/devices.c
index e962102e51d..6b9cc39ebc6 100755
--- a/arch/arm/mach-ux500/devices.c
+++ b/arch/arm/mach-ux500/devices.c
@@ -45,6 +45,7 @@
#include <mach/uart.h>
#include <mach/setup.h>
#include <mach/kpd.h>
+#include <linux/hwmem.h>
void __init u8500_register_device(struct platform_device *dev, void *data)
{
@@ -327,6 +328,36 @@ struct platform_device ux500_b2r2_device = {
.resource = b2r2_resources,
};
+static struct hwmem_platform_data hwmem_pdata = {
+ .start = 0,
+ .size = 0,
+};
+
+static int __init early_hwmem(char *p)
+{
+ hwmem_pdata.size = memparse(p, &p);
+
+ if (*p != '@')
+ goto no_at;
+
+ hwmem_pdata.start = memparse(p + 1, &p);
+
+ return 0;
+
+no_at:
+ hwmem_pdata.size = 0;
+
+ return -EINVAL;
+}
+early_param("hwmem", early_hwmem);
+
+struct platform_device ux500_hwmem_device = {
+ .name = "hwmem",
+ .dev = {
+ .platform_data = &hwmem_pdata,
+ },
+};
+
#ifdef CONFIG_ANDROID_PMEM
static int __init early_pmem_generic_parse(char *p, struct android_pmem_platform_data * data)
{