sh: Add memory chunks to SH-Mobile UIO devices
[firefly-linux-kernel-4.4.55.git] / arch / sh / kernel / cpu / sh4a / setup-sh7722.c
index 39854d9413cfddec2bb380d47c7a7c89fb1602ae..6015f842edad624c0d0051f4e4b1b4c1abc7bf7d 100644 (file)
@@ -73,6 +73,9 @@ static struct resource vpu_resources[] = {
                .end    = 0xfe9022eb,
                .flags  = IORESOURCE_MEM,
        },
+       [1] = {
+               /* place holder for contiguous memory */
+       },
 };
 
 static struct platform_device vpu_device = {
@@ -98,6 +101,9 @@ static struct resource veu_resources[] = {
                .end    = 0xfe9200b7,
                .flags  = IORESOURCE_MEM,
        },
+       [1] = {
+               /* place holder for contiguous memory */
+       },
 };
 
 static struct platform_device veu_device = {
@@ -152,6 +158,8 @@ static struct platform_device *sh7722_devices[] __initdata = {
 
 static int __init sh7722_devices_setup(void)
 {
+       platform_resource_setup_memory(&vpu_device, "vpu", 1 << 20);
+       platform_resource_setup_memory(&veu_device, "veu", 2 << 20);
        return platform_add_devices(sh7722_devices,
                                    ARRAY_SIZE(sh7722_devices));
 }