3 * Definitions for H3900 Handheld Computer
5 * Copyright 2003 Hewlett-Packard Company
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 * HEWLETT-PACKARD COMPANY MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
12 * AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS
13 * FITNESS FOR ANY PARTICULAR PURPOSE.
15 * Author: Andrew Christian
19 #ifndef _INCLUDE_H3900_ASIC_H_
20 #define _INCLUDE_H3900_ASIC_H_
22 #include <asm/arch-sa1100/h3600.h>
24 /* The H3900 shares a lot of code in common with the H3800 */
25 #include <asm/hardware/ipaq-asic2.h>
26 #include <asm/hardware/ipaq-asic3.h>
28 /****************************************************/
29 /* H3900, ASIC #3, replaces ASIC #1
30 * This ASIC is at CS5# + 0x00800000
32 #ifdef CONFIG_MACH_H3900
34 /* these gpio's are on GPIO_B */
36 #define GPIO3_IR_ON_N (1 << 0) /* Apply power to the IR Module */
37 #define GPIO3_LCD_9V_ON (1 << 1)
38 #define GPIO3_RS232_ON (1 << 2) /* Turn on power to the RS232 chip ? */
39 #define GPIO3_LCD_NV_ON (1 << 3)
40 #define GPIO3_CH_TIMER (1 << 4) /* Charger */
41 #define GPIO3_LCD_5V_ON (1 << 5) /* Enables LCD_5V */
42 #define GPIO3_LCD_ON (1 << 6) /* Enables LCD_3V */
43 #define GPIO3_LCD_PCI (1 << 7) /* Connects to PDWN on LCD controller */
44 #define GPIO3_TEST_POINT_170 (1 << 8)
45 #define GPIO3_CIR_CTL_PWR_ON (1 << 9)
46 #define GPIO3_AUD_RESET (1 << 10)
47 #define GPIO3_BT_PWR_ON (1 << 11) /* Bluetooth power on */
48 #define GPIO3_SPK_ON (1 << 12) /* Built-in speaker on */
49 #define GPIO3_FL_PWR_ON (1 << 13) /* Frontlight power on */
50 #define GPIO3_AUD_PWR_ON (1 << 14) /* All audio power */
51 #define GPIO3_TEST_POINT_123 (1 << 15)
53 #define ASIC3GPIO_INIT_DIR 0xFFFF // initial status, sleep direction
54 #define ASIC3GPIO_INIT_OUT 0x8200 // Strain 2001.12.15
55 #define ASIC3GPIO_BATFALT_OUT 0x8001
56 #define ASIC3GPIO_SLEEP_OUT 0x8001
57 #define ASIC3CLOCK_INIT 0x0
59 #endif // CONFIG_MACH_H3900
61 #include <linux/device.h>
63 extern struct platform_device h3900_asic2
;
64 extern struct platform_device h3900_asic3
;
66 #endif // _INCLUDE_H3900_ASIC_H_