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

Go to the source code of this file.

Macros

#define GPIO0_MAGICIAN_KEY_POWER   0
 
#define GPIO9_MAGICIAN_UNKNOWN   9
 
#define GPIO10_MAGICIAN_GSM_IRQ   10
 
#define GPIO11_MAGICIAN_GSM_OUT1   11
 
#define GPIO13_MAGICIAN_CPLD_IRQ   13
 
#define GPIO18_MAGICIAN_UNKNOWN   18
 
#define GPIO22_MAGICIAN_VIBRA_EN   22
 
#define GPIO26_MAGICIAN_GSM_POWER   26
 
#define GPIO27_MAGICIAN_USBC_PUEN   27
 
#define GPIO30_MAGICIAN_BQ24022_nCHARGE_EN   30
 
#define GPIO37_MAGICIAN_KEY_HANGUP   37
 
#define GPIO38_MAGICIAN_KEY_CONTACTS   38
 
#define GPIO40_MAGICIAN_GSM_OUT2   40
 
#define GPIO48_MAGICIAN_UNKNOWN   48
 
#define GPIO56_MAGICIAN_UNKNOWN   56
 
#define GPIO57_MAGICIAN_CAM_RESET   57
 
#define GPIO75_MAGICIAN_SAMSUNG_POWER   75
 
#define GPIO83_MAGICIAN_nIR_EN   83
 
#define GPIO86_MAGICIAN_GSM_RESET   86
 
#define GPIO87_MAGICIAN_GSM_SELECT   87
 
#define GPIO90_MAGICIAN_KEY_CALENDAR   90
 
#define GPIO91_MAGICIAN_KEY_CAMERA   91
 
#define GPIO93_MAGICIAN_KEY_UP   93
 
#define GPIO94_MAGICIAN_KEY_DOWN   94
 
#define GPIO95_MAGICIAN_KEY_LEFT   95
 
#define GPIO96_MAGICIAN_KEY_RIGHT   96
 
#define GPIO97_MAGICIAN_KEY_ENTER   97
 
#define GPIO98_MAGICIAN_KEY_RECORD   98
 
#define GPIO99_MAGICIAN_HEADPHONE_IN   99
 
#define GPIO100_MAGICIAN_KEY_VOL_UP   100
 
#define GPIO101_MAGICIAN_KEY_VOL_DOWN   101
 
#define GPIO102_MAGICIAN_KEY_PHONE   102
 
#define GPIO103_MAGICIAN_LED_KP   103
 
#define GPIO104_MAGICIAN_LCD_POWER_1   104
 
#define GPIO105_MAGICIAN_LCD_POWER_2   105
 
#define GPIO106_MAGICIAN_LCD_POWER_3   106
 
#define GPIO107_MAGICIAN_DS1WM_IRQ   107
 
#define GPIO108_MAGICIAN_GSM_READY   108
 
#define GPIO114_MAGICIAN_UNKNOWN   114
 
#define GPIO115_MAGICIAN_nPEN_IRQ   115
 
#define GPIO116_MAGICIAN_nCAM_EN   116
 
#define GPIO119_MAGICIAN_UNKNOWN   119
 
#define GPIO120_MAGICIAN_UNKNOWN   120
 
#define IRQ_MAGICIAN_SD   (IRQ_BOARD_START + 0)
 
#define IRQ_MAGICIAN_EP   (IRQ_BOARD_START + 1)
 
#define IRQ_MAGICIAN_BT   (IRQ_BOARD_START + 2)
 
#define IRQ_MAGICIAN_VBUS   (IRQ_BOARD_START + 3)
 
#define MAGICIAN_NR_IRQS   (IRQ_BOARD_START + 8)
 
#define MAGICIAN_EGPIO_BASE   PXA_NR_BUILTIN_GPIO
 
#define MAGICIAN_EGPIO(reg, bit)   (MAGICIAN_EGPIO_BASE + 8*reg + bit)
 
#define EGPIO_MAGICIAN_TOPPOLY_POWER   MAGICIAN_EGPIO(0, 2)
 
#define EGPIO_MAGICIAN_LED_POWER   MAGICIAN_EGPIO(0, 5)
 
#define EGPIO_MAGICIAN_GSM_RESET   MAGICIAN_EGPIO(0, 6)
 
