aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2008-07-16 06:02:54 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 05:10:35 -0400
commit1eca5c92729a83f64826d15a9ecb1652dda54bcb (patch)
tree95753726159c945deccef68d4b54de9f4d5ec756 /arch/sh/kernel/cpu/sh4a/setup-sh7343.c
parent714750dd5c6aef8e204d35ba28c1be9641418671 (diff)
sh: Add memory chunks to SH-Mobile UIO devices
This patch adds physically contiguous memory chunks to the UIO devices. The same strategy can be used in the future for the CEU as well. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7343.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7343.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
index bcc4255acd8..79ce34e19a2 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c
@@ -66,6 +66,9 @@ static struct resource vpu_resources[] = {
66 .end = 0xfe9022eb, 66 .end = 0xfe9022eb,
67 .flags = IORESOURCE_MEM, 67 .flags = IORESOURCE_MEM,
68 }, 68 },
69 [1] = {
70 /* place holder for contiguous memory */
71 },
69}; 72};
70 73
71static struct platform_device vpu_device = { 74static struct platform_device vpu_device = {
@@ -91,6 +94,9 @@ static struct resource veu_resources[] = {
91 .end = 0xfe9200b7, 94 .end = 0xfe9200b7,
92 .flags = IORESOURCE_MEM, 95 .flags = IORESOURCE_MEM,
93 }, 96 },
97 [1] = {
98 /* place holder for contiguous memory */
99 },
94}; 100};
95 101
96static struct platform_device veu_device = { 102static struct platform_device veu_device = {
@@ -132,6 +138,8 @@ static struct platform_device *sh7343_devices[] __initdata = {
132 138
133static int __init sh7343_devices_setup(void) 139static int __init sh7343_devices_setup(void)
134{ 140{
141 platform_resource_setup_memory(&vpu_device, "vpu", 1 << 20);
142 platform_resource_setup_memory(&veu_device, "veu", 2 << 20);
135 return platform_add_devices(sh7343_devices, 143 return platform_add_devices(sh7343_devices,
136 ARRAY_SIZE(sh7343_devices)); 144 ARRAY_SIZE(sh7343_devices));
137} 145}