Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
poodle.h File Reference

Go to the source code of this file.

Macros

#define POODLE_GPIO_ON_KEY   (0)
 
#define POODLE_GPIO_AC_IN   (1)
 
#define POODLE_GPIO_CO   16
 
#define POODLE_GPIO_TP_INT   (5)
 
#define POODLE_GPIO_TP_CS   (24)
 
#define POODLE_GPIO_WAKEUP   (11) /* change battery */
 
#define POODLE_GPIO_GA_INT   (10)
 
#define POODLE_GPIO_IR_ON   (22)
 
#define POODLE_GPIO_HP_IN   (4)
 
#define POODLE_GPIO_CF_IRQ   (17)
 
#define POODLE_GPIO_CF_CD   (14)
 
#define POODLE_GPIO_CF_STSCHG   (14)
 
#define POODLE_GPIO_SD_PWR   (33)
 
#define POODLE_GPIO_SD_PWR1   (3)
 
#define POODLE_GPIO_nSD_CLK   (6)
 
#define POODLE_GPIO_nSD_WP   (7)
 
#define POODLE_GPIO_nSD_INT   (8)
 
#define POODLE_GPIO_nSD_DETECT   (9)
 
#define POODLE_GPIO_MAIN_BAT_LOW   (13)
 
#define POODLE_GPIO_BAT_COVER   (13)
 
#define POODLE_GPIO_USB_PULLUP   (20)
 
#define POODLE_GPIO_ADC_TEMP_ON   (21)
 
#define POODLE_GPIO_BYPASS_ON   (36)
 
#define POODLE_GPIO_CHRG_ON   (38)
 
#define POODLE_GPIO_CHRG_FULL   (16)
 
#define POODLE_GPIO_DISCHARGE_ON   (42) /* Enable battery discharge */
 
#define POODLE_IRQ_GPIO_ON_KEY   PXA_GPIO_TO_IRQ(0)
 
#define POODLE_IRQ_GPIO_AC_IN   PXA_GPIO_TO_IRQ(1)
 
#define POODLE_IRQ_GPIO_HP_IN   PXA_GPIO_TO_IRQ(4)
 
#define POODLE_IRQ_GPIO_CO   PXA_GPIO_TO_IRQ(16)
 
#define POODLE_IRQ_GPIO_TP_INT   PXA_GPIO_TO_IRQ(5)
 
#define POODLE_IRQ_GPIO_WAKEUP   PXA_GPIO_TO_IRQ(11)
 
#define POODLE_IRQ_GPIO_GA_INT   PXA_GPIO_TO_IRQ(10)
 
#define POODLE_IRQ_GPIO_CF_IRQ   PXA_GPIO_TO_IRQ(17)
 
#define POODLE_IRQ_GPIO_CF_CD   PXA_GPIO_TO_IRQ(14)
 
#define POODLE_IRQ_GPIO_nSD_INT   PXA_GPIO_TO_IRQ(8)
 
#define POODLE_IRQ_GPIO_nSD_DETECT   PXA_GPIO_TO_IRQ(9)
 
#define POODLE_IRQ_GPIO_MAIN_BAT_LOW   PXA_GPIO_TO_IRQ(13)
 
#define POODLE_SCOOP_CHARGE_ON   SCOOP_GPCR_PA11
 
#define POODLE_SCOOP_CP401   SCOOP_GPCR_PA13
 
#define POODLE_SCOOP_VPEN   SCOOP_GPCR_PA18
 
#define POODLE_SCOOP_L_PCLK   SCOOP_GPCR_PA20
 
#define POODLE_SCOOP_L_LCLK   SCOOP_GPCR_PA21
 
#define POODLE_SCOOP_HS_OUT   SCOOP_GPCR_PA22
 
#define POODLE_SCOOP_IO_DIR   ( POODLE_SCOOP_VPEN | POODLE_SCOOP_HS_OUT )
 
#define POODLE_SCOOP_IO_OUT   ( 0 )
 
#define POODLE_SCOOP_GPIO_BASE   (PXA_NR_BUILTIN_GPIO)
 
#define POODLE_GPIO_CHARGE_ON   (POODLE_SCOOP_GPIO_BASE + 0)
 
#define POODLE_GPIO_CP401   (POODLE_SCOOP_GPIO_BASE + 2)
 
#define POODLE_GPIO_VPEN   (POODLE_SCOOP_GPIO_BASE + 7)
 
