Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
hx4700.h File Reference
#include <linux/gpio.h>
#include <linux/mfd/asic3.h>

Go to the source code of this file.

Macros

#define HX4700_ASIC3_GPIO_BASE   PXA_NR_BUILTIN_GPIO
 
#define HX4700_EGPIO_BASE   (HX4700_ASIC3_GPIO_BASE + ASIC3_NUM_GPIOS)
 
#define HX4700_NR_IRQS   (IRQ_BOARD_START + 70)
 
#define GPIO0_HX4700_nKEY_POWER   0
 
#define GPIO12_HX4700_ASIC3_IRQ   12
 
#define GPIO13_HX4700_W3220_IRQ   13
 
#define GPIO14_HX4700_nWLAN_IRQ   14
 
#define GPIO18_HX4700_RDY   18
 
#define GPIO22_HX4700_LCD_RL   22
 
#define GPIO27_HX4700_CODEC_ON   27
 
#define GPIO32_HX4700_RS232_ON   32
 
#define GPIO52_HX4700_CPU_nBATT_FAULT   52
 
#define GPIO58_HX4700_TSC2046_nPENIRQ   58
 
#define GPIO59_HX4700_LCD_PC1   59
 
#define GPIO60_HX4700_CF_RNB   60
 
#define GPIO61_HX4700_W3220_nRESET   61
 
#define GPIO62_HX4700_LCD_nRESET   62
 
#define GPIO63_HX4700_CPU_SS_nRESET   63
 
#define GPIO65_HX4700_TSC2046_PEN_PU   65
 
#define GPIO66_HX4700_ASIC3_nSDIO_IRQ   66
 
#define GPIO67_HX4700_EUART_PS   67
 
#define GPIO70_HX4700_LCD_SLIN1   70
 
#define GPIO71_HX4700_ASIC3_nRESET   71
 
#define GPIO72_HX4700_BQ24022_nCHARGE_EN   72
 
#define GPIO73_HX4700_LCD_UD_1   73
 
#define GPIO75_HX4700_EARPHONE_nDET   75
 
#define GPIO76_HX4700_USBC_PUEN   76
 
#define GPIO81_HX4700_CPU_GP_nRESET   81
 
#define GPIO82_HX4700_EUART_RESET   82
 
#define GPIO83_HX4700_WLAN_nRESET   83
 
#define GPIO84_HX4700_LCD_SQN   84
 
#define GPIO85_HX4700_nPCE1   85
 
#define GPIO88_HX4700_TSC2046_CS   88
 
#define GPIO91_HX4700_FLASH_VPEN   91
 
#define GPIO92_HX4700_HP_DRIVER   92
 
#define GPIO93_HX4700_EUART_INT   93
 
#define GPIO94_HX4700_KEY_MAIL   94
 
#define GPIO95_HX4700_BATT_OFF   95
 
#define GPIO96_HX4700_BQ24022_ISET2   96
 
#define GPIO97_HX4700_nBL_DETECT   97
 
#define GPIO99_HX4700_KEY_CONTACTS   99
 
#define GPIO100_HX4700_AUTO_SENSE   100 /* BL auto brightness */
 
#define GPIO102_HX4700_SYNAPTICS_POWER_ON   102
 
#define GPIO103_HX4700_SYNAPTICS_INT   103
 
#define GPIO105_HX4700_nIR_ON   105
 
#define GPIO106_HX4700_CPU_BT_nRESET   106
 
#define GPIO107_HX4700_SPK_nSD   107
 
#define GPIO109_HX4700_CODEC_nPDN   109
 
#define GPIO110_HX4700_LCD_LVDD_3V3_ON   110
 
#define GPIO111_HX4700_LCD_AVDD_3V3_ON   111
 
#define GPIO112_HX4700_LCD_N2V7_7V3_ON   112
 
#define GPIO114_HX4700_CF_RESET   114
 
#define GPIO116_HX4700_CPU_HW_nRESET   116
 
#define GPIOC_BASE   (HX4700_ASIC3_GPIO_BASE + 32)
 
#define GPIOD_BASE   (HX4700_ASIC3_GPIO_BASE + 48)
 
