mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 01:17:39 +00:00
83d290c56f
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>
190 lines
5.7 KiB
C
190 lines
5.7 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Pinmux configurations for the DA850 SoCs
|
|
*
|
|
* Copyright (C) 2011 OMICRON electronics GmbH
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/davinci_misc.h>
|
|
#include <asm/arch/hardware.h>
|
|
#include <asm/arch/pinmux_defs.h>
|
|
|
|
/* SPI pin muxer settings */
|
|
const struct pinmux_config spi0_pins_base[] = {
|
|
{ pinmux(3), 1, 0 }, /* SPI0_CLK */
|
|
{ pinmux(3), 1, 2 }, /* SPI0_SOMI */
|
|
{ pinmux(3), 1, 3 }, /* SPI0_SIMO */
|
|
};
|
|
|
|
const struct pinmux_config spi0_pins_scs0[] = {
|
|
{ pinmux(4), 1, 1 }, /* SPI0_SCS[0] */
|
|
};
|
|
|
|
const struct pinmux_config spi1_pins_base[] = {
|
|
{ pinmux(5), 1, 2 }, /* SPI1_CLK */
|
|
{ pinmux(5), 1, 4 }, /* SPI1_SOMI */
|
|
{ pinmux(5), 1, 5 }, /* SPI1_SIMO */
|
|
};
|
|
|
|
const struct pinmux_config spi1_pins_scs0[] = {
|
|
{ pinmux(5), 1, 1 }, /* SPI1_SCS[0] */
|
|
};
|
|
|
|
/* UART pin muxer settings */
|
|
const struct pinmux_config uart0_pins_txrx[] = {
|
|
{ pinmux(3), 2, 4 }, /* UART0_RXD */
|
|
{ pinmux(3), 2, 5 }, /* UART0_TXD */
|
|
};
|
|
|
|
const struct pinmux_config uart0_pins_rtscts[] = {
|
|
{ pinmux(3), 2, 6 },
|
|
{ pinmux(3), 2, 7 },
|
|
};
|
|
|
|
const struct pinmux_config uart1_pins_txrx[] = {
|
|
{ pinmux(4), 2, 6 }, /* UART1_RXD */
|
|
{ pinmux(4), 2, 7 }, /* UART1_TXD */
|
|
};
|
|
|
|
const struct pinmux_config uart2_pins_txrx[] = {
|
|
{ pinmux(4), 2, 4 }, /* UART2_RXD */
|
|
{ pinmux(4), 2, 5 }, /* UART2_TXD */
|
|
};
|
|
|
|
const struct pinmux_config uart2_pins_rtscts[] = {
|
|
{ pinmux(0), 4, 6 }, /* UART2_RTS */
|
|
{ pinmux(0), 4, 7 }, /* UART2_CTS */
|
|
};
|
|
|
|
/* EMAC pin muxer settings*/
|
|
const struct pinmux_config emac_pins_rmii[] = {
|
|
{ pinmux(14), 8, 2 }, /* RMII_TXD[1] */
|
|
{ pinmux(14), 8, 3 }, /* RMII_TXD[0] */
|
|
{ pinmux(14), 8, 4 }, /* RMII_TXEN */
|
|
{ pinmux(14), 8, 5 }, /* RMII_RXD[1] */
|
|
{ pinmux(14), 8, 6 }, /* RMII_RXD[0] */
|
|
{ pinmux(14), 8, 7 }, /* RMII_RXER */
|
|
{ pinmux(15), 0, 0 }, /* RMII_MHz_50_CLK */
|
|
{ pinmux(15), 8, 1 }, /* RMII_CRS_DV */
|
|
};
|
|
|
|
const struct pinmux_config emac_pins_mii[] = {
|
|
{ pinmux(2), 8, 1 }, /* MII_TXEN */
|
|
{ pinmux(2), 8, 2 }, /* MII_TXCLK */
|
|
{ pinmux(2), 8, 3 }, /* MII_COL */
|
|
{ pinmux(2), 8, 4 }, /* MII_TXD[3] */
|
|
{ pinmux(2), 8, 5 }, /* MII_TXD[2] */
|
|
{ pinmux(2), 8, 6 }, /* MII_TXD[1] */
|
|
{ pinmux(2), 8, 7 }, /* MII_TXD[0] */
|
|
{ pinmux(3), 8, 0 }, /* MII_RXCLK */
|
|
{ pinmux(3), 8, 1 }, /* MII_RXDV */
|
|
{ pinmux(3), 8, 2 }, /* MII_RXER */
|
|
{ pinmux(3), 8, 3 }, /* MII_CRS */
|
|
{ pinmux(3), 8, 4 }, /* MII_RXD[3] */
|
|
{ pinmux(3), 8, 5 }, /* MII_RXD[2] */
|
|
{ pinmux(3), 8, 6 }, /* MII_RXD[1] */
|
|
{ pinmux(3), 8, 7 }, /* MII_RXD[0] */
|
|
};
|
|
|
|
const struct pinmux_config emac_pins_mdio[] = {
|
|
{ pinmux(4), 8, 0 }, /* MDIO_CLK */
|
|
{ pinmux(4), 8, 1 }, /* MDIO_D */
|
|
};
|
|
|
|
/* I2C pin muxer settings */
|
|
const struct pinmux_config i2c0_pins[] = {
|
|
{ pinmux(4), 2, 2 }, /* I2C0_SCL */
|
|
{ pinmux(4), 2, 3 }, /* I2C0_SDA */
|
|
};
|
|
|
|
const struct pinmux_config i2c1_pins[] = {
|
|
{ pinmux(4), 4, 4 }, /* I2C1_SCL */
|
|
{ pinmux(4), 4, 5 }, /* I2C1_SDA */
|
|
};
|
|
|
|
/* EMIFA pin muxer settings */
|
|
const struct pinmux_config emifa_pins_cs2[] = {
|
|
{ pinmux(7), 1, 0 }, /* EMA_CS2 */
|
|
};
|
|
|
|
const struct pinmux_config emifa_pins_cs3[] = {
|
|
{ pinmux(7), 1, 1 }, /* EMA_CS[3] */
|
|
};
|
|
|
|
const struct pinmux_config emifa_pins_cs4[] = {
|
|
{ pinmux(7), 1, 2 }, /* EMA_CS[4] */
|
|
};
|
|
|
|
const struct pinmux_config emifa_pins_nand[] = {
|
|
{ pinmux(7), 1, 4 }, /* EMA_WE */
|
|
{ pinmux(7), 1, 5 }, /* EMA_OE */
|
|
{ pinmux(9), 1, 0 }, /* EMA_D[7] */
|
|
{ pinmux(9), 1, 1 }, /* EMA_D[6] */
|
|
{ pinmux(9), 1, 2 }, /* EMA_D[5] */
|
|
{ pinmux(9), 1, 3 }, /* EMA_D[4] */
|
|
{ pinmux(9), 1, 4 }, /* EMA_D[3] */
|
|
{ pinmux(9), 1, 5 }, /* EMA_D[2] */
|
|
{ pinmux(9), 1, 6 }, /* EMA_D[1] */
|
|
{ pinmux(9), 1, 7 }, /* EMA_D[0] */
|
|
{ pinmux(12), 1, 5 }, /* EMA_A[2] */
|
|
{ pinmux(12), 1, 6 }, /* EMA_A[1] */
|
|
};
|
|
|
|
/* NOR pin muxer settings */
|
|
const struct pinmux_config emifa_pins_nor[] = {
|
|
{ pinmux(5), 1, 6 }, /* EMA_BA[1] */
|
|
{ pinmux(6), 1, 6 }, /* EMA_WAIT[1] */
|
|
{ pinmux(7), 1, 4 }, /* EMA_WE */
|
|
{ pinmux(7), 1, 5 }, /* EMA_OE */
|
|
{ pinmux(8), 1, 0 }, /* EMA_D[15] */
|
|
{ pinmux(8), 1, 1 }, /* EMA_D[14] */
|
|
{ pinmux(8), 1, 2 }, /* EMA_D[13] */
|
|
{ pinmux(8), 1, 3 }, /* EMA_D[12] */
|
|
{ pinmux(8), 1, 4 }, /* EMA_D[11] */
|
|
{ pinmux(8), 1, 5 }, /* EMA_D[10] */
|
|
{ pinmux(8), 1, 6 }, /* EMA_D[9] */
|
|
{ pinmux(8), 1, 7 }, /* EMA_D[8] */
|
|
{ pinmux(9), 1, 0 }, /* EMA_D[7] */
|
|
{ pinmux(9), 1, 1 }, /* EMA_D[6] */
|
|
{ pinmux(9), 1, 2 }, /* EMA_D[5] */
|
|
{ pinmux(9), 1, 3 }, /* EMA_D[4] */
|
|
{ pinmux(9), 1, 4 }, /* EMA_D[3] */
|
|
{ pinmux(9), 1, 5 }, /* EMA_D[2] */
|
|
{ pinmux(9), 1, 6 }, /* EMA_D[1] */
|
|
{ pinmux(9), 1, 7 }, /* EMA_D[0] */
|
|
{ pinmux(10), 1, 1 }, /* EMA_A[22] */
|
|
{ pinmux(10), 1, 2 }, /* EMA_A[21] */
|
|
{ pinmux(10), 1, 3 }, /* EMA_A[20] */
|
|
{ pinmux(10), 1, 4 }, /* EMA_A[19] */
|
|
{ pinmux(10), 1, 5 }, /* EMA_A[18] */
|
|
{ pinmux(10), 1, 6 }, /* EMA_A[17] */
|
|
{ pinmux(10), 1, 7 }, /* EMA_A[16] */
|
|
{ pinmux(11), 1, 0 }, /* EMA_A[15] */
|
|
{ pinmux(11), 1, 1 }, /* EMA_A[14] */
|
|
{ pinmux(11), 1, 2 }, /* EMA_A[13] */
|
|
{ pinmux(11), 1, 3 }, /* EMA_A[12] */
|
|
{ pinmux(11), 1, 4 }, /* EMA_A[11] */
|
|
{ pinmux(11), 1, 5 }, /* EMA_A[10] */
|
|
{ pinmux(11), 1, 6 }, /* EMA_A[9] */
|
|
{ pinmux(11), 1, 7 }, /* EMA_A[8] */
|
|
{ pinmux(12), 1, 0 }, /* EMA_A[7] */
|
|
{ pinmux(12), 1, 1 }, /* EMA_A[6] */
|
|
{ pinmux(12), 1, 2 }, /* EMA_A[5] */
|
|
{ pinmux(12), 1, 3 }, /* EMA_A[4] */
|
|
{ pinmux(12), 1, 4 }, /* EMA_A[3] */
|
|
{ pinmux(12), 1, 5 }, /* EMA_A[2] */
|
|
{ pinmux(12), 1, 6 }, /* EMA_A[1] */
|
|
{ pinmux(12), 1, 7 }, /* EMA_A[0] */
|
|
};
|
|
|
|
/* MMC0 pin muxer settings */
|
|
const struct pinmux_config mmc0_pins[] = {
|
|
{ pinmux(10), 2, 0 }, /* MMCSD0_CLK */
|
|
{ pinmux(10), 2, 1 }, /* MMCSD0_CMD */
|
|
{ pinmux(10), 2, 2 }, /* MMCSD0_DAT_0 */
|
|
{ pinmux(10), 2, 3 }, /* MMCSD0_DAT_1 */
|
|
{ pinmux(10), 2, 4 }, /* MMCSD0_DAT_2 */
|
|
{ pinmux(10), 2, 5 }, /* MMCSD0_DAT_3 */
|
|
/* DA850 supports only 4-bit mode, remaining pins are not configured */
|
|
};
|