2
0
Fork 0
mirror of https://github.com/AsahiLinux/u-boot synced 2024-12-25 20:43:32 +00:00
u-boot/board/eets/pdu001/board.h
Tom Rini 83d290c56f SPDX: Convert all of our single license tags to Linux Kernel style
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini <trini@konsulko.com>
2018-05-07 09:34:12 -04:00

37 lines
1.3 KiB
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* 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/
*/
#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