#define EGPIO_MAGICIAN_LCD_POWER   MAGICIAN_EGPIO(0, 7)
 
#define EGPIO_MAGICIAN_SPK_POWER   MAGICIAN_EGPIO(1, 0)
 
#define EGPIO_MAGICIAN_EP_POWER   MAGICIAN_EGPIO(1, 1)
 
#define EGPIO_MAGICIAN_IN_SEL0   MAGICIAN_EGPIO(1, 2)
 
#define EGPIO_MAGICIAN_IN_SEL1   MAGICIAN_EGPIO(1, 3)
 
#define EGPIO_MAGICIAN_MIC_POWER   MAGICIAN_EGPIO(1, 4)
 
#define EGPIO_MAGICIAN_CODEC_RESET   MAGICIAN_EGPIO(1, 5)
 
#define EGPIO_MAGICIAN_CODEC_POWER   MAGICIAN_EGPIO(1, 6)
 
#define EGPIO_MAGICIAN_BL_POWER   MAGICIAN_EGPIO(1, 7)
 
#define EGPIO_MAGICIAN_SD_POWER   MAGICIAN_EGPIO(2, 0)
 
#define EGPIO_MAGICIAN_CARKIT_MIC   MAGICIAN_EGPIO(2, 1)
 
#define EGPIO_MAGICIAN_UNKNOWN_WAVEDEV_DLL   MAGICIAN_EGPIO(2, 2)
 
#define EGPIO_MAGICIAN_FLASH_VPP   MAGICIAN_EGPIO(2, 3)
 
#define EGPIO_MAGICIAN_BL_POWER2   MAGICIAN_EGPIO(2, 4)
 
#define EGPIO_MAGICIAN_BQ24022_ISET2   MAGICIAN_EGPIO(2, 5)
 
#define EGPIO_MAGICIAN_GSM_POWER   MAGICIAN_EGPIO(2, 7)
 
#define EGPIO_MAGICIAN_CABLE_STATE_AC   MAGICIAN_EGPIO(4, 0)
 
#define EGPIO_MAGICIAN_CABLE_STATE_USB   MAGICIAN_EGPIO(4, 1)
 
#define EGPIO_MAGICIAN_BOARD_ID0   MAGICIAN_EGPIO(5, 0)
 
#define EGPIO_MAGICIAN_BOARD_ID1   MAGICIAN_EGPIO(5, 1)
 
#define EGPIO_MAGICIAN_BOARD_ID2   MAGICIAN_EGPIO(5, 2)
 
#define EGPIO_MAGICIAN_LCD_SELECT   MAGICIAN_EGPIO(5, 3)
 
#define EGPIO_MAGICIAN_nSD_READONLY   MAGICIAN_EGPIO(5, 4)
 
#define EGPIO_MAGICIAN_EP_INSERT   MAGICIAN_EGPIO(6, 1)
 

Macro Definition Documentation

#define EGPIO_MAGICIAN_BL_POWER   MAGICIAN_EGPIO(1, 7)

Definition at line 98 of file magician.h.

#define EGPIO_MAGICIAN_BL_POWER2   MAGICIAN_EGPIO(2, 4)

Definition at line 103 of file magician.h.

#define EGPIO_MAGICIAN_BOARD_ID0   MAGICIAN_EGPIO(5, 0)

Definition at line 112 of file magician.h.

#define EGPIO_MAGICIAN_BOARD_ID1   MAGICIAN_EGPIO(5, 1)

Definition at line 113 of file magician.h.

#define EGPIO_MAGICIAN_BOARD_ID2   MAGICIAN_EGPIO(5, 2)

Definition at line 114 of file magician.h.

#define EGPIO_MAGICIAN_BQ24022_ISET2   MAGICIAN_EGPIO(2, 5)

Definition at line 104 of file magician.h.

#define EGPIO_MAGICIAN_CABLE_STATE_AC   MAGICIAN_EGPIO(4, 0)

Definition at line 109 of file magician.h.

#define EGPIO_MAGICIAN_CABLE_STATE_USB   MAGICIAN_EGPIO(4, 1)

Definition at line 110 of file magician.h.

#define EGPIO_MAGICIAN_CARKIT_MIC   MAGICIAN_EGPIO(2, 1)

