a8fe93a223d01cf9d13b0d6549f1d57b64319406
1 /*
2 * Code for supporting AM335X EVM.
3 *
4 * Copyright (C) {2011} Texas Instruments Incorporated - http://www.ti.com/
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
9 *
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
16 #ifndef _BOARD_AM335X_H
17 #define _BOARD_AM335X_H
19 #define BASEBOARD_I2C_ADDR 0x50
20 #define DAUG_BOARD_I2C_ADDR 0x51
21 #define LCD_BOARD_I2C_ADDR 0x52
23 #define LOW_COST_EVM 0
24 #define GEN_PURP_EVM 1
25 #define IND_AUT_MTR_EVM 2
26 #define IP_PHN_EVM 3
27 #define BEAGLE_BONE_OLD 4
28 #define BEAGLE_BONE_A3 5
30 /* REVIST : check posibility of PROFILE_(x) syntax usage */
31 #define PROFILE_NONE -1 /* Few EVM doesn't have profiles */
32 #define PROFILE_0 (0x1 << 0)
33 #define PROFILE_1 (0x1 << 1)
34 #define PROFILE_2 (0x1 << 2)
35 #define PROFILE_3 (0x1 << 3)
36 #define PROFILE_4 (0x1 << 4)
37 #define PROFILE_5 (0x1 << 5)
38 #define PROFILE_6 (0x1 << 6)
39 #define PROFILE_7 (0x1 << 7)
40 #define PROFILE_ALL 0xFF
42 void am33xx_evmid_fillup(unsigned int evmid);
43 void am33xx_cpsw_macidfillup(char *eeprommacid0, char *eeprommacid1);
44 void am33xx_cpsw_init(unsigned int gigen);
45 void am33xx_d_can_init(unsigned int instance);
47 #endif