Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
pinctrl-mmp2.c File Reference
#include <linux/device.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include "pinctrl-pxa3xx.h"

Go to the source code of this file.

Macros

#define MMP2_DS_MASK   0x1800
 
#define MMP2_DS_SHIFT   11
 
#define MMP2_SLEEP_MASK   0x38
 
#define MMP2_SLEEP_SELECT   (1 << 9)
 
#define MMP2_SLEEP_DATA   (1 << 8)
 
#define MMP2_SLEEP_DIR   (1 << 7)
 
#define MFPR_MMP2(a, r, f0, f1, f2, f3, f4, f5, f6, f7)
 
#define GRP_MMP2(a, m, p)   { .name = a, .mux = MMP2_MUX_##m, .pins = p, .npins = ARRAY_SIZE(p), }
 

Enumerations

enum  mmp2_pin_list {
  TWSI4_SCL = 169, TWSI4_SDA, G_CLKREQ, VCXO_REQ,
  VCXO_OUT
}
 
enum  mmp2_mux {
  MMP2_MUX_GPIO = 0, MMP2_MUX_G_CLKREQ, MMP2_MUX_VCXO_REQ, MMP2_MUX_VCXO_OUT,
  MMP2_MUX_KP_MK, MMP2_MUX_KP_DK, MMP2_MUX_CCIC1, MMP2_MUX_CCIC2,
  MMP2_MUX_SPI, MMP2_MUX_SSPA2, MMP2_MUX_ROT, MMP2_MUX_I2S,
  MMP2_MUX_TB, MMP2_MUX_CAM2, MMP2_MUX_HDMI, MMP2_MUX_TWSI2,
  MMP2_MUX_TWSI3, MMP2_MUX_TWSI4, MMP2_MUX_TWSI5, MMP2_MUX_TWSI6,
  MMP2_MUX_UART1, MMP2_MUX_UART2, MMP2_MUX_UART3, MMP2_MUX_UART4,
  MMP2_MUX_SSP1_RX, MMP2_MUX_SSP1_FRM, MMP2_MUX_SSP1_TXRX, MMP2_MUX_SSP2_RX,
  MMP2_MUX_SSP2_FRM, MMP2_MUX_SSP1, MMP2_MUX_SSP2, MMP2_MUX_SSP3,
  MMP2_MUX_SSP4, MMP2_MUX_MMC1, MMP2_MUX_MMC2, MMP2_MUX_MMC3,
  MMP2_MUX_MMC4, MMP2_MUX_ULPI, MMP2_MUX_AC, MMP2_MUX_CA,
  MMP2_MUX_PWM, MMP2_MUX_USIM, MMP2_MUX_TIPU, MMP2_MUX_PLL,
  MMP2_MUX_NAND, MMP2_MUX_FSIC, MMP2_MUX_SLEEP_IND, MMP2_MUX_EXT_DMA,
  MMP2_MUX_ONE_WIRE, MMP2_MUX_LCD, MMP2_MUX_SMC, MMP2_MUX_SMC_INT,
  MMP2_MUX_MSP, MMP2_MUX_G_CLKOUT, MMP2_MUX_32K_CLKOUT, MMP2_MUX_PRI_JTAG,
  MMP2_MUX_AAS_JTAG, MMP2_MUX_AAS_GPIO, MMP2_MUX_AAS_SPI, MMP2_MUX_AAS_TWSI,
  MMP2_MUX_AAS_DEU_EX, MMP2_MUX_NONE = 0xffff
}
 

Functions

 core_initcall_sync (mmp2_pinmux_init)
 
 module_exit (mmp2_pinmux_exit)
 
 MODULE_AUTHOR ("Haojian Zhuang <[email protected]>")
 
 MODULE_DESCRIPTION ("PXA3xx pin control driver")
 
 MODULE_LICENSE ("GPL v2")
 

Variables

struct pxa3xx_mfp_pin mmp2_mfp []
 

Macro Definition Documentation

#define GRP_MMP2 (   a,
  m,
  p 
)    { .name = a, .mux = MMP2_MUX_##m, .pins = p, .npins = ARRAY_SIZE(p), }

Definition at line 44 of file pinctrl-mmp2.c.

#define MFPR_MMP2 (   a,
  r,
  f0,
  f1,
  f2,
  f3,
  f4,
  f5,
  f6,
  f7 
)
Value:
{ \
.name = #a, \
.pin = a, \
.mfpr = r, \
.func = { \
MMP2_MUX_##f0, \
MMP2_MUX_##f1, \
MMP2_MUX_##f2, \
MMP2_MUX_##f3, \
MMP2_MUX_##f4, \
MMP2_MUX_##f5, \
MMP2_MUX_##f6, \
MMP2_MUX_##f7, \
}, \
}

