Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mfp-pxa2xx.h File Reference
#include <plat/mfp.h>

Go to the source code of this file.

Macros

#define MFP_DIR_IN   (0x0 << 23)
 
#define MFP_DIR_OUT   (0x1 << 23)
 
#define MFP_DIR_MASK   (0x1 << 23)
 
#define MFP_DIR(x)   (((x) >> 23) & 0x1)
 
#define MFP_LPM_CAN_WAKEUP   (0x1 << 24)
 
#define MFP_LPM_KEEP_OUTPUT   (0x1 << 25)
 
#define WAKEUP_ON_EDGE_RISE   (MFP_LPM_CAN_WAKEUP | MFP_LPM_EDGE_RISE)
 
#define WAKEUP_ON_EDGE_FALL   (MFP_LPM_CAN_WAKEUP | MFP_LPM_EDGE_FALL)
 
#define WAKEUP_ON_EDGE_BOTH   (MFP_LPM_CAN_WAKEUP | MFP_LPM_EDGE_BOTH)
 
#define WAKEUP_ON_LEVEL_HIGH   (MFP_LPM_CAN_WAKEUP)
 
#define MFP_CFG_IN(pin, af)
 
#define MFP_CFG_OUT(pin, af, state)
 
#define GPIO0_GPIO   MFP_CFG_IN(GPIO0, AF0)
 
#define GPIO1_GPIO   MFP_CFG_IN(GPIO1, AF0)
 
#define GPIO9_GPIO   MFP_CFG_IN(GPIO9, AF0)
 
#define GPIO10_GPIO   MFP_CFG_IN(GPIO10, AF0)
 
#define GPIO11_GPIO   MFP_CFG_IN(GPIO11, AF0)
 
#define GPIO12_GPIO   MFP_CFG_IN(GPIO12, AF0)
 
#define GPIO13_GPIO   MFP_CFG_IN(GPIO13, AF0)
 
#define GPIO14_GPIO   MFP_CFG_IN(GPIO14, AF0)
 
#define GPIO15_GPIO   MFP_CFG_IN(GPIO15, AF0)
 
#define GPIO16_GPIO   MFP_CFG_IN(GPIO16, AF0)
 
#define GPIO17_GPIO   MFP_CFG_IN(GPIO17, AF0)
 
#define GPIO18_GPIO   MFP_CFG_IN(GPIO18, AF0)
 
#define GPIO19_GPIO   MFP_CFG_IN(GPIO19, AF0)
 
#define GPIO20_GPIO   MFP_CFG_IN(GPIO20, AF0)
 
#define GPIO21_GPIO   MFP_CFG_IN(GPIO21, AF0)
 
#define GPIO22_GPIO   MFP_CFG_IN(GPIO22, AF0)
 
#define GPIO23_GPIO   MFP_CFG_IN(GPIO23, AF0)
 
#define GPIO24_GPIO   MFP_CFG_IN(GPIO24, AF0)
 
#define GPIO25_GPIO   MFP_CFG_IN(GPIO25, AF0)
 
#define GPIO26_GPIO   MFP_CFG_IN(GPIO26, AF0)
 
#define GPIO27_GPIO   MFP_CFG_IN(GPIO27, AF0)
 
#define GPIO28_GPIO   MFP_CFG_IN(GPIO28, AF0)
 
#define GPIO29_GPIO   MFP_CFG_IN(GPIO29, AF0)
 
#define GPIO30_GPIO   MFP_CFG_IN(GPIO30, AF0)
 
#define GPIO31_GPIO   MFP_CFG_IN(GPIO31, AF0)
 
#define GPIO32_GPIO   MFP_CFG_IN(GPIO32, AF0)
 
#define GPIO33_GPIO   MFP_CFG_IN(GPIO33, AF0)
 
#define GPIO34_GPIO   MFP_CFG_IN(GPIO34, AF0)
 
#define GPIO35_GPIO   MFP_CFG_IN(GPIO35, AF0)
 
#define GPIO36_GPIO   MFP_CFG_IN(GPIO36, AF0)
 
#define GPIO37_GPIO   MFP_CFG_IN(GPIO37, AF0)
 
#define GPIO38_GPIO   MFP_CFG_IN(GPIO38, AF0)
 
#define GPIO39_GPIO   MFP_CFG_IN(GPIO39, AF0)
 
#define GPIO40_GPIO   MFP_CFG_IN(GPIO40, AF0)
 
#define GPIO41_GPIO   MFP_CFG_IN(GPIO41, AF0)
 
#define GPIO42_GPIO   MFP_CFG_IN(GPIO42, AF0)
 
