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
28 /* REVIST : check posibility of PROFILE_(x) syntax usage */
29 #define PROFILE_NONE -1 /* Few EVM doesn't have profiles */
30 #define PROFILE_0 (0x1 << 0)
31 #define PROFILE_1 (0x1 << 1)
32 #define PROFILE_2 (0x1 << 2)
33 #define PROFILE_3 (0x1 << 3)
34 #define PROFILE_4 (0x1 << 4)
35 #define PROFILE_5 (0x1 << 5)
36 #define PROFILE_6 (0x1 << 6)
37 #define PROFILE_7 (0x1 << 7)
38 #define PROFILE_ALL 0xFF
40 void am335x_evmid_fillup(unsigned int evmid);
41 void am335x_cpsw_macidfillup(char *eeprommacid0, char *eeprommacid1);
42 void am335x_cpsw_init(void);
44 #endif