Definition at line 27 of file pinctrl-mmp2.c.

#define MMP2_DS_MASK   0x1800

Definition at line 20 of file pinctrl-mmp2.c.

#define MMP2_DS_SHIFT   11

Definition at line 21 of file pinctrl-mmp2.c.

#define MMP2_SLEEP_DATA   (1 << 8)

Definition at line 24 of file pinctrl-mmp2.c.

#define MMP2_SLEEP_DIR   (1 << 7)

Definition at line 25 of file pinctrl-mmp2.c.

#define MMP2_SLEEP_MASK   0x38

Definition at line 22 of file pinctrl-mmp2.c.

#define MMP2_SLEEP_SELECT   (1 << 9)

Definition at line 23 of file pinctrl-mmp2.c.

Enumeration Type Documentation

enum mmp2_mux
Enumerator:
MMP2_MUX_GPIO 
MMP2_MUX_G_CLKREQ 
MMP2_MUX_VCXO_REQ 
MMP2_MUX_VCXO_OUT 
MMP2_MUX_KP_MK 
MMP2_MUX_KP_DK 
MMP2_MUX_CCIC1 
MMP2_MUX_CCIC2 
MMP2_MUX_SPI 
MMP2_MUX_SSPA2 
MMP2_MUX_ROT 
MMP2_MUX_I2S 
MMP2_MUX_TB 
MMP2_MUX_CAM2 
MMP2_MUX_HDMI 
MMP2_MUX_TWSI2 
MMP2_MUX_TWSI3 
MMP2_MUX_TWSI4 
MMP2_MUX_TWSI5 
MMP2_MUX_TWSI6 
MMP2_MUX_UART1 
MMP2_MUX_UART2 
MMP2_MUX_UART3 
MMP2_MUX_UART4 
MMP2_MUX_SSP1_RX 
MMP2_MUX_SSP1_FRM 
MMP2_MUX_SSP1_TXRX 
MMP2_MUX_SSP2_RX 
MMP2_MUX_SSP2_FRM 
MMP2_MUX_SSP1 
MMP2_MUX_SSP2 
MMP2_MUX_SSP3 
MMP2_MUX_SSP4 
MMP2_MUX_MMC1 
MMP2_MUX_MMC2 
MMP2_MUX_MMC3 
MMP2_MUX_MMC4 
MMP2_MUX_ULPI 
MMP2_MUX_AC 
MMP2_MUX_CA 
MMP2_MUX_PWM 
MMP2_MUX_USIM 
MMP2_MUX_TIPU 
MMP2_MUX_PLL 
MMP2_MUX_NAND 
MMP2_MUX_FSIC 
MMP2_MUX_SLEEP_IND 
MMP2_MUX_EXT_DMA 
MMP2_MUX_ONE_WIRE 
MMP2_MUX_LCD 
MMP2_MUX_SMC 
MMP2_MUX_SMC_INT 
MMP2_MUX_MSP 
MMP2_MUX_G_CLKOUT 
MMP2_MUX_32K_CLKOUT 
MMP2_MUX_PRI_JTAG 
MMP2_MUX_AAS_JTAG 
MMP2_MUX_AAS_GPIO 
MMP2_MUX_AAS_SPI 
MMP2_MUX_AAS_TWSI 
MMP2_MUX_AAS_DEU_EX 
MMP2_MUX_NONE 

Definition at line 57 of file pinctrl-mmp2.c.

Enumerator:
TWSI4_SCL 
TWSI4_SDA 
G_CLKREQ 
VCXO_REQ 
VCXO_OUT 

Definition at line 48 of file pinctrl-mmp2.c.

Function Documentation

core_initcall_sync ( mmp2_pinmux_init  )
MODULE_AUTHOR ( "Haojian Zhuang <[email protected]>"  )
MODULE_DESCRIPTION ( "PXA3xx pin control driver )
module_exit ( mmp2_pinmux_exit  )
MODULE_LICENSE ( "GPL v2 )

Variable Documentation

struct pxa3xx_mfp_pin mmp2_mfp[]

Definition at line 304 of file pinctrl-mmp2.c.