| 
									
										
										
										
											2008-08-29 15:47:52 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * GPIOs and interrupts for Palm Zire72 Handheld Computer | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Authors:	Alex Osborne <bobofdoom@gmail.com> | 
					
						
							|  |  |  |  *		Jan Herman <2hp@seznam.cz> | 
					
						
							|  |  |  |  *		Sergey Lapin <slapin@ossfans.org> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef _INCLUDE_PALMZ72_H_
 | 
					
						
							|  |  |  | #define _INCLUDE_PALMZ72_H_
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Power and control */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_GPIO_RESET		1
 | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_POWER_DETECT		0
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* SD/MMC */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_SD_DETECT_N		14
 | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_SD_POWER_N		98
 | 
					
						
							| 
									
										
										
										
											2009-06-01 22:34:14 +02:00
										 |  |  | #define GPIO_NR_PALMZ72_SD_RO			115
 | 
					
						
							| 
									
										
										
										
											2008-08-29 15:47:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* Touchscreen */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_WM9712_IRQ		27
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* IRDA -  disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_IR_DISABLE		49
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* USB */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_USB_DETECT_N		15
 | 
					
						
							| 
									
										
										
										
											2009-06-01 22:34:14 +02:00
										 |  |  | #define GPIO_NR_PALMZ72_USB_PULLUP		95
 | 
					
						
							| 
									
										
										
										
											2008-08-29 15:47:52 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* LCD/Backlight */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_BL_POWER		20
 | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_LCD_POWER		96
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* LED */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_LED_GREEN		88
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Bluetooth */ | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_BT_POWER		17
 | 
					
						
							|  |  |  | #define GPIO_NR_PALMZ72_BT_RESET		83
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** Initial values **/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Battery */ | 
					
						
							|  |  |  | #define PALMZ72_BAT_MAX_VOLTAGE		4000	/* 4.00v current voltage */
 | 
					
						
							|  |  |  | #define PALMZ72_BAT_MIN_VOLTAGE		3550	/* 3.55v critical voltage */
 | 
					
						
							| 
									
										
										
											
												tree-wide: fix assorted typos all over the place
That is "success", "unknown", "through", "performance", "[re|un]mapping"
, "access", "default", "reasonable", "[con]currently", "temperature"
, "channel", "[un]used", "application", "example","hierarchy", "therefore"
, "[over|under]flow", "contiguous", "threshold", "enough" and others.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
											
										 
											2009-11-14 13:09:05 -02:00
										 |  |  | #define PALMZ72_BAT_MAX_CURRENT		0	/* unknown */
 | 
					
						
							| 
									
										
										
										
											2008-08-29 15:47:52 +01:00
										 |  |  | #define PALMZ72_BAT_MIN_CURRENT		0	/* unknown */
 | 
					
						
							|  |  |  | #define PALMZ72_BAT_MAX_CHARGE		1	/* unknown */
 | 
					
						
							|  |  |  | #define PALMZ72_BAT_MIN_CHARGE		1	/* unknown */
 | 
					
						
							|  |  |  | #define PALMZ72_MAX_LIFE_MINS		360	/* on-life in minutes */
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Backlight */ | 
					
						
							|  |  |  | #define PALMZ72_MAX_INTENSITY		0xFE
 | 
					
						
							|  |  |  | #define PALMZ72_DEFAULT_INTENSITY	0x7E
 | 
					
						
							|  |  |  | #define PALMZ72_LIMIT_MASK		0x7F
 | 
					
						
							|  |  |  | #define PALMZ72_PRESCALER		0x3F
 | 
					
						
							|  |  |  | #define PALMZ72_PERIOD_NS		3500
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-29 15:53:24 +01:00
										 |  |  | #ifdef CONFIG_PM
 | 
					
						
							|  |  |  | struct palmz72_resume_info { | 
					
						
							|  |  |  | 	u32 magic0;		/* 0x0 */ | 
					
						
							|  |  |  | 	u32 magic1;		/* 0x4 */ | 
					
						
							|  |  |  | 	u32 resume_addr;	/* 0x8 */ | 
					
						
							|  |  |  | 	u32 pad[11];		/* 0xc..0x37 */ | 
					
						
							|  |  |  | 	u32 arm_control;	/* 0x38 */ | 
					
						
							|  |  |  | 	u32 aux_control;	/* 0x3c */ | 
					
						
							|  |  |  | 	u32 ttb;		/* 0x40 */ | 
					
						
							|  |  |  | 	u32 domain_access;	/* 0x44 */ | 
					
						
							|  |  |  | 	u32 process_id;		/* 0x48 */ | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2008-08-29 15:47:52 +01:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 |