#define GPIO43_GPIO   MFP_CFG_IN(GPIO43, AF0)
 
#define GPIO44_GPIO   MFP_CFG_IN(GPIO44, AF0)
 
#define GPIO45_GPIO   MFP_CFG_IN(GPIO45, AF0)
 
#define GPIO46_GPIO   MFP_CFG_IN(GPIO46, AF0)
 
#define GPIO47_GPIO   MFP_CFG_IN(GPIO47, AF0)
 
#define GPIO48_GPIO   MFP_CFG_IN(GPIO48, AF0)
 
#define GPIO49_GPIO   MFP_CFG_IN(GPIO49, AF0)
 
#define GPIO50_GPIO   MFP_CFG_IN(GPIO50, AF0)
 
#define GPIO51_GPIO   MFP_CFG_IN(GPIO51, AF0)
 
#define GPIO52_GPIO   MFP_CFG_IN(GPIO52, AF0)
 
#define GPIO53_GPIO   MFP_CFG_IN(GPIO53, AF0)
 
#define GPIO54_GPIO   MFP_CFG_IN(GPIO54, AF0)
 
#define GPIO55_GPIO   MFP_CFG_IN(GPIO55, AF0)
 
#define GPIO56_GPIO   MFP_CFG_IN(GPIO56, AF0)
 
#define GPIO57_GPIO   MFP_CFG_IN(GPIO57, AF0)
 
#define GPIO58_GPIO   MFP_CFG_IN(GPIO58, AF0)
 
#define GPIO59_GPIO   MFP_CFG_IN(GPIO59, AF0)
 
#define GPIO60_GPIO   MFP_CFG_IN(GPIO60, AF0)
 
#define GPIO61_GPIO   MFP_CFG_IN(GPIO61, AF0)
 
#define GPIO62_GPIO   MFP_CFG_IN(GPIO62, AF0)
 
#define GPIO63_GPIO   MFP_CFG_IN(GPIO63, AF0)
 
#define GPIO64_GPIO   MFP_CFG_IN(GPIO64, AF0)
 
#define GPIO65_GPIO   MFP_CFG_IN(GPIO65, AF0)
 
#define GPIO66_GPIO   MFP_CFG_IN(GPIO66, AF0)
 
#define GPIO67_GPIO   MFP_CFG_IN(GPIO67, AF0)
 
#define GPIO68_GPIO   MFP_CFG_IN(GPIO68, AF0)
 
#define GPIO69_GPIO   MFP_CFG_IN(GPIO69, AF0)
 
#define GPIO70_GPIO   MFP_CFG_IN(GPIO70, AF0)
 
#define GPIO71_GPIO   MFP_CFG_IN(GPIO71, AF0)
 
#define GPIO72_GPIO   MFP_CFG_IN(GPIO72, AF0)
 
#define GPIO73_GPIO   MFP_CFG_IN(GPIO73, AF0)
 
#define GPIO74_GPIO   MFP_CFG_IN(GPIO74, AF0)
 
#define GPIO75_GPIO   MFP_CFG_IN(GPIO75, AF0)
 
#define GPIO76_GPIO   MFP_CFG_IN(GPIO76, AF0)
 
#define GPIO77_GPIO   MFP_CFG_IN(GPIO77, AF0)
 
#define GPIO78_GPIO   MFP_CFG_IN(GPIO78, AF0)
 
#define GPIO79_GPIO   MFP_CFG_IN(GPIO79, AF0)
 
#define GPIO80_GPIO   MFP_CFG_IN(GPIO80, AF0)
 
#define GPIO81_GPIO   MFP_CFG_IN(GPIO81, AF0)
 
#define GPIO82_GPIO   MFP_CFG_IN(GPIO82, AF0)
 
#define GPIO83_GPIO   MFP_CFG_IN(GPIO83, AF0)
 
#define GPIO84_GPIO   MFP_CFG_IN(GPIO84, AF0)
 

Functions

void pxa2xx_mfp_config (unsigned long *mfp_cfgs, int num)
 
void pxa2xx_mfp_set_lpm (int mfp, unsigned long lpm)
 
int gpio_set_wake (unsigned int gpio, unsigned int on)
 

Macro Definition Documentation

#define GPIO0_GPIO   MFP_CFG_IN(GPIO0, AF0)

Definition at line 60 of file mfp-pxa2xx.h.

#define GPIO10_GPIO   MFP_CFG_IN(GPIO10, AF0)

Definition at line 63 of file mfp-pxa2xx.h.

