4 * TI AM335x boards information header
6 * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
8 * SPDX-License-Identifier: GPL-2.0+
14 static inline int board_is_bone(void)
16 return board_ti_is("A335BONE");
19 static inline int board_is_bone_lt(void)
21 return board_ti_is("A335BNLT");
24 static inline int board_is_bbg1(void)
26 return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4);
29 static inline int board_is_evm_sk(void)
31 return board_ti_is("A335X_SK");
34 static inline int board_is_idk(void)
36 return !strncmp(board_ti_get_config(), "SKU#02", 6);
39 static inline int board_is_gp_evm(void)
41 return board_ti_is("A33515BB");
44 static inline int board_is_evm_15_or_later(void)
46 return (board_is_gp_evm() &&
47 strncmp("1.5", board_ti_get_rev(), 3) <= 0);
50 static inline int board_is_icev2(void)
52 return board_ti_is("A335_ICE") && !strncmp("2", board_ti_get_rev(), 1);
56 * We have three pin mux functions that must exist. We must be able to enable
57 * uart0, for initial output and i2c0 to read the main EEPROM. We then have a
58 * main pinmux function that can be overridden to enable all other pinmux that
59 * is required on the board.
61 void enable_uart0_pin_mux(void);
62 void enable_uart1_pin_mux(void);
63 void enable_uart2_pin_mux(void);
64 void enable_uart3_pin_mux(void);
65 void enable_uart4_pin_mux(void);
66 void enable_uart5_pin_mux(void);
67 void enable_i2c0_pin_mux(void);
68 void enable_board_pin_mux(void);