aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-sh7722.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7722.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
index 39854d9413cf..6015f842edad 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c
@@ -73,6 +73,9 @@ static struct resource vpu_resources[] = {
73 .end = 0xfe9022eb, 73 .end = 0xfe9022eb,
74 .flags = IORESOURCE_MEM, 74 .flags = IORESOURCE_MEM,
75 }, 75 },
76 [1] = {
77 /* place holder for contiguous memory */
78 },
76}; 79};
77 80
78static struct platform_device vpu_device = { 81static struct platform_device vpu_device = {
@@ -98,6 +101,9 @@ static struct resource veu_resources[] = {
98 .end = 0xfe9200b7, 101 .end = 0xfe9200b7,
99 .flags = IORESOURCE_MEM, 102 .flags = IORESOURCE_MEM,
100 }, 103 },
104 [1] = {
105 /* place holder for contiguous memory */
106 },
101}; 107};
102 108
103static struct platform_device veu_device = { 109static struct platform_device veu_device = {
@@ -152,6 +158,8 @@ static struct platform_device *sh7722_devices[] __initdata = {
152 158
153static int __init sh7722_devices_setup(void) 159static int __init sh7722_devices_setup(void)
154{ 160{
161 platform_resource_setup_memory(&vpu_device, "vpu", 1 << 20);
162 platform_resource_setup_memory(&veu_device, "veu", 2 << 20);
155 return platform_add_devices(sh7722_devices, 163 return platform_add_devices(sh7722_devices,
156 ARRAY_SIZE(sh7722_devices)); 164 ARRAY_SIZE(sh7722_devices));
157} 165}