#define GPIO11_GPIO   MFP_CFG_IN(GPIO11, AF0)

Definition at line 64 of file mfp-pxa2xx.h.

#define GPIO12_GPIO   MFP_CFG_IN(GPIO12, AF0)

Definition at line 65 of file mfp-pxa2xx.h.

#define GPIO13_GPIO   MFP_CFG_IN(GPIO13, AF0)

Definition at line 66 of file mfp-pxa2xx.h.

#define GPIO14_GPIO   MFP_CFG_IN(GPIO14, AF0)

Definition at line 67 of file mfp-pxa2xx.h.

#define GPIO15_GPIO   MFP_CFG_IN(GPIO15, AF0)

Definition at line 68 of file mfp-pxa2xx.h.

#define GPIO16_GPIO   MFP_CFG_IN(GPIO16, AF0)

Definition at line 69 of file mfp-pxa2xx.h.

#define GPIO17_GPIO   MFP_CFG_IN(GPIO17, AF0)

Definition at line 70 of file mfp-pxa2xx.h.

#define GPIO18_GPIO   MFP_CFG_IN(GPIO18, AF0)

Definition at line 71 of file mfp-pxa2xx.h.

#define GPIO19_GPIO   MFP_CFG_IN(GPIO19, AF0)

Definition at line 72 of file mfp-pxa2xx.h.

#define GPIO1_GPIO   MFP_CFG_IN(GPIO1, AF0)

Definition at line 61 of file mfp-pxa2xx.h.

#define GPIO20_GPIO   MFP_CFG_IN(GPIO20, AF0)

Definition at line 73 of file mfp-pxa2xx.h.

#define GPIO21_GPIO   MFP_CFG_IN(GPIO21, AF0)

Definition at line 74 of file mfp-pxa2xx.h.

#define GPIO22_GPIO   MFP_CFG_IN(GPIO22, AF0)

Definition at line 75 of file mfp-pxa2xx.h.

#define GPIO23_GPIO   MFP_CFG_IN(GPIO23, AF0)

Definition at line 76 of file mfp-pxa2xx.h.

#define GPIO24_GPIO   MFP_CFG_IN(GPIO24, AF0)

Definition at line 77 of file mfp-pxa2xx.h.

#define GPIO25_GPIO   MFP_CFG_IN(GPIO25, AF0)

Definition at line 78 of file mfp-pxa2xx.h.

#define GPIO26_GPIO   MFP_CFG_IN(GPIO26, AF0)

Definition at line 79 of file mfp-pxa2xx.h.

#define GPIO27_GPIO   MFP_CFG_IN(GPIO27, AF0)

Definition at line 80 of file mfp-pxa2xx.h.

#define GPIO28_GPIO   MFP_CFG_IN(GPIO28, AF0)

Definition at line 81 of file mfp-pxa2xx.h.

#define GPIO29_GPIO   MFP_CFG_IN(GPIO29, AF0)

Definition at line 82 of file mfp-pxa2xx.h.

#define GPIO30_GPIO   MFP_CFG_IN(GPIO30, AF0)

Definition at line 83 of file mfp-pxa2xx.h.

#define GPIO31_GPIO   MFP_CFG_IN(GPIO31, AF0)

Definition at line 84 of file mfp-pxa2xx.h.

#define GPIO32_GPIO   MFP_CFG_IN(GPIO32, AF0)

Definition at line 85 of file mfp-pxa2xx.h.

#define GPIO33_GPIO   MFP_CFG_IN(GPIO33, AF0)

Definition at line 86 of file mfp-pxa2xx.h.

#define GPIO34_GPIO   MFP_CFG_IN(GPIO34, AF0)

Definition at line 87 of file mfp-pxa2xx.h.

#define GPIO35_GPIO   MFP_CFG_IN(GPIO35, AF0)

Definition at line 88 of file mfp-pxa2xx.h.

#define GPIO36_GPIO   MFP_CFG_IN(GPIO36, AF0)

Definition at line 89 of file mfp-pxa2xx.h.

#define GPIO37_GPIO   MFP_CFG_IN(GPIO37, AF0)

Definition at line 90 of file mfp-pxa2xx.h.

#define GPIO38_GPIO   MFP_CFG_IN(GPIO38, AF0)

Definition at line 91 of file mfp-pxa2xx.h.

#define GPIO39_GPIO   MFP_CFG_IN(GPIO39, AF0)

Definition at line 92 of file mfp-pxa2xx.h.

#define GPIO40_GPIO   MFP_CFG_IN(GPIO40, AF0)

Definition at line 93 of file mfp-pxa2xx.h.

