]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pdk_k2g_1_0_1_0_eng/packages/ti/board/src/evmAM572x/include/board_internal.h
Change pdk_k2g_1_0_1 directory name in preparation for updating RSTC plugin
[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1_0_eng / packages / ti / board / src / evmAM572x / include / board_internal.h
1 /* ========================================================================== */
2 /**
3  *  @file   board_internal.h
4  *
5  *  @brief  Private definitions for the Board Library.
6  *
7  *  ============================================================================
8  */
9 /* --COPYRIGHT--,BSD
10  * Copyright (c) 2011-2015, Texas Instruments Incorporated
11  * All rights reserved.
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions
15  * are met:
16  *
17  * *  Redistributions of source code must retain the above copyright
18  *    notice, this list of conditions and the following disclaimer.
19  *
20  * *  Redistributions in binary form must reproduce the above copyright
21  *    notice, this list of conditions and the following disclaimer in the
22  *    documentation and/or other materials provided with the distribution.
23  *
24  * *  Neither the name of Texas Instruments Incorporated nor the names of
25  *    its contributors may be used to endorse or promote products derived
26  *    from this software without specific prior written permission.
27  *
28  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
32  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
33  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
35  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
37  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
38  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39  * --/COPYRIGHT--*/
41 #ifndef BOARD_INTERNAL_H_
42 #define BOARD_INTERNAL_H_
44 /*****************************************************************************
45  * Include Files                                                             *
46  *****************************************************************************/
47 #include <ti/csl/csl_types.h>
48 #include <ti/csl/cslr_device.h>
50 #include <ti/drv/i2c/I2C.h>
51 #include <ti/drv/i2c/soc/I2C_v1.h>
53 #include <ti/drv/spi/SPI.h>
54 #include <ti/drv/spi/soc/QSPI_v1.h>
55 #include <ti/drv/spi/soc/SPI_v1.h>
56 #include <ti/drv/spi/soc/QSPI_v1.h>
58 #include <ti/drv/uart/UART.h>
59 #include <ti/drv/uart/UART_stdio.h>
61 #include <ti/board/board.h>
63 /*****************************************************************************
64  * Internal Objects                                                          *
65  *****************************************************************************/
66 extern const I2C_Config I2C_config[];
67 extern const SPI_Config SPI_config[];
69 typedef struct 
70 {
71     I2C_Handle i2cHandle;
72     SPI_Handle spiHandle;
73 } Board_gblObj;
74 extern Board_gblObj Board_obj;
76 /*****************************************************************************
77  * Macros                                                                    *
78  *****************************************************************************/
80 /* Macro values defining the different OPP Configuration supported. */
81 #define OPP_NOM                  (0)
82 #define OPP_OD                   (1)
83 #define OPP_HIGH                 (2)
86 /*****************************************************************************
87  * Function Prototypes                                                       *
88  *****************************************************************************/
90 Board_STATUS Board_unlockMMR();
91 Board_STATUS Board_PLLInit(Uint32 opp);
92 Board_STATUS Board_moduleClockInit();
93 Board_STATUS Board_DDR3Init();
94 Board_STATUS Board_watchdogDisable(); 
95 Board_STATUS Board_pinmuxConfig();
96 Board_STATUS Board_uartStdioInit();
97 Board_STATUS Board_internalInitI2C();
99 #endif