]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/board/src/evmOMAPL137/include/board_cfg.h
board-rtos: add to PDK
[processor-sdk/pdk.git] / packages / ti / board / src / evmOMAPL137 / include / board_cfg.h
1 /**
2  *  @file   board_cfg.h
3  *
4  *  @brief  Board specific configuration definitions
5  *
6  *  ============================================================================
7  */
8 /*
9  * Copyright (c) 2017, Texas Instruments Incorporated
10  * All rights reserved.
11  *
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions
14  * are met:
15  *
16  * *  Redistributions of source code must retain the above copyright
17  *    notice, this list of conditions and the following disclaimer.
18  *
19  * *  Redistributions in binary form must reproduce the above copyright
20  *    notice, this list of conditions and the following disclaimer in the
21  *    documentation and/or other materials provided with the distribution.
22  *
23  * *  Neither the name of Texas Instruments Incorporated nor the names of
24  *    its contributors may be used to endorse or promote products derived
25  *    from this software without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
29  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
31  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
33  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
34  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
36  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
37  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38  */
40 #ifndef _BOARD_CFG_H_
41 #define _BOARD_CFG_H_
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
47 /* Board ID information */
48 #define BOARD_INFO_CPU_NAME             "OMAPL137"
49 #define BOARD_INFO_BOARD_NAME           "EVMOMAPL137"
51 /* Memory Sections */
52 #define BOARD_DDR3_START_ADDR           (0xC3000000U)
53 #define BOARD_DDR3_SIZE                 (64 * 1024 * 1024UL)
54 #define BOARD_DDR3_END_ADDR             (BOARD_DDR3_START_ADDR + BOARD_DDR3_SIZE)
56 /* UART LLD instance number */
57 #define BOARD_UART_INSTANCE             (2U)
59 /* I2C instance connected to EEPROM */
60 #define BOARD_I2C_EEPROM_INSTANCE       (0)
62 /* EEPROM I2C slave address */
63 #define BOARD_I2C_EEPROM_ADDR           (0x50U)
65 /* Audio codec I2C slave address */
66 #define BOARD_I2C_CODEC_ADDR            (0x18U)
68 /* I2C EEPROM TEST DELAY */
69 #define I2C_EEPROM_TEST_DELAY           (100000U)
71 /* I2C EEPROM address command size */
72 #define I2C_EEPROM_ADDR_SIZE            (2U)
74 /* I2C EEPROM data buffer length in bytes */
75 #define I2C_EEPROM_TEST_LENGTH          (64U)
77 /* Read and write test start address */
78 #define I2C_EEPROM_TEST_ADDR            (0xff80U)
80 /* SPI instance connected to Flash */
81 #define TEST_SPI_PORT                   (0U)
83 #define BOARD_SPI_NOR_INSTANCE          (0U)
85 /* Enable NOR flash driver */
86 #define BOARD_NOR_FLASH_IN
88 /* GPIO pin and port numbers for on-board LED */
89 #define GPIO_LED0_PIN_NUM               (12U)
90 #define GPIO_LED0_PORT_NUM              (0U)
91 #define GPIO_LED1_PIN_NUM               (13U)
92 #define GPIO_LED1_PORT_NUM              (0U)
94 #define GPIO_MMC_SDCD_PORT_NUM          (0U)
95 #define GPIO_MMC_SDCD_PIN_NUM           (34U)
97 #ifdef _TMS320C6X
98 #define GPIO_MUX_SEL                    (16U)
99 #else
100 #define GPIO_MUX_SEL                    (0U)
101 #endif
103 /* Ethernet PHY addressess */
104 #define BOARD_ETH_PHY0_I2C_ADDR         (0x5D)
105 #define BOARD_ETH_PHY1_I2C_ADDR         (0x5F)
107 #define BOARD_ETH_PHY0_ADDR             (0x01)
108 #define BOARD_ETH_PHY1_ADDR             (0x02)
110 /* Aliases for default PHY port used by board and applications */
111 #define BOARD_ETH_PHY_I2C_ADDR          (BOARD_ETH_PHY1_I2C_ADDR)
112 #define BOARD_ETH_PHY_ADDR              (BOARD_ETH_PHY0_ADDR)
114 /* EEPROM board ID information */
115 #define BOARD_EEPROM_HEADER_LENGTH              (4U)
116 #define BOARD_EEPROM_BOARD_NAME_LENGTH  (8U)
117 #define BOARD_EEPROM_VERSION_LENGTH             (4U)
118 #define BOARD_EEPROM_SERIAL_NO_LENGTH   (12U)
119 #define BOARD_EEPROM_CONFIG_LENGTH      (32U)
120 #define BOARD_EEPROM_MACID_LENGTH       (6U)
122 #define BOARD_EEPROM_ID_SIZE            (BOARD_EEPROM_HEADER_LENGTH + \
123                                          BOARD_EEPROM_BOARD_NAME_LENGTH + \
124                                          BOARD_EEPROM_VERSION_LENGTH + \
125                                          BOARD_EEPROM_SERIAL_NO_LENGTH + \
126                                          BOARD_EEPROM_CONFIG_LENGTH + \
127                                          (2*BOARD_EEPROM_MACID_LENGTH))
129 #define BOARD_EEPROM_HEADER_ADDR                (0U)
130 #define BOARD_EEPROM_BOARD_NAME_ADDR    (BOARD_EEPROM_HEADER_ADDR + BOARD_EEPROM_HEADER_LENGTH)
131 #define BOARD_EEPROM_VERSION_ADDR               (BOARD_EEPROM_BOARD_NAME_ADDR + BOARD_EEPROM_BOARD_NAME_LENGTH)
132 #define BOARD_EEPROM_SERIAL_NO_ADDR             (BOARD_EEPROM_VERSION_ADDR + BOARD_EEPROM_VERSION_LENGTH)
133 #define BOARD_EEPROM_CONFIG_ADDR        (BOARD_EEPROM_SERIAL_NO_ADDR + BOARD_EEPROM_SERIAL_NO_LENGTH)
135 #ifdef __cplusplus
137 #endif
139 #endif   /* _BOARD_CFG_H_ */