#define GPIO41_GPIO   MFP_CFG_IN(GPIO41, AF0)

Definition at line 94 of file mfp-pxa2xx.h.

#define GPIO42_GPIO   MFP_CFG_IN(GPIO42, AF0)

Definition at line 95 of file mfp-pxa2xx.h.

#define GPIO43_GPIO   MFP_CFG_IN(GPIO43, AF0)

Definition at line 96 of file mfp-pxa2xx.h.

#define GPIO44_GPIO   MFP_CFG_IN(GPIO44, AF0)

Definition at line 97 of file mfp-pxa2xx.h.

#define GPIO45_GPIO   MFP_CFG_IN(GPIO45, AF0)

Definition at line 98 of file mfp-pxa2xx.h.

#define GPIO46_GPIO   MFP_CFG_IN(GPIO46, AF0)

Definition at line 99 of file mfp-pxa2xx.h.

#define GPIO47_GPIO   MFP_CFG_IN(GPIO47, AF0)

Definition at line 100 of file mfp-pxa2xx.h.

#define GPIO48_GPIO   MFP_CFG_IN(GPIO48, AF0)

Definition at line 101 of file mfp-pxa2xx.h.

#define GPIO49_GPIO   MFP_CFG_IN(GPIO49, AF0)

Definition at line 102 of file mfp-pxa2xx.h.

#define GPIO50_GPIO   MFP_CFG_IN(GPIO50, AF0)

Definition at line 103 of file mfp-pxa2xx.h.

#define GPIO51_GPIO   MFP_CFG_IN(GPIO51, AF0)

Definition at line 104 of file mfp-pxa2xx.h.

#define GPIO52_GPIO   MFP_CFG_IN(GPIO52, AF0)

Definition at line 105 of file mfp-pxa2xx.h.

#define GPIO53_GPIO   MFP_CFG_IN(GPIO53, AF0)

Definition at line 106 of file mfp-pxa2xx.h.

#define GPIO54_GPIO   MFP_CFG_IN(GPIO54, AF0)

Definition at line 107 of file mfp-pxa2xx.h.

#define GPIO55_GPIO   MFP_CFG_IN(GPIO55, AF0)

Definition at line 108 of file mfp-pxa2xx.h.

#define GPIO56_GPIO   MFP_CFG_IN(GPIO56, AF0)

Definition at line 109 of file mfp-pxa2xx.h.

#define GPIO57_GPIO   MFP_CFG_IN(GPIO57, AF0)

Definition at line 110 of file mfp-pxa2xx.h.

#define GPIO58_GPIO   MFP_CFG_IN(GPIO58, AF0)

Definition at line 111 of file mfp-pxa2xx.h.

#define GPIO59_GPIO   MFP_CFG_IN(GPIO59, AF0)

Definition at line 112 of file mfp-pxa2xx.h.

#define GPIO60_GPIO   MFP_CFG_IN(GPIO60, AF0)

Definition at line 113 of file mfp-pxa2xx.h.

#define GPIO61_GPIO   MFP_CFG_IN(GPIO61, AF0)

Definition at line 114 of file mfp-pxa2xx.h.

#define GPIO62_GPIO   MFP_CFG_IN(GPIO62, AF0)

Definition at line 115 of file mfp-pxa2xx.h.

#define GPIO63_GPIO   MFP_CFG_IN(GPIO63, AF0)

Definition at line 116 of file mfp-pxa2xx.h.

#define GPIO64_GPIO   MFP_CFG_IN(GPIO64, AF0)

Definition at line 117 of file mfp-pxa2xx.h.

#define GPIO65_GPIO   MFP_CFG_IN(GPIO65, AF0)

Definition at line 118 of file mfp-pxa2xx.h.

#define GPIO66_GPIO   MFP_CFG_IN(GPIO66, AF0)

Definition at line 119 of file mfp-pxa2xx.h.

#define GPIO67_GPIO   MFP_CFG_IN(GPIO67, AF0)

Definition at line 120 of file mfp-pxa2xx.h.

#define GPIO68_GPIO   MFP_CFG_IN(GPIO68, AF0)

Definition at line 121 of file mfp-pxa2xx.h.

#define GPIO69_GPIO   MFP_CFG_IN(GPIO69, AF0)

Definition at line 122 of file mfp-pxa2xx.h.

#define GPIO70_GPIO   MFP_CFG_IN(GPIO70, AF0)

Definition at line 123 of file mfp-pxa2xx.h.

#define GPIO71_GPIO   MFP_CFG_IN(GPIO71, AF0)