Definition at line 100 of file magician.h.

#define EGPIO_MAGICIAN_CODEC_POWER   MAGICIAN_EGPIO(1, 6)

Definition at line 97 of file magician.h.

#define EGPIO_MAGICIAN_CODEC_RESET   MAGICIAN_EGPIO(1, 5)

Definition at line 96 of file magician.h.

#define EGPIO_MAGICIAN_EP_INSERT   MAGICIAN_EGPIO(6, 1)

Definition at line 118 of file magician.h.

#define EGPIO_MAGICIAN_EP_POWER   MAGICIAN_EGPIO(1, 1)

Definition at line 92 of file magician.h.

#define EGPIO_MAGICIAN_FLASH_VPP   MAGICIAN_EGPIO(2, 3)

Definition at line 102 of file magician.h.

#define EGPIO_MAGICIAN_GSM_POWER   MAGICIAN_EGPIO(2, 7)

Definition at line 105 of file magician.h.

#define EGPIO_MAGICIAN_GSM_RESET   MAGICIAN_EGPIO(0, 6)

Definition at line 89 of file magician.h.

#define EGPIO_MAGICIAN_IN_SEL0   MAGICIAN_EGPIO(1, 2)

Definition at line 93 of file magician.h.

#define EGPIO_MAGICIAN_IN_SEL1   MAGICIAN_EGPIO(1, 3)

Definition at line 94 of file magician.h.

#define EGPIO_MAGICIAN_LCD_POWER   MAGICIAN_EGPIO(0, 7)

Definition at line 90 of file magician.h.

#define EGPIO_MAGICIAN_LCD_SELECT   MAGICIAN_EGPIO(5, 3)

Definition at line 115 of file magician.h.

#define EGPIO_MAGICIAN_LED_POWER   MAGICIAN_EGPIO(0, 5)

Definition at line 88 of file magician.h.

#define EGPIO_MAGICIAN_MIC_POWER   MAGICIAN_EGPIO(1, 4)

Definition at line 95 of file magician.h.

#define EGPIO_MAGICIAN_nSD_READONLY   MAGICIAN_EGPIO(5, 4)

Definition at line 116 of file magician.h.

#define EGPIO_MAGICIAN_SD_POWER   MAGICIAN_EGPIO(2, 0)

Definition at line 99 of file magician.h.

#define EGPIO_MAGICIAN_SPK_POWER   MAGICIAN_EGPIO(1, 0)

Definition at line 91 of file magician.h.

#define EGPIO_MAGICIAN_TOPPOLY_POWER   MAGICIAN_EGPIO(0, 2)

Definition at line 87 of file magician.h.

#define EGPIO_MAGICIAN_UNKNOWN_WAVEDEV_DLL   MAGICIAN_EGPIO(2, 2)

Definition at line 101 of file magician.h.

#define GPIO0_MAGICIAN_KEY_POWER   0

Definition at line 22 of file magician.h.

#define GPIO100_MAGICIAN_KEY_VOL_UP   100

Definition at line 51 of file magician.h.

#define GPIO101_MAGICIAN_KEY_VOL_DOWN   101

Definition at line 52 of file magician.h.

#define GPIO102_MAGICIAN_KEY_PHONE   102

Definition at line 53 of file magician.h.

#define GPIO103_MAGICIAN_LED_KP   103

Definition at line 54 of file magician.h.

#define GPIO104_MAGICIAN_LCD_POWER_1   104

Definition at line 55 of file magician.h.

#define GPIO105_MAGICIAN_LCD_POWER_2   105

Definition at line 56 of file magician.h.

#define GPIO106_MAGICIAN_LCD_POWER_3   106

Definition at line 57 of file magician.h.

#define GPIO107_MAGICIAN_DS1WM_IRQ   107

Definition at line 58 of file magician.h.

#define GPIO108_MAGICIAN_GSM_READY   108

Definition at line 59 of file magician.h.

#define GPIO10_MAGICIAN_GSM_IRQ   10

Definition at line 24 of file magician.h.

#define GPIO114_MAGICIAN_UNKNOWN   114

Definition at line 60 of file magician.h.

#define GPIO115_MAGICIAN_nPEN_IRQ   115

Definition at line 61 of file magician.h.

