Linux: TransportRpmsg: Fix Mutex Deadlock Issue
[ipc/ipcdev.git] / linux / patches / 3.8.0 / omapl138 / 0007-remoteproc-platform-support.patch
1 From 527c0f1f2bcd142770804685987650624d9414d9 Mon Sep 17 00:00:00 2001
2 From: Robert Tivy <rtivy@ti.com>
3 Date: Fri, 8 Mar 2013 10:59:00 -0800
4 Subject: [PATCH v8 7/7] ARM: davinci: da850 board: remoteproc platform support
6 Add .reserve function for reserving CMA memory block to MACHINE_START.
8 Add call to remoteproc platform device registration function during init.
10 Signed-off-by: Robert Tivy <rtivy@ti.com>
11 ---
12  arch/arm/mach-davinci/board-da850-evm.c     |    6 ++++++
13  arch/arm/mach-davinci/board-omapl138-hawk.c |    6 ++++++
14  2 files changed, 12 insertions(+)
16 diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c
17 index bbb7979..3277bcf 100644
18 --- a/arch/arm/mach-davinci/board-da850-evm.c
19 +++ b/arch/arm/mach-davinci/board-da850-evm.c
20 @@ -1566,6 +1566,11 @@ static __init void da850_evm_init(void)
21                 pr_warn("%s: SATA registration failed: %d\n", __func__, ret);
22  
23         da850_evm_setup_mac_addr();
24 +
25 +       ret = da8xx_register_rproc();
26 +       if (ret)
27 +               pr_warn("%s: dsp/rproc registration failed: %d\n",
28 +                       __func__, ret);
29  }
30  
31  #ifdef CONFIG_SERIAL_8250_CONSOLE
32 @@ -1593,4 +1598,5 @@ MACHINE_START(DAVINCI_DA850_EVM, "DaVinci DA850/OMAP-L138/AM18x EVM")
33         .init_late      = davinci_init_late,
34         .dma_zone_size  = SZ_128M,
35         .restart        = da8xx_restart,
36 +       .reserve        = da8xx_rproc_reserve_cma,
37  MACHINE_END
38 diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c
39 index d5a6bcd..f60cfd1 100644
40 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c
41 +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c
42 @@ -311,6 +311,11 @@ static __init void omapl138_hawk_init(void)
43         if (ret)
44                 pr_warn("%s: watchdog registration failed: %d\n",
45                         __func__, ret);
46 +
47 +       ret = da8xx_register_rproc();
48 +       if (ret)
49 +               pr_warn("%s: dsp/rproc registration failed: %d\n",
50 +                       __func__, ret);
51  }
52  
53  #ifdef CONFIG_SERIAL_8250_CONSOLE
54 @@ -338,4 +343,5 @@ MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard")
55         .init_late      = davinci_init_late,
56         .dma_zone_size  = SZ_128M,
57         .restart        = da8xx_restart,
58 +       .reserve        = da8xx_rproc_reserve_cma,
59  MACHINE_END
60 -- 
61 1.7.9.4