sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / htcsable-asic.h
blob84d584bb68a121b1f37236892c5907515f2abf6a
1 /*
2 * include/asm/arm/arch-pxa/htcsable-asic.h
4 * Authors: Giuseppe Zompatori <giuseppe_zompatori@yahoo.it>
6 * based on previews work, see below:
7 *
8 * include/asm/arm/arch-pxa/hx4700-asic.h
9 * Copyright (c) 2004 SDG Systems, LLC
13 #ifndef _HTCSABLE_ASIC_H_
14 #define _HTCSABLE_ASIC_H_
16 #include <asm/hardware/ipaq-asic3.h>
18 /* ASIC3 */
20 #define HTCSABLE_ASIC3_GPIO_PHYS PXA_CS4_PHYS
21 #define HTCSABLE_ASIC3_MMC_PHYS PXA_CS3_PHYS
23 /* TODO: some information is missing here :) */
25 /* ASIC3 GPIO A bank */
27 #define GPIOA_I2C_PWR_ON 0 /* Output */ /* lkcl: guess!! */
28 #define GPIOA_CODEC_ON 1 /* Output */ /* ak4641 codec on */
29 #define GPIOA_HEADPHONE_PWR_ON 3 /* Output */ /* headphone power-on? */
30 #define GPIOA_SPKMIC_PWR2_ON 6 /* Output */ /* speaker power-on */
31 #define GPIOA_USB_PUEN 7 /* Output */
32 #define GPIOA_LCD_PWR_5 15 /* Output */
34 /* ASIC3 GPIO B bank */
36 #define GPIOB_GSM_DCD 0 /* Input */ /* phone-related: not sure of name or purpose */
37 #define GPIOB_BB_READY 2 /* Input */ /* phone-related: not sure of name or purpose */
38 #define GPIOB_ACX_IRQ_N 5 /* Input */ /* acx wifi irq ? */
39 #define GPIOB_USB_DETECT 6 /* Input */
40 #define GPIOB_HEADPHONE 9 /* Input */ /* lkcl: guess!!! */
41 #define GPIOB_CODEC_RESET 10 /* Output */ /* think this is right... */
42 #define GPIOB_ACX_PWR_1 15 /* Output */ /* acx wifi power 1 */
44 /* ASIC3 GPIO C bank */
46 #define GPIOC_BT_RESET 7 /* Output */
47 #define GPIOC_PHONE_4 12 /* Output */ /* phone-related: not sure of name or purpose */
48 #define GPIOC_ACX_RESET 8 /* Output */ /* acx wifi reset */
49 #define GPIOC_PHONE_5 13 /* Output */ /* phone-related: not sure of name or purpose */
50 #define GPIOC_LCD_PWR_1 9 /* Output */
51 #define GPIOC_LCD_PWR_2 10 /* Output */
52 #define GPIOC_ACX_PWR_3 15 /* Output */ /* acx wifi power 3 */
55 /* ASIC3 GPIO D bank */
57 #define GPIOD_BT_PWR_ON 6 /* Output */
58 #define GPIOD_PHONE_1 4 /* Output */ /* phone-related: not sure of name or purpose */
59 #define GPIOD_ACX_PWR_2 3 /* Output */ /* acx wifi power 2 */
60 #define GPIOD_PHONE_6 5 /* Output */ /* phone-related: not sure of name or purpose */
61 #define GPIOD_PHONE_2 8 /* Output */ /* phone-related: not sure of name or purpose */
62 #define GPIOD_VIBRATE 10 /* Output */ /* vibrate */
63 #define GPIOD_LCD_BACKLIGHT 12 /* Output */
65 #endif /* _HTCSABLE_ASIC_H_ */
67 extern struct platform_device htcsable_asic3;