sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / himalaya_asic.h
blob6c5a7cf12b219e8d894fddf0b4b5b2f6be9ea359
1 /*
3 * Definitions for HTC Himalaya
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_HIMALAYA_ASIC_H_
18 #define _INCLUDE_HIMALAYA_ASIC_H_
20 #include <asm/arch-sa1100/h3600.h>
22 /* The H3900 shares a lot of code in common with the H3800 */
23 #include <asm/hardware/ipaq-asic2.h>
24 #include <asm/hardware/ipaq-asic3.h>
26 /****************************************************/
28 * This ASIC is at CS3# + 0x01800000
30 #if defined(CONFIG_MACH_HIMALAYA)
32 /* these gpio's are on GPIO_A */
33 #define GPIOA_RS232_ON (1 << 1) /* Turn on power to the RS232 chip ? */
34 #define GPIOA_USB_ON_N (1 << 3) /* Turn on power to USB? */
36 /* these gpio's are on GPIO_B */
38 #define GPIOB_GSM_POWER (1 << 0) /* Uncertain. Maybe bug in bootloader? */
39 #define GPIOB_GSM_RESET (1 << 1) /* Uncertain. Maybe bug in bootloader? */
40 //#define GPIOB_LCD_5V_ON (1 << 3) /* Enables LCD_5V, inferred from H3900 */
41 //#define GPIOB_CH_TIMER (1 << 4) /* Charger */
42 #define GPIOB_LCD_5V_ON (1 << 5) /* Enables LCD_5V */
43 #define GPIOB_LCD_ON (1 << 6) /* Enables LCD_3V */
44 //#define GPIOB_LCD_PCI (1 << 7) /* Connects to PDWN on LCD controller */
45 //#define GPIOB_LCD_ON (1 << 7) /* Enables LCD_3V inferred from H3900*/
46 #define GPIOB_LCD_NV_ON (1 << 8) /* Inferred from H3900 naming */
47 //#define GPIOB_TEST_POINT_170 (1 << 8)
48 #define GPIOB_CIR_CTL_PWR_ON (1 << 9)
49 #define GPIOB_AUD_RESET (1 << 10)
50 #define GPIOB_LCD_9V_ON (1 << 11) /* Inferred from H3900 naming */
51 //#define GPIOB_BT_PWR_ON (1 << 11) /* Bluetooth power on */
52 #define GPIOB_SPK_ON (1 << 12) /* Built-in speaker on */
53 #define GPIOB_FL_PWR_ON (1 << 13) /* Frontlight power on */
54 #define GPIOB_VIBRATE_ON (1 << 14) /* Vibrator */
55 #define GPIOB_TEST_POINT_123 (1 << 15)
57 #define ASIC3GPIO_INIT_DIR 0xFFFF // initial status, sleep direction
58 #define ASIC3GPIO_INIT_OUT 0x8200 // Strain 2001.12.15
59 #define ASIC3GPIO_BATFALT_OUT 0x8001
60 #define ASIC3GPIO_SLEEP_OUT 0x8001
61 #define ASIC3CLOCK_INIT 0x0
63 #define GPIOC_BOARDID0 (1 << 3)
64 #define GPIOC_BOARDID1 (1 << 4)
65 #define GPIOC_BOARDID2 (1 << 5)
67 /* this little GPIO went to market^H^H^H^H^H^H^H^H^H^H is on GPIO_D on the h1910... */
68 #define GPIOB_H1900_IR_ON_N (1 << 8)
70 #endif
72 #endif // _INCLUDE_HIMALAYA_ASIC_H_