#define POODLE_GPIO_L_PCLK   (POODLE_SCOOP_GPIO_BASE + 9)
 
#define POODLE_GPIO_L_LCLK   (POODLE_SCOOP_GPIO_BASE + 10)
 
#define POODLE_GPIO_HS_OUT   (POODLE_SCOOP_GPIO_BASE + 11)
 
#define POODLE_LOCOMO_GPIO_AMP_ON   LOCOMO_GPIO(8)
 
#define POODLE_LOCOMO_GPIO_MUTE_L   LOCOMO_GPIO(10)
 
#define POODLE_LOCOMO_GPIO_MUTE_R   LOCOMO_GPIO(11)
 
#define POODLE_LOCOMO_GPIO_232VCC_ON   LOCOMO_GPIO(12)
 
#define POODLE_LOCOMO_GPIO_JK_B   LOCOMO_GPIO(13)
 
#define POODLE_NR_IRQS   (IRQ_BOARD_START + 4) /* 4 for LoCoMo */
 

Variables

struct platform_device poodle_locomo_device
 

Macro Definition Documentation

#define POODLE_GPIO_AC_IN   (1)

Definition at line 23 of file poodle.h.

#define POODLE_GPIO_ADC_TEMP_ON   (21)

Definition at line 43 of file poodle.h.

#define POODLE_GPIO_BAT_COVER   (13)

Definition at line 41 of file poodle.h.

#define POODLE_GPIO_BYPASS_ON   (36)

Definition at line 44 of file poodle.h.

#define POODLE_GPIO_CF_CD   (14)

Definition at line 32 of file poodle.h.

#define POODLE_GPIO_CF_IRQ   (17)

Definition at line 31 of file poodle.h.

#define POODLE_GPIO_CF_STSCHG   (14)

Definition at line 33 of file poodle.h.

#define POODLE_GPIO_CHARGE_ON   (POODLE_SCOOP_GPIO_BASE + 0)

Definition at line 75 of file poodle.h.

#define POODLE_GPIO_CHRG_FULL   (16)

Definition at line 46 of file poodle.h.

#define POODLE_GPIO_CHRG_ON   (38)

Definition at line 45 of file poodle.h.

#define POODLE_GPIO_CO   16

Definition at line 24 of file poodle.h.

#define POODLE_GPIO_CP401   (POODLE_SCOOP_GPIO_BASE + 2)

Definition at line 76 of file poodle.h.

#define POODLE_GPIO_DISCHARGE_ON   (42) /* Enable battery discharge */

Definition at line 47 of file poodle.h.

#define POODLE_GPIO_GA_INT   (10)

Definition at line 28 of file poodle.h.

#define POODLE_GPIO_HP_IN   (4)

Definition at line 30 of file poodle.h.

#define POODLE_GPIO_HS_OUT   (POODLE_SCOOP_GPIO_BASE + 11)

Definition at line 80 of file poodle.h.

#define POODLE_GPIO_IR_ON   (22)

Definition at line 29 of file poodle.h.

#define POODLE_GPIO_L_LCLK   (POODLE_SCOOP_GPIO_BASE + 10)

Definition at line 79 of file poodle.h.

#define POODLE_GPIO_L_PCLK   (POODLE_SCOOP_GPIO_BASE + 9)

Definition at line 78 of file poodle.h.

#define POODLE_GPIO_MAIN_BAT_LOW   (13)

Definition at line 40 of file poodle.h.

#define POODLE_GPIO_nSD_CLK   (6)

Definition at line 36 of file poodle.h.

#define POODLE_GPIO_nSD_DETECT   (9)

Definition at line 39 of file poodle.h.

#define POODLE_GPIO_nSD_INT   (8)

Definition at line 38 of file poodle.h.

#define POODLE_GPIO_nSD_WP   (7)

Definition at line 37 of file poodle.h.

#define POODLE_GPIO_ON_KEY   (0)

Definition at line 22 of file poodle.h.

#define POODLE_GPIO_SD_PWR   (33)

Definition at line 34 of file poodle.h.

#define POODLE_GPIO_SD_PWR1   (3)

Definition at line 35 of file poodle.h.

#define POODLE_GPIO_TP_CS   (24)

Definition at line 26 of file poodle.h.

#define POODLE_GPIO_TP_INT   (5)

Definition at line 25 of file poodle.h.

#define POODLE_GPIO_USB_PULLUP   (20)

Definition at line 42 of file poodle.h.

#define POODLE_GPIO_VPEN   (POODLE_SCOOP_GPIO_BASE + 7)

Definition at line 77 of file poodle.h.

#define POODLE_GPIO_WAKEUP   (11) /* change battery */

Definition at line 27 of file poodle.h.

#define POODLE_IRQ_GPIO_AC_IN   PXA_GPIO_TO_IRQ(1)

Definition at line 51 of file poodle.h.

#define POODLE_IRQ_GPIO_CF_CD   PXA_GPIO_TO_IRQ(14)

Definition at line 58 of file poodle.h.

#define POODLE_IRQ_GPIO_CF_IRQ   PXA_GPIO_TO_IRQ(17)

Definition at line 57 of file poodle.h.

#define POODLE_IRQ_GPIO_CO   PXA_GPIO_TO_IRQ(16)

Definition at line 53 of file poodle.h.

#define POODLE_IRQ_GPIO_GA_INT   PXA_GPIO_TO_IRQ(10)

Definition at line 56 of file poodle.h.

#define POODLE_IRQ_GPIO_HP_IN   PXA_GPIO_TO_IRQ(4)

Definition at line 52 of file poodle.h.

#define POODLE_IRQ_GPIO_MAIN_BAT_LOW   PXA_GPIO_TO_IRQ(13)

Definition at line 61 of file poodle.h.

#define POODLE_IRQ_GPIO_nSD_DETECT   PXA_GPIO_TO_IRQ(9)

Definition at line 60 of file poodle.h.

#define POODLE_IRQ_GPIO_nSD_INT   PXA_GPIO_TO_IRQ(8)

Definition at line 59 of file poodle.h.

#define POODLE_IRQ_GPIO_ON_KEY   PXA_GPIO_TO_IRQ(0)

Definition at line 50 of file poodle.h.

#define POODLE_IRQ_GPIO_TP_INT   PXA_GPIO_TO_IRQ(5)

Definition at line 54 of file poodle.h.

#define POODLE_IRQ_GPIO_WAKEUP   PXA_GPIO_TO_IRQ(11)

Definition at line 55 of file poodle.h.

#define POODLE_LOCOMO_GPIO_232VCC_ON   LOCOMO_GPIO(12)

Definition at line 85 of file poodle.h.

#define POODLE_LOCOMO_GPIO_AMP_ON   LOCOMO_GPIO(8)

Definition at line 82 of file poodle.h.

#define POODLE_LOCOMO_GPIO_JK_B   LOCOMO_GPIO(13)

Definition at line 86 of file poodle.h.

#define POODLE_LOCOMO_GPIO_MUTE_L   LOCOMO_GPIO(10)

Definition at line 83 of file poodle.h.

#define POODLE_LOCOMO_GPIO_MUTE_R   LOCOMO_GPIO(11)

Definition at line 84 of file poodle.h.

#define POODLE_NR_IRQS   (IRQ_BOARD_START + 4) /* 4 for LoCoMo */

Definition at line 88 of file poodle.h.

#define POODLE_SCOOP_CHARGE_ON   SCOOP_GPCR_PA11

Definition at line 64 of file poodle.h.

#define POODLE_SCOOP_CP401   SCOOP_GPCR_PA13

Definition at line 65 of file poodle.h.

#define POODLE_SCOOP_GPIO_BASE   (PXA_NR_BUILTIN_GPIO)

Definition at line 74 of file poodle.h.

#define POODLE_SCOOP_HS_OUT   SCOOP_GPCR_PA22

Definition at line 69 of file poodle.h.

#define POODLE_SCOOP_IO_DIR   ( POODLE_SCOOP_VPEN | POODLE_SCOOP_HS_OUT )

Definition at line 71 of file poodle.h.

#define POODLE_SCOOP_IO_OUT   ( 0 )

Definition at line 72 of file poodle.h.

#define POODLE_SCOOP_L_LCLK   SCOOP_GPCR_PA21

Definition at line 68 of file poodle.h.

#define POODLE_SCOOP_L_PCLK   SCOOP_GPCR_PA20

Definition at line 67 of file poodle.h.

#define POODLE_SCOOP_VPEN   SCOOP_GPCR_PA18

Definition at line 66 of file poodle.h.

Variable Documentation

struct platform_device poodle_locomo_device

Definition at line 183 of file poodle.c.