Definition at line 124 of file mfp-pxa2xx.h.

#define GPIO72_GPIO   MFP_CFG_IN(GPIO72, AF0)

Definition at line 125 of file mfp-pxa2xx.h.

#define GPIO73_GPIO   MFP_CFG_IN(GPIO73, AF0)

Definition at line 126 of file mfp-pxa2xx.h.

#define GPIO74_GPIO   MFP_CFG_IN(GPIO74, AF0)

Definition at line 127 of file mfp-pxa2xx.h.

#define GPIO75_GPIO   MFP_CFG_IN(GPIO75, AF0)

Definition at line 128 of file mfp-pxa2xx.h.

#define GPIO76_GPIO   MFP_CFG_IN(GPIO76, AF0)

Definition at line 129 of file mfp-pxa2xx.h.

#define GPIO77_GPIO   MFP_CFG_IN(GPIO77, AF0)

Definition at line 130 of file mfp-pxa2xx.h.

#define GPIO78_GPIO   MFP_CFG_IN(GPIO78, AF0)

Definition at line 131 of file mfp-pxa2xx.h.

#define GPIO79_GPIO   MFP_CFG_IN(GPIO79, AF0)

Definition at line 132 of file mfp-pxa2xx.h.

#define GPIO80_GPIO   MFP_CFG_IN(GPIO80, AF0)

Definition at line 133 of file mfp-pxa2xx.h.

#define GPIO81_GPIO   MFP_CFG_IN(GPIO81, AF0)

Definition at line 134 of file mfp-pxa2xx.h.

#define GPIO82_GPIO   MFP_CFG_IN(GPIO82, AF0)

Definition at line 135 of file mfp-pxa2xx.h.

#define GPIO83_GPIO   MFP_CFG_IN(GPIO83, AF0)

Definition at line 136 of file mfp-pxa2xx.h.

#define GPIO84_GPIO   MFP_CFG_IN(GPIO84, AF0)

Definition at line 137 of file mfp-pxa2xx.h.

#define GPIO9_GPIO   MFP_CFG_IN(GPIO9, AF0)

Definition at line 62 of file mfp-pxa2xx.h.

#define MFP_CFG_IN (   pin,
  af 
)
Value:
(MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DIR_IN))

Definition at line 44 of file mfp-pxa2xx.h.

#define MFP_CFG_OUT (   pin,
  af,
  state 
)
Value:
(MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DIR_OUT | MFP_LPM_##state))

Definition at line 51 of file mfp-pxa2xx.h.

#define MFP_DIR (   x)    (((x) >> 23) & 0x1)

Definition at line 26 of file mfp-pxa2xx.h.

#define MFP_DIR_IN   (0x0 << 23)

Definition at line 23 of file mfp-pxa2xx.h.

#define MFP_DIR_MASK   (0x1 << 23)

Definition at line 25 of file mfp-pxa2xx.h.

#define MFP_DIR_OUT   (0x1 << 23)

Definition at line 24 of file mfp-pxa2xx.h.

#define MFP_LPM_CAN_WAKEUP   (0x1 << 24)

Definition at line 28 of file mfp-pxa2xx.h.

#define MFP_LPM_KEEP_OUTPUT   (0x1 << 25)

Definition at line 35 of file mfp-pxa2xx.h.

#define WAKEUP_ON_EDGE_BOTH   (MFP_LPM_CAN_WAKEUP | MFP_LPM_EDGE_BOTH)

Definition at line 39 of file mfp-pxa2xx.h.

#define WAKEUP_ON_EDGE_FALL   (MFP_LPM_CAN_WAKEUP | MFP_LPM_EDGE_FALL)

Definition at line 38 of file mfp-pxa2xx.h.

#define WAKEUP_ON_EDGE_RISE   (MFP_LPM_CAN_WAKEUP | MFP_LPM_EDGE_RISE)

Definition at line 37 of file mfp-pxa2xx.h.

#define WAKEUP_ON_LEVEL_HIGH   (MFP_LPM_CAN_WAKEUP)

Definition at line 42 of file mfp-pxa2xx.h.

Function Documentation

int gpio_set_wake ( unsigned int  gpio,
unsigned int  on 
)

Definition at line 175 of file mfp-pxa2xx.c.

void pxa2xx_mfp_config ( unsigned long mfp_cfgs,
int  num 
)

Definition at line 136 of file mfp-pxa2xx.c.

void pxa2xx_mfp_set_lpm ( int  mfp,
unsigned long  lpm 
)

Definition at line 157 of file mfp-pxa2xx.c.