summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/devices.c
diff options
context:
space:
mode:
authorJohan Mossberg <johan.xx.mossberg@stericsson.com>2011-04-12 10:58:48 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:12 +0200
commite8580f7fe664cf4e1f04ecd47455b35a6d594da7 (patch)
treedb576600d098ceb74a7fd0a720f08581384c97d9 /arch/arm/mach-ux500/devices.c
parent84907515b626bf072013cab2d005c0cd99c55037 (diff)
HWMEM: Break out allocator
Break out allocator in order to be able to run it in multiple instances ie support multiple regions. Multiple regions can be used to battle fragmentation by letting clients allocating in a non fragmenting way allocate from their own region. For STE this will probably mean letting camera/video have their own region. A positive side effect is that we can use HWMEM as an allocator for SRAM if we want to. ST-Ericsson ID: 334992 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10068 Change-Id: I449f2dde8f1ceeb05dd55384dd4070e91997276f Signed-off-by: Johan Mossberg <johan.xx.mossberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20638 Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/devices.c')
-rw-r--r--arch/arm/mach-ux500/devices.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/arch/arm/mach-ux500/devices.c b/arch/arm/mach-ux500/devices.c
index 160f6aa4abe..59e25f21c3f 100644
--- a/arch/arm/mach-ux500/devices.c
+++ b/arch/arm/mach-ux500/devices.c
@@ -14,7 +14,6 @@
#include <mach/crypto-ux500.h>
#include <mach/hardware.h>
#include <mach/setup.h>
-#include <linux/hwmem.h>
#ifdef CONFIG_STE_TRACE_MODEM
#include <linux/db8500-modem-trace.h>
@@ -59,35 +58,11 @@ static int __init early_trace_modem(char *p)
early_param("mem_mtrace", early_trace_modem);
#endif
-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);
-
+#ifdef CONFIG_HWMEM
struct platform_device ux500_hwmem_device = {
.name = "hwmem",
- .dev = {
- .platform_data = &hwmem_pdata,
- },
};
+#endif
static struct resource ux500_hash1_resources[] = {
[0] = {