Linux Kernel
3.7.1
|
#include <linux/err.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include "pinctrl-spear.h"
Go to the source code of this file.
Functions | |
arch_initcall (spear1310_pinctrl_init) | |
module_exit (spear1310_pinctrl_exit) | |
MODULE_AUTHOR ("Viresh Kumar <[email protected]>") | |
MODULE_DESCRIPTION ("ST Microelectronics SPEAr1310 pinctrl driver") | |
MODULE_LICENSE ("GPL v2") | |
MODULE_DEVICE_TABLE (of, spear1310_pinctrl_of_match) | |
#define DRIVER_NAME "spear1310-pinmux" |
Definition at line 19 of file pinctrl-spear1310.c.
#define MCIF_MUXREG |
Definition at line 1162 of file pinctrl-spear1310.c.
#define MCIF_SEL_CF (0x2 << MCIF_SEL_SHIFT) |
Definition at line 31 of file pinctrl-spear1310.c.
#define MCIF_SEL_MASK (0x3 << MCIF_SEL_SHIFT) |
Definition at line 33 of file pinctrl-spear1310.c.
#define MCIF_SEL_SD (0x1 << MCIF_SEL_SHIFT) |
Definition at line 30 of file pinctrl-spear1310.c.
#define MCIF_SEL_SHIFT 5 |
Definition at line 29 of file pinctrl-spear1310.c.
#define MCIF_SEL_XD (0x3 << MCIF_SEL_SHIFT) |
Definition at line 32 of file pinctrl-spear1310.c.
#define PAD_DIRECTION_SEL_0 0x65C |
Definition at line 167 of file pinctrl-spear1310.c.
#define PAD_DIRECTION_SEL_1 0x660 |
Definition at line 168 of file pinctrl-spear1310.c.
#define PAD_DIRECTION_SEL_2 0x664 |
Definition at line 169 of file pinctrl-spear1310.c.
#define PAD_FUNCTION_EN_0 0x650 |
Definition at line 67 of file pinctrl-spear1310.c.
#define PAD_FUNCTION_EN_1 0x654 |
Definition at line 100 of file pinctrl-spear1310.c.
#define PAD_FUNCTION_EN_2 0x658 |
Definition at line 134 of file pinctrl-spear1310.c.
#define PCIE0_CFG_AUX_CLK_EN (1 << 0) |
Definition at line 65 of file pinctrl-spear1310.c.
#define PCIE0_CFG_CORE_CLK_EN (1 << 1) |
Definition at line 64 of file pinctrl-spear1310.c.
#define PCIE0_CFG_DEVICE_PRESENT (1 << 3) |
Definition at line 62 of file pinctrl-spear1310.c.
#define PCIE0_CFG_POWERUP_RESET (1 << 2) |
Definition at line 63 of file pinctrl-spear1310.c.
#define PCIE1_CFG_AUX_CLK_EN (1 << 4) |
Definition at line 61 of file pinctrl-spear1310.c.
#define PCIE1_CFG_CORE_CLK_EN (1 << 5) |
Definition at line 60 of file pinctrl-spear1310.c.
#define PCIE1_CFG_DEVICE_PRESENT (1 << 7) |
Definition at line 58 of file pinctrl-spear1310.c.
#define PCIE1_CFG_POWERUP_RESET (1 << 6) |
Definition at line 59 of file pinctrl-spear1310.c.
#define PCIE2_CFG_AUX_CLK_EN (1 << 8) |
Definition at line 57 of file pinctrl-spear1310.c.
#define PCIE2_CFG_CORE_CLK_EN (1 << 9) |
Definition at line 56 of file pinctrl-spear1310.c.
#define PCIE2_CFG_DEVICE_PRESENT (1 << 11) |
Definition at line 54 of file pinctrl-spear1310.c.
#define PCIE2_CFG_POWERUP_RESET (1 << 10) |
Definition at line 55 of file pinctrl-spear1310.c.
#define PCIE_CFG_VAL | ( | x | ) |
#define PCIE_SATA0_SEL_PCIE (0 << 29) |
Definition at line 38 of file pinctrl-spear1310.c.
#define PCIE_SATA0_SEL_SATA (1 << 29) |
Definition at line 41 of file pinctrl-spear1310.c.
#define PCIE_SATA1_SEL_PCIE (0 << 30) |
Definition at line 37 of file pinctrl-spear1310.c.
#define PCIE_SATA1_SEL_SATA (1 << 30) |
Definition at line 40 of file pinctrl-spear1310.c.
#define PCIE_SATA2_SEL_PCIE (0 << 31) |
Definition at line 36 of file pinctrl-spear1310.c.
#define PCIE_SATA2_SEL_SATA (1 << 31) |
Definition at line 39 of file pinctrl-spear1310.c.
#define PCIE_SATA_CFG 0x3A4 |
Definition at line 35 of file pinctrl-spear1310.c.
#define PERIP_CFG 0x3B0 |
Definition at line 28 of file pinctrl-spear1310.c.
#define PMX_CLCD1_MASK (1 << 5) |
Definition at line 72 of file pinctrl-spear1310.c.
#define PMX_CLCD2_MASK (1 << 3) |
Definition at line 104 of file pinctrl-spear1310.c.
#define PMX_EGPIO00_MASK (1 << 6) |
Definition at line 73 of file pinctrl-spear1310.c.
#define PMX_EGPIO01_MASK (1 << 7) |
Definition at line 74 of file pinctrl-spear1310.c.
#define PMX_EGPIO02_MASK (1 << 8) |
Definition at line 75 of file pinctrl-spear1310.c.
#define PMX_EGPIO03_MASK (1 << 9) |
Definition at line 76 of file pinctrl-spear1310.c.
#define PMX_EGPIO04_MASK (1 << 10) |
Definition at line 77 of file pinctrl-spear1310.c.
#define PMX_EGPIO05_MASK (1 << 11) |
Definition at line 78 of file pinctrl-spear1310.c.
#define PMX_EGPIO06_MASK (1 << 12) |
Definition at line 79 of file pinctrl-spear1310.c.
#define PMX_EGPIO07_MASK (1 << 13) |
Definition at line 80 of file pinctrl-spear1310.c.
#define PMX_EGPIO08_MASK (1 << 14) |
Definition at line 81 of file pinctrl-spear1310.c.
#define PMX_EGPIO09_MASK (1 << 15) |
Definition at line 82 of file pinctrl-spear1310.c.
#define PMX_EGPIO10_MASK (1 << 5) |
Definition at line 106 of file pinctrl-spear1310.c.
#define PMX_EGPIO11_MASK (1 << 6) |
Definition at line 107 of file pinctrl-spear1310.c.
#define PMX_EGPIO12_MASK (1 << 7) |
Definition at line 108 of file pinctrl-spear1310.c.
#define PMX_EGPIO13_MASK (1 << 8) |
Definition at line 109 of file pinctrl-spear1310.c.
#define PMX_EGPIO14_MASK (1 << 9) |
Definition at line 110 of file pinctrl-spear1310.c.
#define PMX_EGPIO15_MASK (1 << 10) |
Definition at line 111 of file pinctrl-spear1310.c.
#define PMX_EGPIO_0_GRP_MASK |
Definition at line 177 of file pinctrl-spear1310.c.
#define PMX_EGPIO_1_GRP_MASK |
Definition at line 183 of file pinctrl-spear1310.c.
#define PMX_GMII_MASK |
Definition at line 172 of file pinctrl-spear1310.c.
#define PMX_GMIICLK_MASK (1 << 18) |
Definition at line 85 of file pinctrl-spear1310.c.
#define PMX_GMIICOL_CRS_XFERER_MIITXCLK_MASK (1 << 19) |
Definition at line 86 of file pinctrl-spear1310.c.
#define PMX_GMIID47_MASK (1 << 21) |
Definition at line 88 of file pinctrl-spear1310.c.
#define PMX_GPT0_TMR0_MASK (1 << 12) |
Definition at line 113 of file pinctrl-spear1310.c.
#define PMX_GPT0_TMR1_MASK (1 << 13) |
Definition at line 114 of file pinctrl-spear1310.c.
#define PMX_GPT1_TMR0_MASK (1 << 14) |
Definition at line 115 of file pinctrl-spear1310.c.
#define PMX_GPT1_TMR1_MASK (1 << 15) |
Definition at line 116 of file pinctrl-spear1310.c.
#define PMX_I2C0_MASK (1 << 2) |
Definition at line 69 of file pinctrl-spear1310.c.
#define PMX_I2S0_MASK (1 << 3) |
Definition at line 70 of file pinctrl-spear1310.c.
#define PMX_I2S1_MASK (1 << 16) |
Definition at line 117 of file pinctrl-spear1310.c.
#define PMX_KBD_COL0_MASK (1 << 21) |
Definition at line 122 of file pinctrl-spear1310.c.
#define PMX_KBD_COL1_MASK (1 << 19) |
Definition at line 120 of file pinctrl-spear1310.c.
#define PMX_KBD_ROW0_MASK (1 << 25) |
Definition at line 126 of file pinctrl-spear1310.c.
#define PMX_KBD_ROW1_MASK (1 << 23) |
Definition at line 124 of file pinctrl-spear1310.c.
#define PMX_KBD_ROWCOL25_MASK (1 << 17) |
Definition at line 118 of file pinctrl-spear1310.c.
#define PMX_KBD_ROWCOL68_MASK (1 << 4) |
Definition at line 105 of file pinctrl-spear1310.c.
#define PMX_KEYBOARD_6X6_MASK |
Definition at line 187 of file pinctrl-spear1310.c.
#define PMX_MCI_DATA8_15_MASK (1 << 23) |
Definition at line 90 of file pinctrl-spear1310.c.
#define PMX_MCIADDR0ALE_MASK (1 << 6) |
Definition at line 141 of file pinctrl-spear1310.c.
#define PMX_MCIADDR1CLECLK_MASK (1 << 7) |
Definition at line 142 of file pinctrl-spear1310.c.
#define PMX_MCIADDR2_MASK (1 << 8) |
Definition at line 143 of file pinctrl-spear1310.c.
#define PMX_MCICDCF1_MASK (1 << 12) |
Definition at line 147 of file pinctrl-spear1310.c.
#define PMX_MCICDCF2_MASK (1 << 13) |
Definition at line 148 of file pinctrl-spear1310.c.
#define PMX_MCICDSDMMC_MASK (1 << 15) |
Definition at line 150 of file pinctrl-spear1310.c.
#define PMX_MCICDXD_MASK (1 << 14) |
Definition at line 149 of file pinctrl-spear1310.c.
#define PMX_MCICECF_MASK (1 << 9) |
Definition at line 144 of file pinctrl-spear1310.c.
#define PMX_MCICESDMMC_MASK (1 << 11) |
Definition at line 146 of file pinctrl-spear1310.c.
#define PMX_MCICEXD_MASK (1 << 10) |
Definition at line 145 of file pinctrl-spear1310.c.
#define PMX_MCICFINTR_MASK (1 << 22) |
Definition at line 157 of file pinctrl-spear1310.c.
#define PMX_MCICS0CE_MASK (1 << 21) |
Definition at line 156 of file pinctrl-spear1310.c.
#define PMX_MCICS1_MASK (1 << 24) |
Definition at line 159 of file pinctrl-spear1310.c.
#define PMX_MCIDATA0_MASK (1 << 27) |
Definition at line 128 of file pinctrl-spear1310.c.
#define PMX_MCIDATA1_MASK (1 << 28) |
Definition at line 129 of file pinctrl-spear1310.c.
#define PMX_MCIDATA1SD_MASK (1 << 3) |
Definition at line 138 of file pinctrl-spear1310.c.
#define PMX_MCIDATA2_MASK (1 << 29) |
Definition at line 130 of file pinctrl-spear1310.c.
#define PMX_MCIDATA2SD_MASK (1 << 4) |
Definition at line 139 of file pinctrl-spear1310.c.
#define PMX_MCIDATA3_MASK (1 << 30) |
Definition at line 131 of file pinctrl-spear1310.c.
#define PMX_MCIDATA3SD_MASK (1 << 5) |
Definition at line 140 of file pinctrl-spear1310.c.
#define PMX_MCIDATA4_MASK (1 << 31) |
Definition at line 132 of file pinctrl-spear1310.c.
#define PMX_MCIDATA5_MASK (1 << 0) |
Definition at line 135 of file pinctrl-spear1310.c.
#define PMX_MCIDATA6_MASK (1 << 1) |
Definition at line 136 of file pinctrl-spear1310.c.
#define PMX_MCIDATA7_MASK (1 << 2) |
Definition at line 137 of file pinctrl-spear1310.c.
#define PMX_MCIDATADIR_MASK (1 << 16) |
Definition at line 151 of file pinctrl-spear1310.c.
#define PMX_MCIDMAACK_MASK (1 << 25) |
Definition at line 160 of file pinctrl-spear1310.c.
#define PMX_MCIDMARQWP_MASK (1 << 17) |
Definition at line 152 of file pinctrl-spear1310.c.
#define PMX_MCIFALL_1_MASK 0xF8000000 |
Definition at line 204 of file pinctrl-spear1310.c.
#define PMX_MCIFALL_2_MASK 0x0FFFFFFF |
Definition at line 205 of file pinctrl-spear1310.c.
#define PMX_MCIIORDRE_MASK (1 << 18) |
Definition at line 153 of file pinctrl-spear1310.c.
#define PMX_MCIIORDY_MASK (1 << 23) |
Definition at line 158 of file pinctrl-spear1310.c.
#define PMX_MCIIOWRWE_MASK (1 << 19) |
Definition at line 154 of file pinctrl-spear1310.c.
#define PMX_MCILEDS_MASK (1 << 27) |
Definition at line 162 of file pinctrl-spear1310.c.
#define PMX_MCIRESETCF_MASK (1 << 20) |
Definition at line 155 of file pinctrl-spear1310.c.
#define PMX_MCISDCMD_MASK (1 << 26) |
Definition at line 161 of file pinctrl-spear1310.c.
#define PMX_MDC_MDIO_MASK (1 << 22) |
Definition at line 89 of file pinctrl-spear1310.c.
#define PMX_NAND16BIT_1_MASK (PMX_KBD_ROWCOL25_MASK | PMX_NFIO8_15_MASK) |
Definition at line 198 of file pinctrl-spear1310.c.
#define PMX_NAND8_MASK (1 << 17) |
Definition at line 84 of file pinctrl-spear1310.c.
#define PMX_NAND8BIT_0_MASK |
Definition at line 191 of file pinctrl-spear1310.c.
#define PMX_NAND8BIT_1_MASK PMX_NFRSTPWDWN3_MASK |
Definition at line 196 of file pinctrl-spear1310.c.
#define PMX_NAND_4CHIPS_MASK |
Definition at line 199 of file pinctrl-spear1310.c.
#define PMX_NFAD23_MASK (1 << 24) |
Definition at line 91 of file pinctrl-spear1310.c.
#define PMX_NFAD24_MASK (1 << 25) |
Definition at line 92 of file pinctrl-spear1310.c.
#define PMX_NFAD25_MASK (1 << 26) |
Definition at line 93 of file pinctrl-spear1310.c.
#define PMX_NFCE1_MASK (1 << 20) |
Definition at line 121 of file pinctrl-spear1310.c.
#define PMX_NFCE2_MASK (1 << 22) |
Definition at line 123 of file pinctrl-spear1310.c.
#define PMX_NFCE3_MASK (1 << 27) |
Definition at line 94 of file pinctrl-spear1310.c.
#define PMX_NFIO8_15_MASK (1 << 18) |
Definition at line 119 of file pinctrl-spear1310.c.
#define PMX_NFRSTPWDWN0_MASK (1 << 29) |
Definition at line 96 of file pinctrl-spear1310.c.
#define PMX_NFRSTPWDWN1_MASK (1 << 30) |
Definition at line 97 of file pinctrl-spear1310.c.
#define PMX_NFRSTPWDWN2_MASK (1 << 31) |
Definition at line 98 of file pinctrl-spear1310.c.
#define PMX_NFRSTPWDWN3_MASK (1 << 0) |
Definition at line 101 of file pinctrl-spear1310.c.
#define PMX_NFWPRT1_MASK (1 << 24) |
Definition at line 125 of file pinctrl-spear1310.c.
#define PMX_NFWPRT2_MASK (1 << 26) |
Definition at line 127 of file pinctrl-spear1310.c.
#define PMX_NFWPRT3_MASK (1 << 28) |
Definition at line 95 of file pinctrl-spear1310.c.
#define PMX_PCI_REG1_MASK |
Definition at line 207 of file pinctrl-spear1310.c.
#define PMX_PCI_REG2_MASK |
Definition at line 213 of file pinctrl-spear1310.c.
#define PMX_RGMII_REG0_MASK |
Definition at line 217 of file pinctrl-spear1310.c.
#define PMX_RGMII_REG1_MASK |
Definition at line 220 of file pinctrl-spear1310.c.
#define PMX_RGMII_REG2_MASK |
Definition at line 223 of file pinctrl-spear1310.c.
#define PMX_RXCLK_RDV_TXEN_D03_MASK (1 << 20) |
Definition at line 87 of file pinctrl-spear1310.c.
#define PMX_SMI_MASK (1 << 16) |
Definition at line 83 of file pinctrl-spear1310.c.
#define PMX_SMII_0_1_2_MASK (PMX_CLCD2_MASK | PMX_KBD_ROWCOL68_MASK) |
Definition at line 216 of file pinctrl-spear1310.c.
#define PMX_SMINCS2_MASK (1 << 1) |
Definition at line 102 of file pinctrl-spear1310.c.
#define PMX_SMINCS3_MASK (1 << 2) |
Definition at line 103 of file pinctrl-spear1310.c.
#define PMX_SSP0_CS0_MASK (1 << 29) |
Definition at line 164 of file pinctrl-spear1310.c.
#define PMX_SSP0_CS1_2_MASK (1 << 30) |
Definition at line 165 of file pinctrl-spear1310.c.
#define PMX_SSP0_MASK (1 << 4) |
Definition at line 71 of file pinctrl-spear1310.c.
#define PMX_TOUCH_XY_MASK (1 << 28) |
Definition at line 163 of file pinctrl-spear1310.c.
#define PMX_UART0_MASK (1 << 1) |
Definition at line 68 of file pinctrl-spear1310.c.
#define PMX_UART0_MODEM_MASK (1 << 11) |
Definition at line 112 of file pinctrl-spear1310.c.
#define SATA0_CFG_PM_CLK_EN (1 << 16) |
Definition at line 53 of file pinctrl-spear1310.c.
#define SATA0_CFG_POWERUP_RESET (1 << 17) |
Definition at line 52 of file pinctrl-spear1310.c.
#define SATA0_CFG_RX_CLK_EN (1 << 18) |
Definition at line 51 of file pinctrl-spear1310.c.
#define SATA0_CFG_TX_CLK_EN (1 << 19) |
Definition at line 50 of file pinctrl-spear1310.c.
#define SATA1_CFG_PM_CLK_EN (1 << 20) |
Definition at line 49 of file pinctrl-spear1310.c.
#define SATA1_CFG_POWERUP_RESET (1 << 21) |
Definition at line 48 of file pinctrl-spear1310.c.
#define SATA1_CFG_RX_CLK_EN (1 << 22) |
Definition at line 47 of file pinctrl-spear1310.c.
#define SATA1_CFG_TX_CLK_EN (1 << 23) |
Definition at line 46 of file pinctrl-spear1310.c.
#define SATA2_CFG_PM_CLK_EN (1 << 24) |
Definition at line 45 of file pinctrl-spear1310.c.
#define SATA2_CFG_POWERUP_RESET (1 << 25) |
Definition at line 44 of file pinctrl-spear1310.c.
#define SATA2_CFG_RX_CLK_EN (1 << 26) |
Definition at line 43 of file pinctrl-spear1310.c.
#define SATA2_CFG_TX_CLK_EN (1 << 27) |
Definition at line 42 of file pinctrl-spear1310.c.
#define SATA_CFG_VAL | ( | x | ) |
arch_initcall | ( | spear1310_pinctrl_init | ) |
MODULE_AUTHOR | ( | "Viresh Kumar <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
spear1310_pinctrl_of_match | |||
) |
module_exit | ( | spear1310_pinctrl_exit | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |