diff options
author | Felix Brack <fb@ltec.ch> | 2018-01-23 20:27:22 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-28 20:27:32 +0300 |
commit | 85ab0452fefc8c48b0b4f35200cb2590b4693ab3 (patch) | |
tree | 9909a4d64d186b480669625d9914af1749efa917 /board/eets/pdu001/board.h | |
parent | c8a73a26d6dd9b7d489e66529fe1412425d8f2d1 (diff) | |
download | u-boot-85ab0452fefc8c48b0b4f35200cb2590b4693ab3.tar.xz |
arm: add support for PDU001
This patch adds support for the PDU001 board.
Signed-off-by: Felix Brack <fb@ltec.ch>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/eets/pdu001/board.h')
-rw-r--r-- | board/eets/pdu001/board.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/board/eets/pdu001/board.h b/board/eets/pdu001/board.h new file mode 100644 index 0000000000..3474e6a85a --- /dev/null +++ b/board/eets/pdu001/board.h @@ -0,0 +1,38 @@ +/* + * board.h + * + * EETS GmbH PDU001 board information header + * + * Copyright (C) 2018 EETS GmbH - http://www.eets.ch/ + * + * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +/* + * We have two pin mux functions that must exist. First we need I2C0 to + * access the TPS65910 PMIC located on the M2 computing module. + * Second, if we want low-level debugging or a early UART (ie. before the + * pin controller driver is running), we need one of the UART ports UART0 to + * UART5 (usually UART3 since it is wired to K2). + * In case of I2C0 access we explicitly don't rely on the the ROM but we could + * do so as we use the primary mode (mode 0) for I2C0. + * All other multiplexing and pin configuration is done by the DT once it + * gets parsed by the pin controller driver. + * However we relay on the ROM to configure the pins of MMC0 (eMMC) as well + * as MMC1 (microSD card-cage) since these are our boot devices. + */ +void enable_uart0_pin_mux(void); +void enable_uart1_pin_mux(void); +void enable_uart2_pin_mux(void); +void enable_uart3_pin_mux(void); +void enable_uart4_pin_mux(void); +void enable_uart5_pin_mux(void); +void enable_uart_pin_mux(u32 addr); +void enable_i2c0_pin_mux(void); + +#endif |