aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/include
diff options
context:
space:
mode:
authorTomáš Čech <sleep_walker@suse.cz>2009-09-11 07:57:01 -0400
committerEric Miao <eric.y.miao@gmail.com>2009-11-30 20:02:48 -0500
commitbb2ae8f0325221a2dfd9eb31554f42e9c24abdf2 (patch)
tree678a540431139e6c9b60ec7895e8b5f9ed0b0b7a /arch/arm/mach-pxa/include
parentd62238711a0a917ddc6bb47390c7502806c963b1 (diff)
[ARM] pxa/treo: generalisation of Treo680 code
Signed-off-by: Tomáš Čech <sleep_walker@suse.cz> Acked-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/include')
-rw-r--r--arch/arm/mach-pxa/include/mach/palmtreo.h60
-rw-r--r--arch/arm/mach-pxa/include/mach/treo680.h49
2 files changed, 60 insertions, 49 deletions
diff --git a/arch/arm/mach-pxa/include/mach/palmtreo.h b/arch/arm/mach-pxa/include/mach/palmtreo.h
new file mode 100644
index 000000000000..8cb0bca7f707
--- /dev/null
+++ b/arch/arm/mach-pxa/include/mach/palmtreo.h
@@ -0,0 +1,60 @@
1/*
2 * GPIOs and interrupts for Palm Treo smartphones
3 *
4 * currently supported:
5 * Palm Treo 680 (GSM)
6 *
7 * Author: Tomas Cech <sleep_walker@suse.cz>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 *
13 * find more info at www.hackndev.com
14 *
15 */
16
17#ifndef _INCLUDE_TREO_H_
18#define _INCLUDE_TREO_H_
19
20/* GPIOs */
21#define GPIO_NR_TREO_POWER_DETECT 0
22#define GPIO_NR_TREO_AMP_EN 27
23#define GPIO_NR_TREO_GREEN_LED 20
24#define GPIO_NR_TREO_RED_LED 79
25#define GPIO_NR_TREO_SD_DETECT_N 113
26#define GPIO_NR_TREO_EP_DETECT_N 116
27#define GPIO_NR_TREO_USB_DETECT 1
28#define GPIO_NR_TREO_USB_PULLUP 114
29#define GPIO_NR_TREO_GSM_POWER 40
30#define GPIO_NR_TREO_GSM_RESET 87
31#define GPIO_NR_TREO_GSM_WAKE 57
32#define GPIO_NR_TREO_GSM_HOST_WAKE 14
33#define GPIO_NR_TREO_GSM_TRIGGER 10
34#define GPIO_NR_TREO_IR_EN 115
35#define GPIO_NR_TREO_IR_TXD 47
36#define GPIO_NR_TREO_BL_POWER 38
37#define GPIO_NR_TREO_LCD_POWER 25
38
39/* Treo680 specific GPIOs */
40#ifdef CONFIG_MACH_TREO680
41#define GPIO_NR_TREO680_SD_READONLY 33
42#define GPIO_NR_TREO680_SD_POWER 42
43#define GPIO_NR_TREO680_VIBRATE_EN 44
44#define GPIO_NR_TREO680_KEYB_BL 24
45#define GPIO_NR_TREO680_BT_EN 43
46#endif /* CONFIG_MACH_TREO680 */
47
48/* Various addresses */
49#define TREO_PHYS_RAM_START 0xa0000000
50#define TREO_PHYS_IO_START 0x40000000
51#define TREO_STR_BASE 0xa2000000
52
53/* BACKLIGHT */
54#define TREO_MAX_INTENSITY 254
55#define TREO_DEFAULT_INTENSITY 160
56#define TREO_LIMIT_MASK 0x7F
57#define TREO_PRESCALER 63
58#define TREO_PERIOD_NS 3500
59
60#endif
diff --git a/arch/arm/mach-pxa/include/mach/treo680.h b/arch/arm/mach-pxa/include/mach/treo680.h
deleted file mode 100644
index af443b24d99a..000000000000
--- a/arch/arm/mach-pxa/include/mach/treo680.h
+++ /dev/null
@@ -1,49 +0,0 @@
1/*
2 * GPIOs and interrupts for Palm Treo 680 smartphone
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 */
9
10#ifndef _INCLUDE_TREO680_H_
11#define _INCLUDE_TREO680_H_
12
13/* GPIOs */
14#define GPIO_NR_TREO680_POWER_DETECT 0
15#define GPIO_NR_TREO680_AMP_EN 27
16#define GPIO_NR_TREO680_KEYB_BL 24
17#define GPIO_NR_TREO680_VIBRATE_EN 44
18#define GPIO_NR_TREO680_GREEN_LED 20
19#define GPIO_NR_TREO680_RED_LED 79
20#define GPIO_NR_TREO680_SD_DETECT_N 113
21#define GPIO_NR_TREO680_SD_READONLY 33
22#define GPIO_NR_TREO680_EP_DETECT_N 116
23#define GPIO_NR_TREO680_SD_POWER 42
24#define GPIO_NR_TREO680_USB_DETECT 1
25#define GPIO_NR_TREO680_USB_PULLUP 114
26#define GPIO_NR_TREO680_GSM_POWER 40
27#define GPIO_NR_TREO680_GSM_RESET 87
28#define GPIO_NR_TREO680_GSM_WAKE 57
29#define GPIO_NR_TREO680_GSM_HOST_WAKE 14
30#define GPIO_NR_TREO680_GSM_TRIGGER 10
31#define GPIO_NR_TREO680_BT_EN 43
32#define GPIO_NR_TREO680_IR_EN 115
33#define GPIO_NR_TREO680_IR_TXD 47
34#define GPIO_NR_TREO680_BL_POWER 38
35#define GPIO_NR_TREO680_LCD_POWER 25
36
37/* Various addresses */
38#define TREO680_PHYS_RAM_START 0xa0000000
39#define TREO680_PHYS_IO_START 0x40000000
40#define TREO680_STR_BASE 0xa2000000
41
42/* BACKLIGHT */
43#define TREO680_MAX_INTENSITY 254
44#define TREO680_DEFAULT_INTENSITY 160
45#define TREO680_LIMIT_MASK 0x7F
46#define TREO680_PRESCALER 63
47#define TREO680_PERIOD_NS 3500
48
49#endif