3 * Definitions for HTC Blueangel
5 * Copyright 2004 Xanadux.org
7 * Use consistent with the GNU GPL is permitted,
8 * provided that this copyright notice is
9 * preserved in its entirety in all copies and derived works.
11 * Author: w4xy@xanadux.org
13 * Heavily based on h3900_asic.h
17 #ifndef _INCLUDE_BLUEANGEL_ASIC_H_
18 #define _INCLUDE_BLUEANGEL_ASIC_H_
20 #include <asm/hardware/ipaq-asic3.h>
22 /****************************************************/
24 * This ASIC is at CS3# + 0x01800000
27 #define GPIOA_BT_PWR1_ON (1 << 0)
28 #define GPIOA_MIC_PWR_ON (1 << 7)
29 #define GPIOA_WLAN_PWR1 (1 << 3)
30 #define GPIOA_WLAN_RESET (1 << 4)
31 #define GPIOA_WLAN_PWR2 (1 << 5)
33 #define GPIOB_LCD_PWR1_ON (1 << 3)
34 #define GPIOB_LCD_PWR2_ON (1 << 4)
35 #define GPIOB_LCD_PWR3_ON (1 << 5)
36 #define GPIOB_FL_PWR_ON (1 << 6) /* Frontlight power on */
37 #define GPIOB_PHONEL_PWR_ON (1 << 7)
38 #define GPIOB_VIBRA_PWR_ON (1 << 9)
39 #define GPIOB_OWM_EN (1 << 10)
40 #define GPIOB_BT_PWR2_ON (1 << 12)
41 #define GPIOB_WLAN_PWR3 (1 << 13)
42 #define GPIOB_SPK_PWR_ON (1 << 15)
44 #define GPIOC_USB_PULLUP_N (1 << 10)
45 #define GPIOC_HEADPHONE_IN (1 << 12)
46 #define GPIOC_KEYBL_PWR_ON (1 << 13)
47 #define GPIOC_LCD_PWR4_ON (1 << 14)
48 #define GPIOC_LCD_PWR5_ON (1 << 15)
50 #define GPIOD_QKBD_IRQ 4
51 #define GPIOD_AC_CHARGER_N 3
52 #define GPIOD_OWM_EN (1 << 10)
54 #define BLUEANGEL_WWW_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+5)
55 #define BLUEANGEL_OK_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+7)
56 #define BLUEANGEL_WINDOWS_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+8)
57 #define BLUEANGEL_RECORD_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+9)
58 #define BLUEANGEL_CAMERA_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+10)
59 #define BLUEANGEL_VOL_UP_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+11)
60 #define BLUEANGEL_VOL_DOWN_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+12)
61 #define BLUEANGEL_MAIL_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+15)
63 #define BLUEANGEL_WWW_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+5)
64 #define BLUEANGEL_OK_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+7)
65 #define BLUEANGEL_WINDOWS_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+8)
66 #define BLUEANGEL_RECORD_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+9)
67 #define BLUEANGEL_CAMERA_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+10)
68 #define BLUEANGEL_VOL_UP_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+11)
69 #define BLUEANGEL_VOL_DOWN_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+12)
70 #define BLUEANGEL_MAIL_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE+15)
72 #endif // _INCLUDE_BLUEANGEL_ASIC_H_