]> Git Repo - u-boot.git/blame - board/ti/am335x/board.h
ti: AM335x: Use generic EEPROM detection logic
[u-boot.git] / board / ti / am335x / board.h
CommitLineData
e363426e
PK
1/*
2 * board.h
3 *
4 * TI AM335x boards information header
5 *
6 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
7 *
1a459660 8 * SPDX-License-Identifier: GPL-2.0+
e363426e
PK
9 */
10
11#ifndef _BOARD_H_
12#define _BOARD_H_
13
770e68c0
NM
14static inline int board_is_bone(void)
15{
16 return board_ti_is("A335BONE");
17}
e363426e 18
770e68c0 19static inline int board_is_bone_lt(void)
ace4275e 20{
770e68c0 21 return board_ti_is("A335BNLT");
ace4275e
TR
22}
23
770e68c0 24static inline int board_is_bbg1(void)
ace4275e 25{
770e68c0 26 return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4);
ace4275e
TR
27}
28
770e68c0 29static inline int board_is_evm_sk(void)
ace4275e 30{
770e68c0 31 return board_ti_is("A335X_SK");
ace4275e
TR
32}
33
770e68c0 34static inline int board_is_idk(void)
ace4275e 35{
770e68c0 36 return !strncmp(board_ti_get_config(), "SKU#02", 6);
ace4275e
TR
37}
38
770e68c0 39static inline int board_is_gp_evm(void)
ace4275e 40{
770e68c0 41 return board_ti_is("A33515BB");
ace4275e
TR
42}
43
770e68c0 44static inline int board_is_evm_15_or_later(void)
ace4275e 45{
770e68c0
NM
46 return (board_is_gp_evm() &&
47 strncmp("1.5", board_ti_get_rev(), 3) <= 0);
ace4275e
TR
48}
49
e363426e
PK
50/*
51 * We have three pin mux functions that must exist. We must be able to enable
52 * uart0, for initial output and i2c0 to read the main EEPROM. We then have a
53 * main pinmux function that can be overridden to enable all other pinmux that
54 * is required on the board.
55 */
56void enable_uart0_pin_mux(void);
6422b70b
AB
57void enable_uart1_pin_mux(void);
58void enable_uart2_pin_mux(void);
59void enable_uart3_pin_mux(void);
60void enable_uart4_pin_mux(void);
61void enable_uart5_pin_mux(void);
e363426e 62void enable_i2c0_pin_mux(void);
770e68c0 63void enable_board_pin_mux(void);
e363426e 64#endif
This page took 0.167989 seconds and 4 git commands to generate.