]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/arm/mach-pxa/include/mach/palmld.h
ALSA: Add missing description of lx6464es to ALSA-Configuration.txt
[mirror_ubuntu-artful-kernel.git] / arch / arm / mach-pxa / include / mach / palmld.h
1 /*
2 * GPIOs and interrupts for Palm LifeDrive Handheld Computer
3 *
4 * Authors: Alex Osborne <ato@meshy.org>
5 * Marek Vasut <marek.vasut@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 */
12
13 #ifndef _INCLUDE_PALMLD_H_
14 #define _INCLUDE_PALMLD_H_
15
16 /** HERE ARE GPIOs **/
17
18 /* GPIOs */
19 #define GPIO_NR_PALMLD_GPIO_RESET 1
20 #define GPIO_NR_PALMLD_POWER_DETECT 4
21 #define GPIO_NR_PALMLD_HOTSYNC_BUTTON_N 10
22 #define GPIO_NR_PALMLD_POWER_SWITCH 12
23 #define GPIO_NR_PALMLD_EARPHONE_DETECT 13
24 #define GPIO_NR_PALMLD_LOCK_SWITCH 15
25
26 /* SD/MMC */
27 #define GPIO_NR_PALMLD_SD_DETECT_N 14
28 #define GPIO_NR_PALMLD_SD_POWER 114
29 #define GPIO_NR_PALMLD_SD_READONLY 116
30
31 /* TOUCHSCREEN */
32 #define GPIO_NR_PALMLD_WM9712_IRQ 27
33
34 /* IRDA */
35 #define GPIO_NR_PALMLD_IR_DISABLE 108
36
37 /* LCD/BACKLIGHT */
38 #define GPIO_NR_PALMLD_BL_POWER 19
39 #define GPIO_NR_PALMLD_LCD_POWER 96
40
41 /* LCD BORDER */
42 #define GPIO_NR_PALMLD_BORDER_SWITCH 21
43 #define GPIO_NR_PALMLD_BORDER_SELECT 22
44
45 /* BLUETOOTH */
46 #define GPIO_NR_PALMLD_BT_POWER 17
47 #define GPIO_NR_PALMLD_BT_RESET 83
48
49 /* PCMCIA (WiFi) */
50 #define GPIO_NR_PALMLD_PCMCIA_READY 38
51 #define GPIO_NR_PALMLD_PCMCIA_POWER 36
52 #define GPIO_NR_PALMLD_PCMCIA_RESET 81
53
54 /* LEDs */
55 #define GPIO_NR_PALMLD_LED_GREEN 52
56 #define GPIO_NR_PALMLD_LED_AMBER 94
57
58 /* IDE */
59 #define GPIO_NR_PALMLD_IDE_IRQ 95
60 #define GPIO_NR_PALMLD_IDE_RESET 98
61 #define GPIO_NR_PALMLD_IDE_PWEN 115
62
63 /* USB */
64 #define GPIO_NR_PALMLD_USB_DETECT_N 3
65 #define GPIO_NR_PALMLD_USB_READY 86
66 #define GPIO_NR_PALMLD_USB_RESET 88
67 #define GPIO_NR_PALMLD_USB_INT 106
68 #define GPIO_NR_PALMLD_USB_POWER 118
69 /* 20, 53 and 86 are usb related too */
70
71 /* INTERRUPTS */
72 #define IRQ_GPIO_PALMLD_GPIO_RESET IRQ_GPIO(GPIO_NR_PALMLD_GPIO_RESET)
73 #define IRQ_GPIO_PALMLD_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMLD_SD_DETECT_N)
74 #define IRQ_GPIO_PALMLD_WM9712_IRQ IRQ_GPIO(GPIO_NR_PALMLD_WM9712_IRQ)
75 #define IRQ_GPIO_PALMLD_IDE_IRQ IRQ_GPIO(GPIO_NR_PALMLD_IDE_IRQ)
76
77
78 /** HERE ARE INIT VALUES **/
79
80 /* IO mappings */
81 #define PALMLD_USB_PHYS PXA_CS2_PHYS
82 #define PALMLD_USB_VIRT 0xf0000000
83 #define PALMLD_USB_SIZE 0x00100000
84
85 #define PALMLD_IDE_PHYS 0x20000000
86 #define PALMLD_IDE_VIRT 0xf1000000
87 #define PALMLD_IDE_SIZE 0x00100000
88
89 #define PALMLD_PHYS_IO_START 0x40000000
90
91 /* BATTERY */
92 #define PALMLD_BAT_MAX_VOLTAGE 4000 /* 4.00V maximum voltage */
93 #define PALMLD_BAT_MIN_VOLTAGE 3550 /* 3.55V critical voltage */
94 #define PALMLD_BAT_MAX_CURRENT 0 /* unknokn */
95 #define PALMLD_BAT_MIN_CURRENT 0 /* unknown */
96 #define PALMLD_BAT_MAX_CHARGE 1 /* unknown */
97 #define PALMLD_BAT_MIN_CHARGE 1 /* unknown */
98 #define PALMLD_MAX_LIFE_MINS 240 /* on-life in minutes */
99
100 #define PALMLD_BAT_MEASURE_DELAY (HZ * 1)
101
102 /* BACKLIGHT */
103 #define PALMLD_MAX_INTENSITY 0xFE
104 #define PALMLD_DEFAULT_INTENSITY 0x7E
105 #define PALMLD_LIMIT_MASK 0x7F
106 #define PALMLD_PRESCALER 0x3F
107 #define PALMLD_PERIOD_NS 3500
108
109 #endif