ARM: davinci: da850 board: add remoteproc support
authorRobert Tivy <rtivy@ti.com>
Fri, 29 Mar 2013 01:41:47 +0000 (18:41 -0700)
committerSekhar Nori <nsekhar@ti.com>
Wed, 17 Apr 2013 16:30:09 +0000 (22:00 +0530)
Add .reserve function for reserving CMA memory block to MACHINE_START.

Add call to remoteproc platform device registration function during init.

Signed-off-by: Robert Tivy <rtivy@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-da850-evm.c
arch/arm/mach-davinci/board-omapl138-hawk.c

index dcc8710936a5d598425f84efd35d3602d7b6bba9..7d1721d4ba1871bfb332b151f3d6c22036dcac3a 100644 (file)
@@ -1577,6 +1577,11 @@ static __init void da850_evm_init(void)
                pr_warn("%s: SATA registration failed: %d\n", __func__, ret);
 
        da850_evm_setup_mac_addr();
+
+       ret = da8xx_register_rproc();
+       if (ret)
+               pr_warn("%s: dsp/rproc registration failed: %d\n",
+                       __func__, ret);
 }
 
 #ifdef CONFIG_SERIAL_8250_CONSOLE
@@ -1604,4 +1609,5 @@ MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM")
        .init_late      = davinci_init_late,
        .dma_zone_size  = SZ_128M,
        .restart        = da8xx_restart,
+       .reserve        = da8xx_rproc_reserve_cma,
 MACHINE_END
index 328dbd8a37f5b3871fcad3edff523009c46dbb7a..b8c20de10ca2b07b276d03bd1f3d37ae9a9701e2 100644 (file)
@@ -310,6 +310,11 @@ static __init void omapl138_hawk_init(void)
        if (ret)
                pr_warn("%s: watchdog registration failed: %d\n",
                        __func__, ret);
+
+       ret = da8xx_register_rproc();
+       if (ret)
+               pr_warn("%s: dsp/rproc registration failed: %d\n",
+                       __func__, ret);
 }
 
 #ifdef CONFIG_SERIAL_8250_CONSOLE
@@ -337,4 +342,5 @@ MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard")
        .init_late      = davinci_init_late,
        .dma_zone_size  = SZ_128M,
        .restart        = da8xx_restart,
+       .reserve        = da8xx_rproc_reserve_cma,
 MACHINE_END