summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/devices.c
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2011-04-05 11:58:11 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:14:46 +0200
commit8f1ee7fe314757a8ff98ba9547f670da48da9392 (patch)
tree1f693009308f22adfc215e5b617764071d3d255a /arch/arm/mach-ux500/devices.c
parentd9d13cbeee58bd02d6557f040d07481bd41af513 (diff)
mach-ux500: add hwmem platform data
Diffstat (limited to 'arch/arm/mach-ux500/devices.c')
-rw-r--r--arch/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 99673d7ea2f..95c541628b3 100644
--- a/arch/arm/mach-ux500/devices.c
+++ b/arch/arm/mach-ux500/devices.c
@@ -14,6 +14,37 @@
#include <mach/crypto-ux500.h>
#include <mach/hardware.h>
#include <mach/setup.h>
+#include <linux/hwmem.h>
+
+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,
+ },
+};
static struct resource ux500_hash1_resources[] = {
[0] = {