nuttx/arch/arm/include/cxd56xx/pin.h
Alin Jerpelea 222a3b9fe8 arch: arm: cxd56xx: nxstyle fixes
nxstyle fixes for cxd56xx

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-04-14 13:20:21 +01:00

152 lines
5.8 KiB
C

/****************************************************************************
* arch/arm/include/cxd56xx/pin.h
*
* Copyright (C) 2008-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name of Sony Semiconductor Solutions Corporation nor
* the names of its contributors may be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
****************************************************************************/
#ifndef __ARCH_ARM_INCLUDE_CXD56XX_PIN_H
#define __ARCH_ARM_INCLUDE_CXD56XX_PIN_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Pin number Definitions */
#define PIN_RTC_CLK_IN (0)
/* SYS GPIO: system power domain GPIOs */
#define PIN_I2C4_BCK (1)
#define PIN_I2C4_BDT (2)
#define PIN_PMIC_INT (3)
#define PIN_RTC_IRQ_OUT (4)
#define PIN_AP_CLK (5)
#define PIN_GNSS_1PPS_OUT (6)
#define PIN_SPI0_CS_X (17)
#define PIN_SPI0_SCK (18)
#define PIN_SPI0_MOSI (19)
#define PIN_SPI0_MISO (20)
#define PIN_SPI1_CS_X (21)
#define PIN_SPI1_SCK (22)
#define PIN_SPI1_IO0 (23)
#define PIN_SPI1_IO1 (24)
#define PIN_SPI1_IO2 (25)
#define PIN_SPI1_IO3 (26)
#define PIN_SPI2_CS_X (27)
#define PIN_SPI2_SCK (28)
#define PIN_SPI2_MOSI (29)
#define PIN_SPI2_MISO (30)
#define PIN_HIF_IRQ_OUT (31)
#define PIN_HIF_GPIO0 (32)
#define PIN_SEN_IRQ_IN (37)
#define PIN_SPI3_CS0_X (38)
#define PIN_SPI3_CS1_X (39)
#define PIN_SPI3_CS2_X (40)
#define PIN_SPI3_SCK (41)
#define PIN_SPI3_MOSI (42)
#define PIN_SPI3_MISO (43)
#define PIN_I2C0_BCK (44)
#define PIN_I2C0_BDT (45)
#define PIN_PWM0 (46)
#define PIN_PWM1 (47)
#define PIN_PWM2 (48)
#define PIN_PWM3 (49)
/* APP GPIO: application power domain GPIOs */
#define PIN_IS_CLK (56)
#define PIN_IS_VSYNC (57)
#define PIN_IS_HSYNC (58)
#define PIN_IS_DATA0 (59)
#define PIN_IS_DATA1 (60)
#define PIN_IS_DATA2 (61)
#define PIN_IS_DATA3 (62)
#define PIN_IS_DATA4 (63)
#define PIN_IS_DATA5 (64)
#define PIN_IS_DATA6 (65)
#define PIN_IS_DATA7 (66)
#define PIN_UART2_TXD (67)
#define PIN_UART2_RXD (68)
#define PIN_UART2_CTS (69)
#define PIN_UART2_RTS (70)
#define PIN_SPI4_CS_X (71)
#define PIN_SPI4_SCK (72)
#define PIN_SPI4_MOSI (73)
#define PIN_SPI4_MISO (74)
#define PIN_EMMC_CLK (75)
#define PIN_SPI5_SCK (PIN_EMMC_CLK)
#define PIN_EMMC_CMD (76)
#define PIN_SPI5_CS_X (PIN_EMMC_CMD)
#define PIN_EMMC_DATA0 (77)
#define PIN_SPI5_MOSI (PIN_EMMC_DATA0)
#define PIN_EMMC_DATA1 (78)
#define PIN_SPI5_MISO (PIN_EMMC_DATA1)
#define PIN_EMMC_DATA2 (79)
#define PIN_EMMC_DATA3 (80)
#define PIN_SDIO_CLK (81)
#define PIN_SDIO_CMD (82)
#define PIN_SDIO_DATA0 (83)
#define PIN_SDIO_DATA1 (84)
#define PIN_SDIO_DATA2 (85)
#define PIN_SDIO_DATA3 (86)
#define PIN_SDIO_CD (87)
#define PIN_SDIO_WP (88)
#define PIN_SDIO_CMDDIR (89)
#define PIN_SDIO_DIR0 (90)
#define PIN_SDIO_DIR1_3 (91)
#define PIN_SDIO_CLKI (92)
#define PIN_I2S0_BCK (93)
#define PIN_I2S0_LRCK (94)
#define PIN_I2S0_DATA_IN (95)
#define PIN_I2S0_DATA_OUT (96)
#define PIN_I2S1_BCK (97)
#define PIN_I2S1_LRCK (98)
#define PIN_I2S1_DATA_IN (99)
#define PIN_I2S1_DATA_OUT (100)
#define PIN_MCLK (101)
#define PIN_PDM_CLK (102)
#define PIN_PDM_IN (103)
#define PIN_PDM_OUT (104)
#define PIN_USB_VBUSINT (105)
#endif /* __ARCH_ARM_INCLUDE_CXD56XX_PIN_H */