/*
* imx35 pinctrl driver.
*
* This driver was mostly copied from the imx51 pinctrl driver which has:
*
* Copyright (C) 2012 Freescale Semiconductor, Inc.
* Copyright (C) 2012 Linaro, Inc.
*
* Author: Dong Aisheng <dong.aisheng@linaro.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-imx.h"
enum imx35_pads {
MX35_PAD_RESERVE0 = 0,
MX35_PAD_CAPTURE = 1,
MX35_PAD_COMPARE = 2,
MX35_PAD_WDOG_RST = 3,
MX35_PAD_GPIO1_0 = 4,
MX35_PAD_GPIO1_1 = 5,
MX35_PAD_GPIO2_0 = 6,
MX35_PAD_GPIO3_0 = 7,
MX35_PAD_CLKO = 8,
MX35_PAD_VSTBY = 9,
MX35_PAD_A0 = 10,
MX35_PAD_A1 = 11,
MX35_PAD_A2 = 12,
MX35_PAD_A3 = 13,
MX35_PAD_A4 = 14,
MX35_PAD_A5 = 15,
MX35_PAD_A6 = 16,
MX35_PAD_A7 = 17,
MX35_PAD_A8 = 18,
MX35_PAD_A9 = 19,
MX35_PAD_A10 = 20,
MX35_PAD_MA10 = 21,
MX35_PAD_A11 = 22,
MX35_PAD_A12 = 23,
MX35_PAD_A13 = 24,
MX35_PAD_A14 = 25,
MX35_PAD_A15 = 26,
MX35_PAD_A16 = 27,
MX35_PAD_A17 = 28,
MX35_PAD_A18 = 29,
MX35_PAD_A19 = 30,
MX35_PAD_A20 = 31,
MX35_PAD_A21 = 32,
MX35_PAD_A22 = 33,
MX35_PAD_A23 = 34,
MX35_PAD_A24 = 35,
MX35_PAD_A25 = 36,
MX35_PAD_EB0 = 37,
MX35_PAD_EB1 = 38,
MX35_PAD_OE = 39,
MX35_PAD_CS0 = 40,
MX35_PAD_CS1 = 41,
MX35_PAD_CS2 = 42,
MX35_PAD_CS3 = 43,
MX35_PAD_CS4 = 44,
MX35_PAD_CS5 = 45,
MX35_PAD_NF_CE0 = 46,
MX35_PAD_LBA = 47,
MX35_PAD_BCLK = 48,
MX35_PAD_RW = 49,
MX35_PAD_NFWE_B = 50,
MX35_PAD_NFRE_B = 51,
MX35_PAD_NFALE = 52,
MX35_PAD_NFCLE = 53,
MX35_PAD_NFWP_B = 54,
MX35_PAD_NFRB = 55,
MX35_PAD_CSI_D8 = 56,
MX35_PAD_CSI_D9 = 57,
MX35_PAD_CSI_D10 = 58,
MX35_PAD_CSI_D11 = 59,
MX35_PAD_CSI_D12 = 60,
MX35_PAD_CSI_D13 = 61,
MX35_PAD_CSI_D14 = 62,
MX35_PAD_CSI_D15 = 63,
MX35_PAD_CSI_MCLK = 64,
MX35_PAD_CSI_VSYNC = 65,
MX35_PAD_CSI_HSYNC = 66,
MX35_PAD_CSI_PIXCLK = 67,
MX35_PAD_I2C1_CLK = 68,
MX35_PAD_I2C1_DAT = 69,
MX35_PAD_I2C2_CLK = 70,
MX35_PAD_I2C2_DAT = 71,
MX35_PAD_STXD4 = 72,
MX35_PAD_SRXD4 = 73,
MX35_PAD_SCK4 = 74,
MX35_PAD_STXFS4 = 75,
MX35_PAD_STXD5 = 76,
MX35_PAD_SRXD5 = 77,
MX35_PAD_SCK5 = 78,
MX35_PAD_STXFS5 = 79,
MX35_PAD_SCKR = 80,
MX35_PAD_FSR = 81,
MX35_PAD_HCKR = 82,
MX35_PAD_SCKT = 83,
MX35_PAD_FST = 84,
MX35_PAD_HCKT = 85,
MX35_PAD_TX5_RX0 = 86,
MX35_PAD_TX4_RX1 = 87,
MX35_PAD_TX3_RX2 = 88,
MX35_PAD_TX2_RX3 = 89,
MX35_PAD_TX1 = 90,
MX35_PAD_TX0 = 91,
MX35_PAD_CSPI1_MOSI = 92,
MX35_PAD_CSPI1_MISO = 93,
MX35_PAD_CSPI1_SS0 = 94,
MX35_PAD_CSPI1_SS1 = 95,
MX35_PAD_CSPI1_SCLK = 96,
MX35_PAD_CSPI1_SPI_RDY = 97,
MX35_PAD_RXD1 = 98,
MX35_PAD_TXD1 = 99,
MX35_PAD_RTS1 = 100,
MX35_PAD_CTS1 = 101,
MX35_PAD_RXD2 = 102,
MX35_PAD_TXD2 = 103,
MX35_PAD_RTS2 = 104,
MX35_PAD_CTS2 = 105,
MX35_PAD_USBOTG_PWR = 106,