xref: /OK3568_Linux_fs/u-boot/board/vscom/baltos/board.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * board.h
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * TI AM335x boards information header
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * SPDX-License-Identifier:	GPL-2.0+
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef _BOARD_H_
12*4882a593Smuzhiyun #define _BOARD_H_
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun typedef struct _BSP_VS_HWPARAM    // v1.0
15*4882a593Smuzhiyun {
16*4882a593Smuzhiyun 	uint32_t Magic;
17*4882a593Smuzhiyun 	uint32_t HwRev;
18*4882a593Smuzhiyun 	uint32_t SerialNumber;
19*4882a593Smuzhiyun 	char PrdDate[11];    // as a string ie. "01.01.2006"
20*4882a593Smuzhiyun 	uint16_t SystemId;
21*4882a593Smuzhiyun 	uint8_t MAC1[6];        // internal EMAC
22*4882a593Smuzhiyun 	uint8_t MAC2[6];        // SMSC9514
23*4882a593Smuzhiyun 	uint8_t MAC3[6];        // WL1271 WLAN
24*4882a593Smuzhiyun } __attribute__ ((packed)) BSP_VS_HWPARAM;
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun /*
27*4882a593Smuzhiyun  * We have three pin mux functions that must exist.  We must be able to enable
28*4882a593Smuzhiyun  * uart0, for initial output and i2c0 to read the main EEPROM.  We then have a
29*4882a593Smuzhiyun  * main pinmux function that can be overridden to enable all other pinmux that
30*4882a593Smuzhiyun  * is required on the board.
31*4882a593Smuzhiyun  */
32*4882a593Smuzhiyun void enable_uart0_pin_mux(void);
33*4882a593Smuzhiyun void enable_i2c1_pin_mux(void);
34*4882a593Smuzhiyun void enable_board_pin_mux(void);
35*4882a593Smuzhiyun #endif
36