#define GPIOC0_LED_RED   (GPIOC_BASE + 0)
 
#define GPIOC1_LED_GREEN   (GPIOC_BASE + 1)
 
#define GPIOC2_LED_BLUE   (GPIOC_BASE + 2)
 
#define GPIOC3_nSD_CS   (GPIOC_BASE + 3)
 
#define GPIOC4_CF_nCD   (GPIOC_BASE + 4) /* Input */
 
#define GPIOC5_nCIOW   (GPIOC_BASE + 5) /* Output, to CF */
 
#define GPIOC6_nCIOR   (GPIOC_BASE + 6) /* Output, to CF */
 
#define GPIOC7_nPCE1   (GPIOC_BASE + 7) /* Input, from CPU */
 
#define GPIOC8_nPCE2   (GPIOC_BASE + 8) /* Input, from CPU */
 
#define GPIOC9_nPOE   (GPIOC_BASE + 9) /* Input, from CPU */
 
#define GPIOC10_CF_nPWE   (GPIOC_BASE + 10) /* Input */
 
#define GPIOC11_PSKTSEL   (GPIOC_BASE + 11) /* Input, from CPU */
 
#define GPIOC12_nPREG   (GPIOC_BASE + 12) /* Input, from CPU */
 
#define GPIOC13_nPWAIT   (GPIOC_BASE + 13) /* Output, to CPU */
 
#define GPIOC14_nPIOIS16   (GPIOC_BASE + 14) /* Output, to CPU */
 
#define GPIOC15_nPIOR   (GPIOC_BASE + 15) /* Input, from CPU */
 
#define GPIOD0_CPU_SS_INT   (GPIOD_BASE + 0) /* Input */
 
#define GPIOD1_nKEY_CALENDAR   (GPIOD_BASE + 1)
 
#define GPIOD2_BLUETOOTH_WAKEUP   (GPIOD_BASE + 2)
 
#define GPIOD3_nKEY_HOME   (GPIOD_BASE + 3)
 
#define GPIOD4_CF_nCD   (GPIOD_BASE + 4) /* Input, from CF */
 
#define GPIOD5_nPIO   (GPIOD_BASE + 5) /* Input */
 
#define GPIOD6_nKEY_RECORD   (GPIOD_BASE + 6)
 
#define GPIOD7_nSDIO_DETECT   (GPIOD_BASE + 7)
 
#define GPIOD8_COM_DCD   (GPIOD_BASE + 8) /* Input */
 
#define GPIOD9_nAC_IN   (GPIOD_BASE + 9)
 
#define GPIOD10_nSDIO_IRQ   (GPIOD_BASE + 10) /* Input */
 
#define GPIOD11_nCIOIS16   (GPIOD_BASE + 11) /* Input, from CF */
 
#define GPIOD12_nCWAIT   (GPIOD_BASE + 12) /* Input, from CF */
 
#define GPIOD13_CF_RNB   (GPIOD_BASE + 13) /* Input */
 
#define GPIOD14_nUSBC_DETECT   (GPIOD_BASE + 14)
 
#define GPIOD15_nPIOW   (GPIOD_BASE + 15) /* Input, from CPU */
 
#define EGPIO0_VCC_3V3_EN   (HX4700_EGPIO_BASE + 0) /* WLAN support chip */
 
#define EGPIO1_WL_VREG_EN   (HX4700_EGPIO_BASE + 1) /* WLAN power */
 
#define EGPIO2_VCC_2V1_WL_EN   (HX4700_EGPIO_BASE + 2) /* unused */
 
#define EGPIO3_SS_PWR_ON   (HX4700_EGPIO_BASE + 3) /* smart slot power */
 
#define EGPIO4_CF_3V3_ON   (HX4700_EGPIO_BASE + 4) /* CF 3.3V enable */
 
#define EGPIO5_BT_3V3_ON   (HX4700_EGPIO_BASE + 5) /* BT 3.3V enable */
 
#define EGPIO6_WL1V8_EN   (HX4700_EGPIO_BASE + 6) /* WLAN 1.8V enable */
 