#define GPIO116_MAGICIAN_nCAM_EN   116

Definition at line 62 of file magician.h.

#define GPIO119_MAGICIAN_UNKNOWN   119

Definition at line 63 of file magician.h.

#define GPIO11_MAGICIAN_GSM_OUT1   11

Definition at line 25 of file magician.h.

#define GPIO120_MAGICIAN_UNKNOWN   120

Definition at line 64 of file magician.h.

#define GPIO13_MAGICIAN_CPLD_IRQ   13

Definition at line 26 of file magician.h.

#define GPIO18_MAGICIAN_UNKNOWN   18

Definition at line 27 of file magician.h.

#define GPIO22_MAGICIAN_VIBRA_EN   22

Definition at line 28 of file magician.h.

#define GPIO26_MAGICIAN_GSM_POWER   26

Definition at line 29 of file magician.h.

#define GPIO27_MAGICIAN_USBC_PUEN   27

Definition at line 30 of file magician.h.

#define GPIO30_MAGICIAN_BQ24022_nCHARGE_EN   30

Definition at line 31 of file magician.h.

#define GPIO37_MAGICIAN_KEY_HANGUP   37

Definition at line 32 of file magician.h.

#define GPIO38_MAGICIAN_KEY_CONTACTS   38

Definition at line 33 of file magician.h.

#define GPIO40_MAGICIAN_GSM_OUT2   40

Definition at line 34 of file magician.h.

#define GPIO48_MAGICIAN_UNKNOWN   48

Definition at line 35 of file magician.h.

#define GPIO56_MAGICIAN_UNKNOWN   56

Definition at line 36 of file magician.h.

#define GPIO57_MAGICIAN_CAM_RESET   57

Definition at line 37 of file magician.h.

#define GPIO75_MAGICIAN_SAMSUNG_POWER   75

Definition at line 38 of file magician.h.

#define GPIO83_MAGICIAN_nIR_EN   83

Definition at line 39 of file magician.h.

#define GPIO86_MAGICIAN_GSM_RESET   86

Definition at line 40 of file magician.h.

#define GPIO87_MAGICIAN_GSM_SELECT   87

Definition at line 41 of file magician.h.

#define GPIO90_MAGICIAN_KEY_CALENDAR   90

Definition at line 42 of file magician.h.

#define GPIO91_MAGICIAN_KEY_CAMERA   91

Definition at line 43 of file magician.h.

#define GPIO93_MAGICIAN_KEY_UP   93

Definition at line 44 of file magician.h.

#define GPIO94_MAGICIAN_KEY_DOWN   94

Definition at line 45 of file magician.h.

#define GPIO95_MAGICIAN_KEY_LEFT   95

Definition at line 46 of file magician.h.

#define GPIO96_MAGICIAN_KEY_RIGHT   96

Definition at line 47 of file magician.h.

#define GPIO97_MAGICIAN_KEY_ENTER   97

Definition at line 48 of file magician.h.

#define GPIO98_MAGICIAN_KEY_RECORD   98

Definition at line 49 of file magician.h.

#define GPIO99_MAGICIAN_HEADPHONE_IN   99

Definition at line 50 of file magician.h.

#define GPIO9_MAGICIAN_UNKNOWN   9

Definition at line 23 of file magician.h.

#define IRQ_MAGICIAN_BT   (IRQ_BOARD_START + 2)

Definition at line 72 of file magician.h.

#define IRQ_MAGICIAN_EP   (IRQ_BOARD_START + 1)

Definition at line 71 of file magician.h.

#define IRQ_MAGICIAN_SD   (IRQ_BOARD_START + 0)

Definition at line 70 of file magician.h.

#define IRQ_MAGICIAN_VBUS   (IRQ_BOARD_START + 3)

Definition at line 73 of file magician.h.

#define MAGICIAN_EGPIO (   reg,
  bit 
)    (MAGICIAN_EGPIO_BASE + 8*reg + bit)

Definition at line 82 of file magician.h.

#define MAGICIAN_EGPIO_BASE   PXA_NR_BUILTIN_GPIO

Definition at line 81 of file magician.h.

#define MAGICIAN_NR_IRQS   (IRQ_BOARD_START + 8)

Definition at line 75 of file magician.h.