sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / h1900-asic.h
blob28e2f39cc90eea6b0a07d32a84fc0afbbb2313c5
1 /*
3 * Definitions for H1900 Handheld Computer
5 * Copyright 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.
13 #ifndef _INCLUDE_H1900_ASIC_H_
14 #define _INCLUDE_H1900_ASIC_H_
16 #ifdef CONFIG_ARCH_H1900
18 #include <asm/hardware/ipaq-asic3.h>
20 #define GPIO3_H1900_SPEAKER_POWER (1 << 3)
21 #define GPIO3_H1900_BACKLIGHT_POWER (1 << 4)
22 #define GPIO3_H1900_LCD_5V (1 << 5)
23 #define GPIO3_H1900_LCD_3V (1 << 6)
24 #define GPIO3_H1900_CODEC_AUDIO_POWER (1 << 7)
25 #define GPIO3_H1900_LCD_PCI (1 << 8)
27 #define GPIO4_H1900_USB (1 << 0)
28 #define GPIO4_H1900_BUTTON_RECORD (1 << 2)
29 #define GPIO4_H1900_BUTTON_HOME (1 << 3)
30 #define GPIO4_H1900_BUTTON_MAIL (1 << 4)
31 #define GPIO4_H1900_BUTTON_CONTACTS (1 << 5)
32 #define GPIO4_H1900_BUTTON_CALENDAR (1 << 6)
33 #define GPIO4_H1900_RS232_POWER (1 << 8)
34 #define GPIO4_H1900_MUX_SEL0 (1 << 9)
35 #define GPIO4_H1900_MUX_SEL1 (1 << 10)
37 /* MUX_SEL [0-1]: */
38 /* 0 -> VS_MBAT */
39 /* 1 -> IS_MBAT */
40 /* 2 -> BACKUP_BAT */
41 /* 3 -> TEMP_AD */
43 /* ASIC3 IRQs */
44 #define H1900_RECORD_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE + 2)
45 #define H1900_HOME_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE + 3)
46 #define H1900_MAIL_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE + 4)
47 #define H1900_CONTACTS_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE + 5)
48 #define H1900_CALENDAR_BTN_IRQ (ASIC3_GPIOD_IRQ_BASE + 6)
50 #define H1900_RED_LED 1
51 #define H1900_GREEN_LED 2
52 #define H1900_YELLOW_LED 3
54 #endif // CONFIG_ARCH_H1900
56 #endif // _INCLUDE_H1900_ASIC_H_