regulator, mc13xxx: Remove pointless test for unsigned less than zero
[zen-stable.git] / arch / arm / mach-pxa / include / mach / palmz72.h
blob2bbcf70dd935f2c93ec293bd75a815a8322e52e9
1 /*
2 * GPIOs and interrupts for Palm Zire72 Handheld Computer
4 * Authors: Alex Osborne <bobofdoom@gmail.com>
5 * Jan Herman <2hp@seznam.cz>
6 * Sergey Lapin <slapin@ossfans.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
14 #ifndef _INCLUDE_PALMZ72_H_
15 #define _INCLUDE_PALMZ72_H_
17 /* Power and control */
18 #define GPIO_NR_PALMZ72_GPIO_RESET 1
19 #define GPIO_NR_PALMZ72_POWER_DETECT 0
21 /* SD/MMC */
22 #define GPIO_NR_PALMZ72_SD_DETECT_N 14
23 #define GPIO_NR_PALMZ72_SD_POWER_N 98
24 #define GPIO_NR_PALMZ72_SD_RO 115
26 /* Touchscreen */
27 #define GPIO_NR_PALMZ72_WM9712_IRQ 27
29 /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */
30 #define GPIO_NR_PALMZ72_IR_DISABLE 49
32 /* USB */
33 #define GPIO_NR_PALMZ72_USB_DETECT_N 15
34 #define GPIO_NR_PALMZ72_USB_PULLUP 95
36 /* LCD/Backlight */
37 #define GPIO_NR_PALMZ72_BL_POWER 20
38 #define GPIO_NR_PALMZ72_LCD_POWER 96
40 /* LED */
41 #define GPIO_NR_PALMZ72_LED_GREEN 88
43 /* Bluetooth */
44 #define GPIO_NR_PALMZ72_BT_POWER 17
45 #define GPIO_NR_PALMZ72_BT_RESET 83
47 /** Initial values **/
49 /* Battery */
50 #define PALMZ72_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */
51 #define PALMZ72_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */
52 #define PALMZ72_BAT_MAX_CURRENT 0 /* unknown */
53 #define PALMZ72_BAT_MIN_CURRENT 0 /* unknown */
54 #define PALMZ72_BAT_MAX_CHARGE 1 /* unknown */
55 #define PALMZ72_BAT_MIN_CHARGE 1 /* unknown */
56 #define PALMZ72_MAX_LIFE_MINS 360 /* on-life in minutes */
58 /* Backlight */
59 #define PALMZ72_MAX_INTENSITY 0xFE
60 #define PALMZ72_DEFAULT_INTENSITY 0x7E
61 #define PALMZ72_LIMIT_MASK 0x7F
62 #define PALMZ72_PRESCALER 0x3F
63 #define PALMZ72_PERIOD_NS 3500
65 #ifdef CONFIG_PM
66 struct palmz72_resume_info {
67 u32 magic0; /* 0x0 */
68 u32 magic1; /* 0x4 */
69 u32 resume_addr; /* 0x8 */
70 u32 pad[11]; /* 0xc..0x37 */
71 u32 arm_control; /* 0x38 */
72 u32 aux_control; /* 0x3c */
73 u32 ttb; /* 0x40 */
74 u32 domain_access; /* 0x44 */
75 u32 process_id; /* 0x48 */
77 #endif
78 #endif