#define EGPIO7_VCC_3V3_WL_EN   (HX4700_EGPIO_BASE + 7) /* WLAN 3.3V enable */
 
#define EGPIO8_USB_3V3_ON   (HX4700_EGPIO_BASE + 8) /* unused */
 

Macro Definition Documentation

#define EGPIO0_VCC_3V3_EN   (HX4700_EGPIO_BASE + 0) /* WLAN support chip */

Definition at line 122 of file hx4700.h.

#define EGPIO1_WL_VREG_EN   (HX4700_EGPIO_BASE + 1) /* WLAN power */

Definition at line 123 of file hx4700.h.

#define EGPIO2_VCC_2V1_WL_EN   (HX4700_EGPIO_BASE + 2) /* unused */

Definition at line 124 of file hx4700.h.

#define EGPIO3_SS_PWR_ON   (HX4700_EGPIO_BASE + 3) /* smart slot power */

Definition at line 125 of file hx4700.h.

#define EGPIO4_CF_3V3_ON   (HX4700_EGPIO_BASE + 4) /* CF 3.3V enable */

Definition at line 126 of file hx4700.h.

#define EGPIO5_BT_3V3_ON   (HX4700_EGPIO_BASE + 5) /* BT 3.3V enable */

Definition at line 127 of file hx4700.h.

#define EGPIO6_WL1V8_EN   (HX4700_EGPIO_BASE + 6) /* WLAN 1.8V enable */

Definition at line 128 of file hx4700.h.

#define EGPIO7_VCC_3V3_WL_EN   (HX4700_EGPIO_BASE + 7) /* WLAN 3.3V enable */

Definition at line 129 of file hx4700.h.

#define EGPIO8_USB_3V3_ON   (HX4700_EGPIO_BASE + 8) /* unused */

Definition at line 130 of file hx4700.h.

#define GPIO0_HX4700_nKEY_POWER   0

Definition at line 26 of file hx4700.h.

#define GPIO100_HX4700_AUTO_SENSE   100 /* BL auto brightness */

Definition at line 64 of file hx4700.h.

#define GPIO102_HX4700_SYNAPTICS_POWER_ON   102

Definition at line 65 of file hx4700.h.

#define GPIO103_HX4700_SYNAPTICS_INT   103

Definition at line 66 of file hx4700.h.

#define GPIO105_HX4700_nIR_ON   105

Definition at line 67 of file hx4700.h.

#define GPIO106_HX4700_CPU_BT_nRESET   106

Definition at line 68 of file hx4700.h.

#define GPIO107_HX4700_SPK_nSD   107

Definition at line 69 of file hx4700.h.

#define GPIO109_HX4700_CODEC_nPDN   109

Definition at line 70 of file hx4700.h.

#define GPIO110_HX4700_LCD_LVDD_3V3_ON   110

Definition at line 71 of file hx4700.h.

#define GPIO111_HX4700_LCD_AVDD_3V3_ON   111

Definition at line 72 of file hx4700.h.

#define GPIO112_HX4700_LCD_N2V7_7V3_ON   112

Definition at line 73 of file hx4700.h.

#define GPIO114_HX4700_CF_RESET   114

Definition at line 74 of file hx4700.h.

#define GPIO116_HX4700_CPU_HW_nRESET   116

Definition at line 75 of file hx4700.h.

#define GPIO12_HX4700_ASIC3_IRQ   12

Definition at line 27 of file hx4700.h.

#define GPIO13_HX4700_W3220_IRQ   13

Definition at line 28 of file hx4700.h.

#define GPIO14_HX4700_nWLAN_IRQ   14

Definition at line 29 of file hx4700.h.

#define GPIO18_HX4700_RDY   18

Definition at line 30 of file hx4700.h.

#define GPIO22_HX4700_LCD_RL   22

Definition at line 31 of file hx4700.h.

#define GPIO27_HX4700_CODEC_ON   27

Definition at line 32 of file hx4700.h.

#define GPIO32_HX4700_RS232_ON   32

Definition at line 33 of file hx4700.h.

#define GPIO52_HX4700_CPU_nBATT_FAULT   52

Definition at line 34 of file hx4700.h.

#define GPIO58_HX4700_TSC2046_nPENIRQ   58

