From: <p3t...@us...> - 2007-05-20 18:49:12
|
Revision: 984 http://svn.sourceforge.net/hackndev/?rev=984&view=rev Author: p3t3-dev Date: 2007-05-20 11:49:06 -0700 (Sun, 20 May 2007) Log Message: ----------- Treo650: added LCD power GPIO Modified Paths: -------------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h 2007-05-18 13:06:35 UTC (rev 983) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h 2007-05-20 18:49:06 UTC (rev 984) @@ -11,11 +11,13 @@ #include <asm/arch/pxa-regs.h> /* IO mappings */ + #define PALMT650_ASIC6_PHYS (PXA_CS2_PHYS) #define PALMT650_ASIC6_VIRT (0xf0000000) #define PALMT650_ASIC6_SIZE (0x00100000) /* ASIC 6 registers */ + #define __REG16(x) (*((volatile u16 *)io_p2v(x))) #define ASIC6_LED0_TBS __REG16(0x08000080) #define ASIC6_LED0_U1 __REG16(0x08000082) /* unknown=0 */ @@ -33,31 +35,32 @@ #define ASIC6_LED2_AUTOSTOP __REG16(0x080000aa) /* Palm Treo 650 GPIOs */ + #define GPIO_NR_PALMT650_POWER_DETECT 0 #define GPIO_NR_PALMT650_VIBRATE_EN 26 #define GPIO_NR_PALMT650_SILENT_SWITCH 33 #define GPIO_NR_PALMT650_WM9712_IRQ 90 -#define GPIO_NR_PALMT650_SD_DETECT_N 113 /* SD card inserted; RE FE; Input */ +#define GPIO_NR_PALMT650_SD_DETECT_N 113 /* SD card inserted; RE FE; Input */ #define GPIO_NR_PALMT650_LCD_POWER 20 -#define GPIO_NR_PALMT650_LCD_SCREEN 77 +#define GPIO_NR_PALMT650_LCD_FADEOUT 77 /* switching this GPIO makes LCD fade out */ #define GPIO_NR_PALMT650_USB_DETECT 9 -#define GPIO_NR_PALMT650_KP_MKIN0 100 -#define GPIO_NR_PALMT650_KP_MKIN1 101 -#define GPIO_NR_PALMT650_KP_MKIN2 102 -#define GPIO_NR_PALMT650_KP_MKIN3 97 -#define GPIO_NR_PALMT650_KP_MKIN4 98 -#define GPIO_NR_PALMT650_KP_MKIN5 99 -#define GPIO_NR_PALMT650_KP_MKIN6 17 -#define GPIO_NR_PALMT650_KP_MKIN7 13 +#define GPIO_NR_PALMT650_KP_MKIN0 100 +#define GPIO_NR_PALMT650_KP_MKIN1 101 +#define GPIO_NR_PALMT650_KP_MKIN2 102 +#define GPIO_NR_PALMT650_KP_MKIN3 97 +#define GPIO_NR_PALMT650_KP_MKIN4 98 +#define GPIO_NR_PALMT650_KP_MKIN5 99 +#define GPIO_NR_PALMT650_KP_MKIN6 17 +#define GPIO_NR_PALMT650_KP_MKIN7 13 -#define GPIO_NR_PALMT650_KP_MKOUT0 103 -#define GPIO_NR_PALMT650_KP_MKOUT1 104 -#define GPIO_NR_PALMT650_KP_MKOUT2 105 -#define GPIO_NR_PALMT650_KP_MKOUT3 106 -#define GPIO_NR_PALMT650_KP_MKOUT4 107 -#define GPIO_NR_PALMT650_KP_MKOUT5 108 -#define GPIO_NR_PALMT650_KP_MKOUT6 40 +#define GPIO_NR_PALMT650_KP_MKOUT0 103 +#define GPIO_NR_PALMT650_KP_MKOUT1 104 +#define GPIO_NR_PALMT650_KP_MKOUT2 105 +#define GPIO_NR_PALMT650_KP_MKOUT3 106 +#define GPIO_NR_PALMT650_KP_MKOUT4 107 +#define GPIO_NR_PALMT650_KP_MKOUT5 108 +#define GPIO_NR_PALMT650_KP_MKOUT6 40 #define IRQ_GPIO_PALMT650_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMT650_SD_DETECT_N) #define IRQ_GPIO_PALMT650_WM9712_IRQ IRQ_GPIO(GPIO_NR_PALMT650_WM9712_IRQ) @@ -81,22 +84,22 @@ /* Utility macros */ #define GET_PALMT650_GPIO(gpio) \ - (GPLR(GPIO_NR_PALMT650_ ## gpio) & GPIO_bit(GPIO_NR_PALMT650_ ## gpio)) + (GPLR(GPIO_NR_PALMT650_ ## gpio) & GPIO_bit(GPIO_NR_PALMT650_ ## gpio)) #define SET_PALMT650_GPIO(gpio, setp) \ do { \ if (setp) \ - GPSR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ + GPSR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ else \ - GPCR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ + GPCR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ } while (0) #define SET_PALMT650_GPIO_N(gpio, setp) \ do { \ if (setp) \ - GPCR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ + GPCR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ else \ - GPSR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ + GPSR(GPIO_NR_PALMT650_ ## gpio) = GPIO_bit(GPIO_NR_PALMT650_ ## gpio); \ } while (0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |