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

Go to the source code of this file.

Macros

#define COLLIE_SCOOP_GPIO_BASE   (GPIO_MAX + 1)
 
#define COLLIE_GPIO_CHARGE_ON   (COLLIE_SCOOP_GPIO_BASE + 0)
 
#define COLLIE_SCP_DIAG_BOOT1   SCOOP_GPCR_PA12
 
#define COLLIE_SCP_DIAG_BOOT2   SCOOP_GPCR_PA13
 
#define COLLIE_SCP_MUTE_L   SCOOP_GPCR_PA14
 
#define COLLIE_SCP_MUTE_R   SCOOP_GPCR_PA15
 
#define COLLIE_SCP_5VON   SCOOP_GPCR_PA16
 
#define COLLIE_SCP_AMP_ON   SCOOP_GPCR_PA17
 
#define COLLIE_GPIO_VPEN   (COLLIE_SCOOP_GPIO_BASE + 7)
 
#define COLLIE_SCP_LB_VOL_CHG   SCOOP_GPCR_PA19
 
#define COLLIE_SCOOP_IO_DIR
 
#define COLLIE_SCOOP_IO_OUT   (COLLIE_SCP_MUTE_L | COLLIE_SCP_MUTE_R)
 
#define COLLIE_GPIO_ON_KEY   (0)
 
#define COLLIE_GPIO_AC_IN   (1)
 
#define COLLIE_GPIO_SDIO_INT   (11)
 
#define COLLIE_GPIO_CF_IRQ   (14)
 
#define COLLIE_GPIO_nREMOCON_INT   (15)
 
#define COLLIE_GPIO_UCB1x00_RESET   (16)
 
#define COLLIE_GPIO_nMIC_ON   (17)
 
#define COLLIE_GPIO_nREMOCON_ON   (18)
 
#define COLLIE_GPIO_CO   (20)
 
#define COLLIE_GPIO_MCP_CLK   (21)
 
#define COLLIE_GPIO_CF_CD   (22)
 
#define COLLIE_GPIO_UCB1x00_IRQ   (23)
 
#define COLLIE_GPIO_WAKEUP   (24)
 
#define COLLIE_GPIO_GA_INT   (25)
 
#define COLLIE_GPIO_MAIN_BAT_LOW   (26)
 
#define _COLLIE_GPIO_ON_KEY   GPIO_GPIO(0)
 
#define _COLLIE_GPIO_AC_IN   GPIO_GPIO(1)
 
#define _COLLIE_GPIO_nREMOCON_INT   GPIO_GPIO(15)
 
#define _COLLIE_GPIO_UCB1x00_RESET   GPIO_GPIO(16)
 
#define _COLLIE_GPIO_nMIC_ON   GPIO_GPIO(17)
 
#define _COLLIE_GPIO_nREMOCON_ON   GPIO_GPIO(18)
 
#define _COLLIE_GPIO_CO   GPIO_GPIO(20)
 
#define _COLLIE_GPIO_WAKEUP   GPIO_GPIO(24)
 
#define COLLIE_IRQ_GPIO_ON_KEY   IRQ_GPIO0
 
#define COLLIE_IRQ_GPIO_AC_IN   IRQ_GPIO1
 
#define COLLIE_IRQ_GPIO_SDIO_IRQ   IRQ_GPIO11
 
#define COLLIE_IRQ_GPIO_CF_IRQ   IRQ_GPIO14
 
#define COLLIE_IRQ_GPIO_nREMOCON_INT   IRQ_GPIO15
 
#define COLLIE_IRQ_GPIO_CO   IRQ_GPIO20
 
#define COLLIE_IRQ_GPIO_CF_CD   IRQ_GPIO22
 
#define COLLIE_IRQ_GPIO_UCB1x00_IRQ   IRQ_GPIO23
 
#define COLLIE_IRQ_GPIO_WAKEUP   IRQ_GPIO24
 
#define COLLIE_IRQ_GPIO_GA_INT   IRQ_GPIO25
 
#define COLLIE_IRQ_GPIO_MAIN_BAT_LOW   IRQ_GPIO26
 
#define COLLIE_TC35143_GPIO_BASE   (GPIO_MAX + 13)
 
#define COLLIE_TC35143_GPIO_VERSION0   UCB_IO_0
 
#define COLLIE_TC35143_GPIO_TBL_CHK   UCB_IO_1
 
#define COLLIE_TC35143_GPIO_VPEN_ON   UCB_IO_2
 
#define COLLIE_TC35143_GPIO_IR_ON   UCB_IO_3
 
#define COLLIE_TC35143_GPIO_AMP_ON   UCB_IO_4
 
#define COLLIE_TC35143_GPIO_VERSION1   UCB_IO_5
 
#define COLLIE_TC35143_GPIO_FS8KLPF   UCB_IO_5
 
#define COLLIE_TC35143_GPIO_BUZZER_BIAS   UCB_IO_6
 
#define COLLIE_GPIO_MBAT_ON   (COLLIE_TC35143_GPIO_BASE + 7)
 
#define COLLIE_GPIO_BBAT_ON   (COLLIE_TC35143_GPIO_BASE + 8)
 
#define COLLIE_GPIO_TMP_ON   (COLLIE_TC35143_GPIO_BASE + 9)
 
#define COLLIE_TC35143_GPIO_IN   (UCB_IO_0 | UCB_IO_2 | UCB_IO_5)
 
#define COLLIE_TC35143_GPIO_OUT
 

Functions

void locomolcd_power (int on)
 

Macro Definition Documentation

#define _COLLIE_GPIO_AC_IN   GPIO_GPIO(1)

Definition at line 55 of file collie.h.

#define _COLLIE_GPIO_CO   GPIO_GPIO(20)

Definition at line 60 of file collie.h.

#define _COLLIE_GPIO_nMIC_ON   GPIO_GPIO(17)

Definition at line 58 of file collie.h.

#define _COLLIE_GPIO_nREMOCON_INT   GPIO_GPIO(15)

Definition at line 56 of file collie.h.

#define _COLLIE_GPIO_nREMOCON_ON   GPIO_GPIO(18)

Definition at line 59 of file collie.h.

#define _COLLIE_GPIO_ON_KEY   GPIO_GPIO(0)

Definition at line 54 of file collie.h.

#define _COLLIE_GPIO_UCB1x00_RESET   GPIO_GPIO(16)

Definition at line 57 of file collie.h.

#define _COLLIE_GPIO_WAKEUP   GPIO_GPIO(24)

Definition at line 61 of file collie.h.

#define COLLIE_GPIO_AC_IN   (1)

Definition at line 37 of file collie.h.

#define COLLIE_GPIO_BBAT_ON   (COLLIE_TC35143_GPIO_BASE + 8)

Definition at line 87 of file collie.h.

#define COLLIE_GPIO_CF_CD   (22)

Definition at line 46 of file collie.h.

#define COLLIE_GPIO_CF_IRQ   (14)

Definition at line 39 of file collie.h.

#define COLLIE_GPIO_CHARGE_ON   (COLLIE_SCOOP_GPIO_BASE + 0)

Definition at line 19 of file collie.h.

#define COLLIE_GPIO_CO   (20)

Definition at line 44 of file collie.h.

#define COLLIE_GPIO_GA_INT   (25)

Definition at line 49 of file collie.h.

#define COLLIE_GPIO_MAIN_BAT_LOW   (26)

Definition at line 50 of file collie.h.

#define COLLIE_GPIO_MBAT_ON   (COLLIE_TC35143_GPIO_BASE + 7)

Definition at line 86 of file collie.h.

#define COLLIE_GPIO_MCP_CLK   (21)

Definition at line 45 of file collie.h.

#define COLLIE_GPIO_nMIC_ON   (17)

Definition at line 42 of file collie.h.

#define COLLIE_GPIO_nREMOCON_INT   (15)

Definition at line 40 of file collie.h.

#define COLLIE_GPIO_nREMOCON_ON   (18)

Definition at line 43 of file collie.h.

#define COLLIE_GPIO_ON_KEY   (0)

Definition at line 36 of file collie.h.

#define COLLIE_GPIO_SDIO_INT   (11)

Definition at line 38 of file collie.h.

#define COLLIE_GPIO_TMP_ON   (COLLIE_TC35143_GPIO_BASE + 9)

Definition at line 88 of file collie.h.

#define COLLIE_GPIO_UCB1x00_IRQ   (23)

Definition at line 47 of file collie.h.

#define COLLIE_GPIO_UCB1x00_RESET   (16)

Definition at line 41 of file collie.h.

#define COLLIE_GPIO_VPEN   (COLLIE_SCOOP_GPIO_BASE + 7)

Definition at line 26 of file collie.h.

#define COLLIE_GPIO_WAKEUP   (24)

Definition at line 48 of file collie.h.

#define COLLIE_IRQ_GPIO_AC_IN   IRQ_GPIO1

Definition at line 65 of file collie.h.

#define COLLIE_IRQ_GPIO_CF_CD   IRQ_GPIO22

Definition at line 70 of file collie.h.

#define COLLIE_IRQ_GPIO_CF_IRQ   IRQ_GPIO14

Definition at line 67 of file collie.h.

#define COLLIE_IRQ_GPIO_CO   IRQ_GPIO20

Definition at line 69 of file collie.h.

#define COLLIE_IRQ_GPIO_GA_INT   IRQ_GPIO25

Definition at line 73 of file collie.h.

#define COLLIE_IRQ_GPIO_MAIN_BAT_LOW   IRQ_GPIO26

Definition at line 74 of file collie.h.

#define COLLIE_IRQ_GPIO_nREMOCON_INT   IRQ_GPIO15

Definition at line 68 of file collie.h.

#define COLLIE_IRQ_GPIO_ON_KEY   IRQ_GPIO0

Definition at line 64 of file collie.h.

#define COLLIE_IRQ_GPIO_SDIO_IRQ   IRQ_GPIO11

Definition at line 66 of file collie.h.

#define COLLIE_IRQ_GPIO_UCB1x00_IRQ   IRQ_GPIO23

Definition at line 71 of file collie.h.

#define COLLIE_IRQ_GPIO_WAKEUP   IRQ_GPIO24

Definition at line 72 of file collie.h.

#define COLLIE_SCOOP_GPIO_BASE   (GPIO_MAX + 1)

Definition at line 18 of file collie.h.

#define COLLIE_SCOOP_IO_DIR
Value:
COLLIE_SCP_5VON | COLLIE_SCP_AMP_ON | \
COLLIE_SCP_LB_VOL_CHG)

Definition at line 29 of file collie.h.

#define COLLIE_SCOOP_IO_OUT   (COLLIE_SCP_MUTE_L | COLLIE_SCP_MUTE_R)

Definition at line 32 of file collie.h.

#define COLLIE_SCP_5VON   SCOOP_GPCR_PA16

Definition at line 24 of file collie.h.

#define COLLIE_SCP_AMP_ON   SCOOP_GPCR_PA17

Definition at line 25 of file collie.h.

#define COLLIE_SCP_DIAG_BOOT1   SCOOP_GPCR_PA12

Definition at line 20 of file collie.h.

#define COLLIE_SCP_DIAG_BOOT2   SCOOP_GPCR_PA13

Definition at line 21 of file collie.h.

#define COLLIE_SCP_LB_VOL_CHG   SCOOP_GPCR_PA19

Definition at line 27 of file collie.h.

#define COLLIE_SCP_MUTE_L   SCOOP_GPCR_PA14

Definition at line 22 of file collie.h.

#define COLLIE_SCP_MUTE_R   SCOOP_GPCR_PA15

Definition at line 23 of file collie.h.

#define COLLIE_TC35143_GPIO_AMP_ON   UCB_IO_4

Definition at line 82 of file collie.h.

#define COLLIE_TC35143_GPIO_BASE   (GPIO_MAX + 13)

Definition at line 77 of file collie.h.

#define COLLIE_TC35143_GPIO_BUZZER_BIAS   UCB_IO_6

Definition at line 85 of file collie.h.

#define COLLIE_TC35143_GPIO_FS8KLPF   UCB_IO_5

Definition at line 84 of file collie.h.

#define COLLIE_TC35143_GPIO_IN   (UCB_IO_0 | UCB_IO_2 | UCB_IO_5)

Definition at line 89 of file collie.h.

#define COLLIE_TC35143_GPIO_IR_ON   UCB_IO_3

Definition at line 81 of file collie.h.

#define COLLIE_TC35143_GPIO_OUT
Value:

Definition at line 90 of file collie.h.

#define COLLIE_TC35143_GPIO_TBL_CHK   UCB_IO_1

Definition at line 79 of file collie.h.

#define COLLIE_TC35143_GPIO_VERSION0   UCB_IO_0

Definition at line 78 of file collie.h.

#define COLLIE_TC35143_GPIO_VERSION1   UCB_IO_5

Definition at line 83 of file collie.h.

#define COLLIE_TC35143_GPIO_VPEN_ON   UCB_IO_2

Definition at line 80 of file collie.h.

Function Documentation

void locomolcd_power ( int  on)

Definition at line 83 of file locomolcd.c.