mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-08 12:23:05 +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>
572 lines
18 KiB
C
572 lines
18 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2011 Renesas Solutions Corp.
|
|
* Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
*/
|
|
|
|
#ifndef __ASM_R8A7740_H__
|
|
#define __ASM_R8A7740_H__
|
|
|
|
/*
|
|
* MD_CKx pin
|
|
*/
|
|
#define MD_CK2 (1 << 2)
|
|
#define MD_CK1 (1 << 1)
|
|
#define MD_CK0 (1 << 0)
|
|
|
|
/*
|
|
* Pin Function Controller:
|
|
* GPIO_FN_xx - GPIO used to select pin function
|
|
* GPIO_PORTxx - GPIO mapped to real I/O pin on CPU
|
|
*/
|
|
enum {
|
|
/* PORT */
|
|
GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4,
|
|
GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9,
|
|
|
|
GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14,
|
|
GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19,
|
|
|
|
GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24,
|
|
GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29,
|
|
|
|
GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34,
|
|
GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39,
|
|
|
|
GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44,
|
|
GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49,
|
|
|
|
GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54,
|
|
GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59,
|
|
|
|
GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64,
|
|
GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69,
|
|
|
|
GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74,
|
|
GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79,
|
|
|
|
GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84,
|
|
GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89,
|
|
|
|
GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94,
|
|
GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99,
|
|
|
|
GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104,
|
|
GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109,
|
|
|
|
GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114,
|
|
GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119,
|
|
|
|
GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124,
|
|
GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129,
|
|
|
|
GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134,
|
|
GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139,
|
|
|
|
GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144,
|
|
GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149,
|
|
|
|
GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154,
|
|
GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159,
|
|
|
|
GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164,
|
|
GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169,
|
|
|
|
GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174,
|
|
GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179,
|
|
|
|
GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184,
|
|
GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189,
|
|
|
|
GPIO_PORT190, GPIO_PORT191, GPIO_PORT192, GPIO_PORT193, GPIO_PORT194,
|
|
GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199,
|
|
|
|
GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204,
|
|
GPIO_PORT205, GPIO_PORT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A1 */
|
|
GPIO_FN_SCIFA1_CTS, GPIO_FN_SCIFA1_SCK,
|
|
GPIO_FN_SCIFA1_RXD, GPIO_FN_SCIFA1_TXD,
|
|
GPIO_FN_SCIFA1_RTS,
|
|
|
|
/* SCIFA2 */
|
|
GPIO_FN_SCIFA2_SCK_PORT22, /* SCIFA2_SCK Port 22/199 */
|
|
GPIO_FN_SCIFA2_SCK_PORT199,
|
|
GPIO_FN_SCIFA2_RXD, GPIO_FN_SCIFA2_TXD,
|
|
GPIO_FN_SCIFA2_CTS, GPIO_FN_SCIFA2_RTS,
|
|
|
|
/* SCIFA3 */
|
|
GPIO_FN_SCIFA3_RTS_PORT105, /* MSEL5CR_8_0 */
|
|
GPIO_FN_SCIFA3_SCK_PORT116,
|
|
GPIO_FN_SCIFA3_CTS_PORT117,
|
|
GPIO_FN_SCIFA3_RXD_PORT174,
|
|
GPIO_FN_SCIFA3_TXD_PORT175,
|
|
|
|
GPIO_FN_SCIFA3_RTS_PORT161, /* MSEL5CR_8_1 */
|
|
GPIO_FN_SCIFA3_SCK_PORT158,
|
|
GPIO_FN_SCIFA3_CTS_PORT162,
|
|
GPIO_FN_SCIFA3_RXD_PORT159,
|
|
GPIO_FN_SCIFA3_TXD_PORT160,
|
|
|
|
/* SCIFA4 */
|
|
GPIO_FN_SCIFA4_RXD_PORT12, /* MSEL5CR[12:11] = 00 */
|
|
GPIO_FN_SCIFA4_TXD_PORT13,
|
|
|
|
GPIO_FN_SCIFA4_RXD_PORT204, /* MSEL5CR[12:11] = 01 */
|
|
GPIO_FN_SCIFA4_TXD_PORT203,
|
|
|
|
GPIO_FN_SCIFA4_RXD_PORT94, /* MSEL5CR[12:11] = 10 */
|
|
GPIO_FN_SCIFA4_TXD_PORT93,
|
|
|
|
GPIO_FN_SCIFA4_SCK_PORT21, /* SCIFA4_SCK Port 21/205 */
|
|
GPIO_FN_SCIFA4_SCK_PORT205,
|
|
|
|
/* SCIFA5 */
|
|
GPIO_FN_SCIFA5_TXD_PORT20, /* MSEL5CR[15:14] = 00 */
|
|
GPIO_FN_SCIFA5_RXD_PORT10,
|
|
|
|
GPIO_FN_SCIFA5_RXD_PORT207, /* MSEL5CR[15:14] = 01 */
|
|
GPIO_FN_SCIFA5_TXD_PORT208,
|
|
|
|
GPIO_FN_SCIFA5_TXD_PORT91, /* MSEL5CR[15:14] = 10 */
|
|
GPIO_FN_SCIFA5_RXD_PORT92,
|
|
|
|
GPIO_FN_SCIFA5_SCK_PORT23, /* SCIFA5_SCK Port 23/206 */
|
|
GPIO_FN_SCIFA5_SCK_PORT206,
|
|
|
|
/* SCIFA6 */
|
|
GPIO_FN_SCIFA6_SCK, GPIO_FN_SCIFA6_RXD, GPIO_FN_SCIFA6_TXD,
|
|
|
|
/* SCIFA7 */
|
|
GPIO_FN_SCIFA7_TXD, GPIO_FN_SCIFA7_RXD,
|
|
|
|
/* SCIFAB */
|
|
GPIO_FN_SCIFB_SCK_PORT190, /* MSEL5CR_17_0 */
|
|
GPIO_FN_SCIFB_RXD_PORT191,
|
|
GPIO_FN_SCIFB_TXD_PORT192,
|
|
GPIO_FN_SCIFB_RTS_PORT186,
|
|
GPIO_FN_SCIFB_CTS_PORT187,
|
|
|
|
GPIO_FN_SCIFB_SCK_PORT2, /* MSEL5CR_17_1 */
|
|
GPIO_FN_SCIFB_RXD_PORT3,
|
|
GPIO_FN_SCIFB_TXD_PORT4,
|
|
GPIO_FN_SCIFB_RTS_PORT172,
|
|
GPIO_FN_SCIFB_CTS_PORT173,
|
|
|
|
/* LCD0 */
|
|
GPIO_FN_LCDC0_SELECT,
|
|
GPIO_FN_LCD0_D0, GPIO_FN_LCD0_D1, GPIO_FN_LCD0_D2,
|
|
GPIO_FN_LCD0_D3, GPIO_FN_LCD0_D4, GPIO_FN_LCD0_D5,
|
|
GPIO_FN_LCD0_D6, GPIO_FN_LCD0_D7, GPIO_FN_LCD0_D8,
|
|
GPIO_FN_LCD0_D9, GPIO_FN_LCD0_D10, GPIO_FN_LCD0_D11,
|
|
GPIO_FN_LCD0_D12, GPIO_FN_LCD0_D13, GPIO_FN_LCD0_D14,
|
|
GPIO_FN_LCD0_D15, GPIO_FN_LCD0_D16, GPIO_FN_LCD0_D17,
|
|
GPIO_FN_LCD0_DON, GPIO_FN_LCD0_VCPWC, GPIO_FN_LCD0_VEPWC,
|
|
|
|
GPIO_FN_LCD0_DCK, GPIO_FN_LCD0_VSYN, /* for RGB */
|
|
GPIO_FN_LCD0_HSYN, GPIO_FN_LCD0_DISP, /* for RGB */
|
|
|
|
GPIO_FN_LCD0_WR, GPIO_FN_LCD0_RD, /* for SYS */
|
|
GPIO_FN_LCD0_CS, GPIO_FN_LCD0_RS, /* for SYS */
|
|
|
|
GPIO_FN_LCD0_D18_PORT163, GPIO_FN_LCD0_D19_PORT162,
|
|
GPIO_FN_LCD0_D20_PORT161, GPIO_FN_LCD0_D21_PORT158,
|
|
GPIO_FN_LCD0_D22_PORT160, GPIO_FN_LCD0_D23_PORT159,
|
|
GPIO_FN_LCD0_LCLK_PORT165, /* MSEL5CR_6_1 */
|
|
|
|
GPIO_FN_LCD0_D18_PORT40, GPIO_FN_LCD0_D19_PORT4,
|
|
GPIO_FN_LCD0_D20_PORT3, GPIO_FN_LCD0_D21_PORT2,
|
|
GPIO_FN_LCD0_D22_PORT0, GPIO_FN_LCD0_D23_PORT1,
|
|
GPIO_FN_LCD0_LCLK_PORT102, /* MSEL5CR_6_0 */
|
|
|
|
/* LCD1 */
|
|
GPIO_FN_LCDC1_SELECT,
|
|
GPIO_FN_LCD1_D0, GPIO_FN_LCD1_D1, GPIO_FN_LCD1_D2,
|
|
GPIO_FN_LCD1_D3, GPIO_FN_LCD1_D4, GPIO_FN_LCD1_D5,
|
|
GPIO_FN_LCD1_D6, GPIO_FN_LCD1_D7, GPIO_FN_LCD1_D8,
|
|
GPIO_FN_LCD1_D9, GPIO_FN_LCD1_D10, GPIO_FN_LCD1_D11,
|
|
GPIO_FN_LCD1_D12, GPIO_FN_LCD1_D13, GPI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SYNC,
|
|
GPIO_FN_BBIF1_FLOW, GPIO_FN_BBIF1_RX_FLOW_N,
|
|
|
|
/* BBIF2 */
|
|
GPIO_FN_BBIF2_TXD2_PORT5, /* MSEL5CR_0_0 */
|
|
GPIO_FN_BBIF2_RXD2_PORT60,
|
|
GPIO_FN_BBIF2_TSYNC2_PORT6,
|
|
GPIO_FN_BBIF2_TSCK2_PORT59,
|
|
|
|
GPIO_FN_BBIF2_RXD2_PORT90, /* MSEL5CR_0_1 */
|
|
GPIO_FN_BBIF2_TXD2_PORT183,
|
|
GPIO_FN_BBIF2_TSCK2_PORT89,
|
|
GPIO_FN_BBIF2_TSYNC2_PORT184,
|
|
|
|
/* BSC / FLCTL / PCMCIA */
|
|
GPIO_FN_CS0, GPIO_FN_CS2, GPIO_FN_CS4,
|
|
GPIO_FN_CS5B, GPIO_FN_CS6A,
|
|
GPIO_FN_CS5A_PORT105, /* CS5A PORT 19/105 */
|
|
GPIO_FN_CS5A_PORT19,
|
|
GPIO_FN_IOIS16, /* ? */
|
|
|
|
GPIO_FN_A0, GPIO_FN_A1, GPIO_FN_A2, GPIO_FN_A3,
|
|
GPIO_FN_A4_FOE, /* share with FLCTL */
|
|
GPIO_FN_A5_FCDE, /* share with FLCTL */
|
|
GPIO_FN_A6, GPIO_FN_A7, GPIO_FN_A8, GPIO_FN_A9,
|
|
GPIO_FN_A10, GPIO_FN_A11, GPIO_FN_A12, GPIO_FN_A13,
|
|
GPIO_FN_A14, GPIO_FN_A15, GPIO_FN_A16, GPIO_FN_A17,
|
|
GPIO_FN_A18, GPIO_FN_A19, GPIO_FN_A20, GPIO_FN_A21,
|
|
GPIO_FN_A22, GPIO_FN_A23, GPIO_FN_A24, GPIO_FN_A25,
|
|
GPIO_FN_A26,
|
|
|
|
GPIO_FN_D0_NAF0, GPIO_FN_D1_NAF1, /* share with FLCTL */
|
|
GPIO_FN_D2_NAF2, GPIO_FN_D3_NAF3, /* share with FLCTL */
|
|
GPIO_FN_D4_NAF4, GPIO_FN_D5_NAF5, /* share with FLCTL */
|
|
GPIO_FN_D6_NAF6, GPIO_FN_D7_NAF7, /* share with FLCTL */
|
|
GPIO_FN_D8_NAF8, GPIO_FN_D9_NAF9, /* share with FLCTL */
|
|
GPIO_FN_D10_NAF10, GPIO_FN_D11_NAF11, /* share with FLCTL */
|
|
GPIO_FN_D12_NAF12, GPIO_FN_D13_NAF13, /* share with FLCTL */
|
|
GPIO_FN_D14_NAF14, GPIO_FN_D15_NAF15, /* share with FLCTL */
|
|
|
|
GPIO_FN_D16, GPIO_FN_D17, GPIO_FN_D18, GPIO_FN_D19,
|
|
GPIO_FN_D20, GPIO_FN_D21, GPIO_FN_D22, GPIO_FN_D23,
|
|
GPIO_FN_D24, GPIO_FN_D25, GPIO_FN_D26, GPIO_FN_D27,
|
|
GPIO_FN_D28, GPIO_FN_D29, GPIO_FN_D30, GPIO_FN_D31,
|
|
|
|
GPIO_FN_WE0_FWE, /* share with FLCTL */
|
|
GPIO_FN_WE1,
|
|
GPIO_FN_WE2_ICIORD, /* share with PCMCIA */
|
|
GPIO_FN_WE3_ICIOWR, /* share with PCMCIA */
|
|
GPIO_FN_CKO, GPIO_FN_BS, GPIO_FN_RDWR,
|
|
GPIO_FN_RD_FSC, /* share with FLCTL */
|
|
GPIO_FN_WAIT_PORT177, /* WAIT Port 90/177 */
|
|
GPIO_FN_WAIT_PORT90,
|
|
|
|
GPIO_FN_FCE0, GPIO_FN_FCE1, GPIO_FN_FRB, /* FLCTL */
|
|
|
|
/* IRDA */
|
|
GPIO_FN_IRDA_FIRSEL, GPIO_FN_IRDA_IN, GPIO_FN_IRDA_OUT,
|
|
|
|
/* ATAPI */
|
|
GPIO_FN_IDE_D0, GPIO_FN_IDE_D1, GPIO_FN_IDE_D2,
|
|
GPIO_FN_IDE_D3, GPIO_FN_IDE_D4, GPIO_FN_IDE_D5,
|
|
GPIO_FN_IDE_D6, GPIO_FN_IDE_D7, GPIO_FN_IDE_D8,
|
|
GPIO_FN_IDE_D9, GPIO_FN_IDE_D10, GPIO_FN_IDE_D11,
|
|
GPIO_FN_IDE_D12, GPIO_FN_IDE_D13, GPIO_FN_IDE_D14,
|
|
GPIO_FN_IDE_D15, GPIO_FN_IDE_A0, GPIO_FN_IDE_A1,
|
|
GPIO_FN_IDE_A2, GPIO_FN_IDE_CS0, GPIO_FN_IDE_CS1,
|
|
GPIO_FN_IDE_IOWR, GPIO_FN_IDE_IORD, GPIO_FN_IDE_IORDY,
|
|
GPIO_FN_IDE_INT, GPIO_FN_IDE_RST, GPIO_FN_IDE_DIRECTION,
|
|
GPIO_FN_IDE_EXBUF_ENB, GPIO_FN_IDE_IODACK, GPIO_FN_IDE_IODREQ,
|
|
|
|
/* RMII */
|
|
GPIO_FN_RMII_CRS_DV, GPIO_FN_RMII_RX_ER, GPIO_FN_RMII_RXD0,
|
|
GPIO_FN_RMII_RXD1, GPIO_FN_RMII_TX_EN, GPIO_FN_RMII_TXD0,
|
|
GPIO_FN_RMII_MDC, GPIO_FN_RMII_TXD1, GPIO_FN_RMII_MDIO,
|
|
GPIO_FN_RMII_REF50CK, /* for RMII */
|
|
GPIO_FN_RMII_REF125CK, /* for GMII */
|
|
|
|
/* GEther */
|
|
GPIO_FN_ET_TX_CLK, GPIO_FN_ET_TX_EN, GPIO_FN_ET_ETXD0,
|
|
GPIO_FN_ET_ETXD1, GPIO_FN_ET_ETXD2, GPIO_FN_ET_ETXD3,
|
|
GPIO_FN_ET_ETXD4, GPIO_FN_ET_ETXD5, /* for GEther */
|
|
GPIO_FN_ET_ETXD6, GPIO_FN_ET_ETXD7, /* for GEther */
|
|
GPIO_FN_ET_COL, GPIO_FN_ET_TX_ER,
|
|
GPIO_FN_ET_RX_CLK, GPIO_FN_ET_RX_DV,
|
|
GPIO_FN_ET_ERXD0, GPIO_FN_ET_ERXD1,
|
|
GPIO_FN_ET_ERXD2, GPIO_FN_ET_ERXD3,
|
|
GPIO_FN_ET_ERXD4, GPIO_FN_ET_ERXD5, /* for GEther */
|
|
GPIO_FN_ET_ERXD6, GPIO_FN_ET_ERXD7, /* for GEther */
|
|
GPIO_FN_ET_RX_ER, GPIO_FN_ET_CRS,
|
|
GPIO_FN_ET_MDC, GPIO_FN_ET_MDIO,
|
|
GPIO_FN_ET_LINK, GPIO_FN_ET_PHY_INT,
|
|
GPIO_FN_ET_WOL, GPIO_FN_ET_GTX_CLK,
|
|
|
|
/* DMA0 */
|
|
GPIO_FN_DREQ0, GPIO_FN_DACK0,
|
|
|
|
/* DMA1 */
|
|
GPIO_FN_DREQ1, GPIO_FN_DACK1,
|
|
|
|
/* SYSC */
|
|
GPIO_FN_RESETOUTS,
|
|
GPIO_FN_RESETP_PULLUP,
|
|
GPIO_FN_RESETP_PLAIN,
|
|
|
|
/* SDENC */
|
|
GPIO_FN_SDENC_CPG,
|
|
GPIO_FN_SDENC_DV_CLKI,
|
|
|
|
/* IRREM */
|
|
GPIO_FN_IROUT,
|
|
|
|
/* DEBUG */
|
|
GPIO_FN_EDEBGREQ_PULLDOWN,
|
|
GPIO_FN_EDEBGREQ_PULLUP,
|
|
|
|
GPIO_FN_TRACEAUD_FROM_VIO,
|
|
GPIO_FN_TRACEAUD_FROM_LCDC0,
|
|
GPIO_FN_TRACEAUD_FROM_MEMC,
|
|
};
|
|
|
|
#endif /* __ASM_R8A7740_H__ */
|