sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / h5400-asic.h
blob1d8664e5254519a5719249f22c563e431092c2e3
1 /*
3 * Definitions for HP iPAQ3 Handheld Computer
5 * Copyright 2002 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 * COMPAQ COMPUTER CORPORATION 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: Jamey Hicks
19 #ifndef _INCLUDE_H5400_ASIC_H_
20 #define _INCLUDE_H5400_ASIC_H_
22 #include <asm/hardware/ipaq-samcop.h>
24 #define SAMCOP_GPIO_GPA_APPBUTTON1 (1 << 0)
25 #define SAMCOP_GPIO_GPA_APPBUTTON2 (1 << 1)
26 #define SAMCOP_GPIO_GPA_APPBUTTON3 (1 << 2)
27 #define SAMCOP_GPIO_GPA_APPBUTTON4 (1 << 3)
28 #define SAMCOP_GPIO_GPA_JOYSTICK1 (1 << 4)
29 #define SAMCOP_GPIO_GPA_JOYSTICK2 (1 << 5)
30 #define SAMCOP_GPIO_GPA_JOYSTICK3 (1 << 6)
31 #define SAMCOP_GPIO_GPA_JOYSTICK4 (1 << 7)
32 #define SAMCOP_GPIO_GPA_JOYSTICK5 (1 << 8)
33 #define SAMCOP_GPIO_GPA_TOGGLEUP_N (1 << 9)
34 #define SAMCOP_GPIO_GPA_TOGGLEDOWN_N (1 << 10)
35 #define SAMCOP_GPIO_GPA_RESET_BUTTON_N (1 << 11)
36 #define SAMCOP_GPIO_GPA_RECORD_N (1 << 12)
37 #define SAMCOP_GPIO_GPA_MCHG_EN (1 << 13)
38 #define SAMCOP_GPIO_GPA_USB_DETECT (1 << 14)
39 #define SAMCOP_GPIO_GPA_ADP_IN_STATUS (1 << 15)
40 #define SAMCOP_GPIO_GPA_SD_DETECT_N (1 << 16)
41 #define SAMCOP_GPIO_GPA_OPT_ON_N (1 << 17)
42 #define SAMCOP_GPIO_GPA_OPT_RESET (1 << 18)
43 #define SAMCOP_GPIO_GPA_UART_CLK (1 << 19)
45 #define SAMCOP_GPIO_GPB_CODEC_POWER_ON (1 << 0)
46 #define SAMCOP_GPIO_GPB_RF_POWER_ON (1 << 1)
47 #define SAMCOP_GPIO_GPB_AUDIO_POWER_ON (1 << 2)
48 #define SAMCOP_GPIO_GPB_WLAN_POWER_ON (1 << 3) /* to 802.11 module */
49 #define SAMCOP_GPIO_GPB_MQ_POWER_ON (1 << 4)
50 #define SAMCOP_GPIO_GPB_BLUETOOTH_3V0_ON (1 << 5)
51 #define SAMCOP_GPIO_GPB_BACKLIGHT_POWER_ON (1 << 6)
52 #define SAMCOP_GPIO_GPB_LCD_EN (1 << 7)
53 #define SAMCOP_GPIO_GPB_CLK16M (1 << 8) /* output, not connected */
54 #define SAMCOP_GPIO_GPB_CLK48M (1 << 9) /* output, not connected */
55 #define SAMCOP_GPIO_GPB_RF_CTS (1 << 10) /* input */
56 #define SAMCOP_GPIO_GPB_RF_RTS (1 << 11) /* output */
57 #define SAMCOP_GPIO_GPB_MDL_WAKE (1 << 12)
58 #define SAMCOP_GPIO_GPB_RESET_P_DN_N
59 #define SAMCOP_GPIO_GPB_HOST_WAKE_STATUS_N
60 #define SAMCOP_GPIO_GPB_MODEM_RESET_STATUS_N
62 #define SAMCOP_GPIO_GPC_FLASH_VPEN (1 << 0) /* unused. */
63 #define SAMCOP_GPIO_GPC_FLASH_WE_N (1 << 1) /* unused ? */
65 #define SAMCOP_GPIO_GPD_FCD_DATA0 (1 << 1)
66 #define SAMCOP_GPIO_GPD_FCD_DATA1 (1 << 3)
67 #define SAMCOP_GPIO_GPD_FCD_DATA2 (1 << 5)
68 #define SAMCOP_GPIO_GPD_FCD_DATA3 (1 << 7)
69 #define SAMCOP_GPIO_GPD_FCD_DATA4 (1 << 9)
70 #define SAMCOP_GPIO_GPD_FCD_DATA5 (1 << 11)
71 #define SAMCOP_GPIO_GPD_FCD_DATA6 (1 << 13)
72 #define SAMCOP_GPIO_GPD_FCD_DATA7 (1 << 15)
74 #define SAMCOP_GPIO_GPE_FCD_RESET (1 << 0)
75 #define SAMCOP_GPIO_GPE_FCD_PCLK (1 << 1)
76 #define SAMCOP_GPIO_GPE_FCD_TPE (1 << 2)
78 #define H5400_SAMCOP_BASE 0x14000000
80 #include <linux/device.h>
82 extern struct platform_device h5400_samcop;
83 extern void (*h5400_set_samcop_gpio_b)(struct device *dev, u32 mask, u32 bits);
84 extern void h5400_pxa_ack_muxed_gpio(unsigned int irq);
86 #endif /* _INCLUDE_H5400_ASIC_H_ */