Definition at line 35 of file hx4700.h.

#define GPIO59_HX4700_LCD_PC1   59

Definition at line 36 of file hx4700.h.

#define GPIO60_HX4700_CF_RNB   60

Definition at line 37 of file hx4700.h.

#define GPIO61_HX4700_W3220_nRESET   61

Definition at line 38 of file hx4700.h.

#define GPIO62_HX4700_LCD_nRESET   62

Definition at line 39 of file hx4700.h.

#define GPIO63_HX4700_CPU_SS_nRESET   63

Definition at line 40 of file hx4700.h.

#define GPIO65_HX4700_TSC2046_PEN_PU   65

Definition at line 41 of file hx4700.h.

#define GPIO66_HX4700_ASIC3_nSDIO_IRQ   66

Definition at line 42 of file hx4700.h.

#define GPIO67_HX4700_EUART_PS   67

Definition at line 43 of file hx4700.h.

#define GPIO70_HX4700_LCD_SLIN1   70

Definition at line 44 of file hx4700.h.

#define GPIO71_HX4700_ASIC3_nRESET   71

Definition at line 45 of file hx4700.h.

#define GPIO72_HX4700_BQ24022_nCHARGE_EN   72

Definition at line 46 of file hx4700.h.

#define GPIO73_HX4700_LCD_UD_1   73

Definition at line 47 of file hx4700.h.

#define GPIO75_HX4700_EARPHONE_nDET   75

Definition at line 48 of file hx4700.h.

#define GPIO76_HX4700_USBC_PUEN   76

Definition at line 49 of file hx4700.h.

#define GPIO81_HX4700_CPU_GP_nRESET   81

Definition at line 50 of file hx4700.h.

#define GPIO82_HX4700_EUART_RESET   82

Definition at line 51 of file hx4700.h.

#define GPIO83_HX4700_WLAN_nRESET   83

Definition at line 52 of file hx4700.h.

#define GPIO84_HX4700_LCD_SQN   84

Definition at line 53 of file hx4700.h.

#define GPIO85_HX4700_nPCE1   85

Definition at line 54 of file hx4700.h.

#define GPIO88_HX4700_TSC2046_CS   88

Definition at line 55 of file hx4700.h.

#define GPIO91_HX4700_FLASH_VPEN   91

Definition at line 56 of file hx4700.h.

#define GPIO92_HX4700_HP_DRIVER   92

Definition at line 57 of file hx4700.h.

#define GPIO93_HX4700_EUART_INT   93

Definition at line 58 of file hx4700.h.

#define GPIO94_HX4700_KEY_MAIL   94

Definition at line 59 of file hx4700.h.

#define GPIO95_HX4700_BATT_OFF   95

Definition at line 60 of file hx4700.h.

#define GPIO96_HX4700_BQ24022_ISET2   96

Definition at line 61 of file hx4700.h.

#define GPIO97_HX4700_nBL_DETECT   97

Definition at line 62 of file hx4700.h.

#define GPIO99_HX4700_KEY_CONTACTS   99

Definition at line 63 of file hx4700.h.

#define GPIOC0_LED_RED   (GPIOC_BASE + 0)

Definition at line 84 of file hx4700.h.

#define GPIOC10_CF_nPWE   (GPIOC_BASE + 10) /* Input */

Definition at line 94 of file hx4700.h.

#define GPIOC11_PSKTSEL   (GPIOC_BASE + 11) /* Input, from CPU */

Definition at line 95 of file hx4700.h.

#define GPIOC12_nPREG   (GPIOC_BASE + 12) /* Input, from CPU */

Definition at line 96 of file hx4700.h.

#define GPIOC13_nPWAIT   (GPIOC_BASE + 13) /* Output, to CPU */

Definition at line 97 of file hx4700.h.

#define GPIOC14_nPIOIS16   (GPIOC_BASE + 14) /* Output, to CPU */

Definition at line 98 of file hx4700.h.

#define GPIOC15_nPIOR   (GPIOC_BASE + 15) /* Input, from CPU */

Definition at line 99 of file hx4700.h.

#define GPIOC1_LED_GREEN   (GPIOC_BASE + 1)

