blob: db6e19123aec9c45a43a0b16dc20542f0f0521aa [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Yegor Yefremov6ce89322015-05-29 19:27:29 +02002/*
3 * board.h
4 *
5 * TI AM335x boards information header
6 *
Nishanth Menona94a4072023-11-01 15:56:03 -05007 * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
Yegor Yefremov6ce89322015-05-29 19:27:29 +02008 */
9
10#ifndef _BOARD_H_
11#define _BOARD_H_
12
Yegor Yefremov6ce89322015-05-29 19:27:29 +020013typedef struct _BSP_VS_HWPARAM // v1.0
14{
15 uint32_t Magic;
16 uint32_t HwRev;
17 uint32_t SerialNumber;
18 char PrdDate[11]; // as a string ie. "01.01.2006"
19 uint16_t SystemId;
20 uint8_t MAC1[6]; // internal EMAC
21 uint8_t MAC2[6]; // SMSC9514
22 uint8_t MAC3[6]; // WL1271 WLAN
23} __attribute__ ((packed)) BSP_VS_HWPARAM;
24
Yegor Yefremov6ce89322015-05-29 19:27:29 +020025/*
26 * We have three pin mux functions that must exist. We must be able to enable
27 * uart0, for initial output and i2c0 to read the main EEPROM. We then have a
28 * main pinmux function that can be overridden to enable all other pinmux that
29 * is required on the board.
30 */
31void enable_uart0_pin_mux(void);
Yegor Yefremov6ce89322015-05-29 19:27:29 +020032void enable_i2c1_pin_mux(void);
33void enable_board_pin_mux(void);
34#endif