Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / mach-pxa / palmt5.h
blob1fb1da7c8da3bab7e7b14e2c5e1b9fdb283f6b97
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * GPIOs and interrupts for Palm Tungsten|T5 Handheld Computer
5 * Authors: Ales Snuparek <snuparek@atlas.cz>
6 * Marek Vasut <marek.vasut@gmail.com>
7 * Justin Kendrick <twilightsentry@gmail.com>
8 * RichardT5 <richard_t5@users.sourceforge.net>
9 */
11 #ifndef _INCLUDE_PALMT5_H_
12 #define _INCLUDE_PALMT5_H_
14 #include <mach/irqs.h> /* PXA_GPIO_TO_IRQ */
16 /** HERE ARE GPIOs **/
18 /* GPIOs */
19 #define GPIO_NR_PALMT5_GPIO_RESET 1
21 #define GPIO_NR_PALMT5_POWER_DETECT 90
22 #define GPIO_NR_PALMT5_HOTSYNC_BUTTON_N 10
23 #define GPIO_NR_PALMT5_EARPHONE_DETECT 107
25 /* SD/MMC */
26 #define GPIO_NR_PALMT5_SD_DETECT_N 14
27 #define GPIO_NR_PALMT5_SD_POWER 114
28 #define GPIO_NR_PALMT5_SD_READONLY 115
30 /* TOUCHSCREEN */
31 #define GPIO_NR_PALMT5_WM9712_IRQ 27
33 /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */
34 #define GPIO_NR_PALMT5_IR_DISABLE 40
36 /* USB */
37 #define GPIO_NR_PALMT5_USB_DETECT_N 15
38 #define GPIO_NR_PALMT5_USB_PULLUP 93
40 /* LCD/BACKLIGHT */
41 #define GPIO_NR_PALMT5_BL_POWER 84
42 #define GPIO_NR_PALMT5_LCD_POWER 96
44 /* BLUETOOTH */
45 #define GPIO_NR_PALMT5_BT_POWER 17
46 #define GPIO_NR_PALMT5_BT_RESET 83
48 /* INTERRUPTS */
49 #define IRQ_GPIO_PALMT5_SD_DETECT_N PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_SD_DETECT_N)
50 #define IRQ_GPIO_PALMT5_WM9712_IRQ PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_WM9712_IRQ)
51 #define IRQ_GPIO_PALMT5_USB_DETECT PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_USB_DETECT)
52 #define IRQ_GPIO_PALMT5_GPIO_RESET PXA_GPIO_TO_IRQ(GPIO_NR_PALMT5_GPIO_RESET)
54 /** HERE ARE INIT VALUES **/
56 /* Various addresses */
57 #define PALMT5_PHYS_RAM_START 0xa0000000
58 #define PALMT5_PHYS_IO_START 0x40000000
59 #define PALMT5_STR_BASE 0xa0200000
61 /* TOUCHSCREEN */
62 #define AC97_LINK_FRAME 21
64 /* BATTERY */
65 #define PALMT5_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */
66 #define PALMT5_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */
67 #define PALMT5_BAT_MAX_CURRENT 0 /* unknown */
68 #define PALMT5_BAT_MIN_CURRENT 0 /* unknown */
69 #define PALMT5_BAT_MAX_CHARGE 1 /* unknown */
70 #define PALMT5_BAT_MIN_CHARGE 1 /* unknown */
71 #define PALMT5_MAX_LIFE_MINS 360 /* on-life in minutes */
73 #define PALMT5_BAT_MEASURE_DELAY (HZ * 1)
75 /* BACKLIGHT */
76 #define PALMT5_MAX_INTENSITY 0xFE
77 #define PALMT5_DEFAULT_INTENSITY 0x7E
78 #define PALMT5_LIMIT_MASK 0x7F
79 #define PALMT5_PRESCALER 0x3F
80 #define PALMT5_PERIOD_NS 3500
82 #endif