Definition at line 85 of file hx4700.h.

#define GPIOC2_LED_BLUE   (GPIOC_BASE + 2)

Definition at line 86 of file hx4700.h.

#define GPIOC3_nSD_CS   (GPIOC_BASE + 3)

Definition at line 87 of file hx4700.h.

#define GPIOC4_CF_nCD   (GPIOC_BASE + 4) /* Input */

Definition at line 88 of file hx4700.h.

#define GPIOC5_nCIOW   (GPIOC_BASE + 5) /* Output, to CF */

Definition at line 89 of file hx4700.h.

#define GPIOC6_nCIOR   (GPIOC_BASE + 6) /* Output, to CF */

Definition at line 90 of file hx4700.h.

#define GPIOC7_nPCE1   (GPIOC_BASE + 7) /* Input, from CPU */

Definition at line 91 of file hx4700.h.

#define GPIOC8_nPCE2   (GPIOC_BASE + 8) /* Input, from CPU */

Definition at line 92 of file hx4700.h.

#define GPIOC9_nPOE   (GPIOC_BASE + 9) /* Input, from CPU */

Definition at line 93 of file hx4700.h.

#define GPIOC_BASE   (HX4700_ASIC3_GPIO_BASE + 32)

Definition at line 81 of file hx4700.h.

#define GPIOD0_CPU_SS_INT   (GPIOD_BASE + 0) /* Input */

Definition at line 101 of file hx4700.h.

#define GPIOD10_nSDIO_IRQ   (GPIOD_BASE + 10) /* Input */

Definition at line 111 of file hx4700.h.

#define GPIOD11_nCIOIS16   (GPIOD_BASE + 11) /* Input, from CF */

Definition at line 112 of file hx4700.h.

#define GPIOD12_nCWAIT   (GPIOD_BASE + 12) /* Input, from CF */

Definition at line 113 of file hx4700.h.

#define GPIOD13_CF_RNB   (GPIOD_BASE + 13) /* Input */

Definition at line 114 of file hx4700.h.

#define GPIOD14_nUSBC_DETECT   (GPIOD_BASE + 14)

Definition at line 115 of file hx4700.h.

#define GPIOD15_nPIOW   (GPIOD_BASE + 15) /* Input, from CPU */

Definition at line 116 of file hx4700.h.

#define GPIOD1_nKEY_CALENDAR   (GPIOD_BASE + 1)

Definition at line 102 of file hx4700.h.

#define GPIOD2_BLUETOOTH_WAKEUP   (GPIOD_BASE + 2)

Definition at line 103 of file hx4700.h.

#define GPIOD3_nKEY_HOME   (GPIOD_BASE + 3)

Definition at line 104 of file hx4700.h.

#define GPIOD4_CF_nCD   (GPIOD_BASE + 4) /* Input, from CF */

Definition at line 105 of file hx4700.h.

#define GPIOD5_nPIO   (GPIOD_BASE + 5) /* Input */

Definition at line 106 of file hx4700.h.

#define GPIOD6_nKEY_RECORD   (GPIOD_BASE + 6)

Definition at line 107 of file hx4700.h.

#define GPIOD7_nSDIO_DETECT   (GPIOD_BASE + 7)

Definition at line 108 of file hx4700.h.

#define GPIOD8_COM_DCD   (GPIOD_BASE + 8) /* Input */

Definition at line 109 of file hx4700.h.

#define GPIOD9_nAC_IN   (GPIOD_BASE + 9)

Definition at line 110 of file hx4700.h.

#define GPIOD_BASE   (HX4700_ASIC3_GPIO_BASE + 48)

Definition at line 82 of file hx4700.h.

#define HX4700_ASIC3_GPIO_BASE   PXA_NR_BUILTIN_GPIO

Definition at line 18 of file hx4700.h.

#define HX4700_EGPIO_BASE   (HX4700_ASIC3_GPIO_BASE + ASIC3_NUM_GPIOS)

Definition at line 19 of file hx4700.h.

#define HX4700_NR_IRQS   (IRQ_BOARD_START + 70)

Definition at line 20 of file hx4700.h.