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