32 lines
746 B
C
32 lines
746 B
C
/*
|
|
* board.h
|
|
*
|
|
* TI AM335x boards information header
|
|
*
|
|
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _BOARD_H_
|
|
#define _BOARD_H_
|
|
|
|
/*
|
|
* We have three pin mux functions that must exist. We must be able to enable
|
|
* uart0, for initial output and i2c2 to read the main EEPROM. We then have a
|
|
* main pinmux function that can be overridden to enable all other pinmux that
|
|
* is required on the board.
|
|
*/
|
|
void enable_uart0_pin_mux(void);
|
|
void disable_uart0_pin_mux(void);
|
|
void enable_uart1_pin_mux(void);
|
|
|
|
/* TODO: Remove */
|
|
/*void enable_uart5_pin_mux(void);*/
|
|
|
|
void enable_board_pin_mux(void);
|
|
|
|
#define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio))
|
|
|
|
#endif
|