]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - mfp/cedev.git/blob - packages/ti/sdo/ce/utils/rtcfg/bios/rtcfg_bios_fcinit.c
OMAP54XX: Add remote codec support
[mfp/cedev.git] / packages / ti / sdo / ce / utils / rtcfg / bios / rtcfg_bios_fcinit.c
1 /*
2  * Copyright (c) 2013-2014, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * *  Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
12  * *  Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * *  Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 /*
34  *  ======== rtcfg_bios_fcinit.c ========
35  *  FC configuration for non-RTSC config examples. Compile this file as is,
36  *  with apps that don't use the individual FC components here.. For apps whose
37  *  local codecs use RMAN etc, copy this file and modify as needed.
38  */
40 /*
41  *  Set USE_RMAN to 1 if the app uses RMAN, otherwise set to 0. If USE_RMAN
42  *  is set to 1, the user may need to modify RMAN_PARAMS structure
43  */
44 #define USE_RMAN 0
46 #include <xdc/std.h>
48 #include <xdc/runtime/IHeap.h>
50 #if USE_RMAN
51 #include <ti/sdo/fc/rman/rman.h>
52 #endif
54 #include <ti/sdo/fc/dskt2/dskt2.h>
56 extern xdc_runtime_IHeap_Handle INT_HEAP;
57 extern xdc_runtime_IHeap_Handle EXT_HEAP;
59 void Rtcfg_fcInit()
60 {
62     /* Configure DSKT2 */
63     DSKT2_daram0Heap = (xdc_runtime_IHeap_Handle)INT_HEAP;
64     DSKT2_daram1Heap = (xdc_runtime_IHeap_Handle)INT_HEAP;
65     DSKT2_daram2Heap = (xdc_runtime_IHeap_Handle)INT_HEAP;
66     DSKT2_saram0Heap = (xdc_runtime_IHeap_Handle)INT_HEAP;
67     DSKT2_saram1Heap = (xdc_runtime_IHeap_Handle)INT_HEAP;
68     DSKT2_saram2Heap = (xdc_runtime_IHeap_Handle)INT_HEAP;
69     DSKT2_iprogHeap = (xdc_runtime_IHeap_Handle)INT_HEAP;
70     DSKT2_eprogHeap = (xdc_runtime_IHeap_Handle)EXT_HEAP;
71     DSKT2_esdataHeap = (xdc_runtime_IHeap_Handle)EXT_HEAP;
72     _DSKT2_heap = (xdc_runtime_IHeap_Handle)EXT_HEAP;
75 #if USE_RMAN
76     /* Configure RMAN */
78 #endif
80 /* Add other FC configuration as necessary, this is only an example */
81 }
85 #if USE_RMAN
86 #else
88 /* PLEASE DO NOT MODIFY CODE BELOW */
90 /* If not using RMAN, the RMAN functions need to be stubbed out. */
92 #include <ti/xdais/ires.h>   /* for IRES types */
94 IRES_Status RMAN_activateAllResources(IALG_Handle algHandle,
95         IRES_Fxns *resFxns, Int scratchId)
96 {
97     return (IRES_OK);
98 }
100 IRES_Status RMAN_assignResources(IALG_Handle algHandle, IRES_Fxns *resFxns,
101         Int scratchGroupId)
103     return (IRES_OK);
106 IRES_Status RMAN_deactivateAllResources(IALG_Handle algHandle,
107         IRES_Fxns * resFxns, Int scratchId)
109     return (IRES_OK);
112 IRES_Status RMAN_freeResources(IALG_Handle algHandle, IRES_Fxns * resFxns,
113         Int scratchGroupId)
115     return (IRES_OK);
118 IRES_Status RMAN_init(void)
120     return (IRES_OK);
123 IRES_Status RMAN_exit(void)
125     return (IRES_OK);
128 #endif