Path: blob/master/arch/arm/mach-pxa/include/mach/palmtreo.h
10820 views
/*1* GPIOs and interrupts for Palm Treo smartphones2*3* currently supported:4* Palm Treo 680 (GSM)5* Palm Centro 685 (GSM)6*7* Author: Tomas Cech <[email protected]>8*9* This program is free software; you can redistribute it and/or modify10* it under the terms of the GNU General Public License version 2 as11* published by the Free Software Foundation.12*13* find more info at www.hackndev.com14*15*/1617#ifndef _INCLUDE_TREO_H_18#define _INCLUDE_TREO_H_1920/* GPIOs */21#define GPIO_NR_TREO_POWER_DETECT 022#define GPIO_NR_TREO_AMP_EN 2723#define GPIO_NR_TREO_GREEN_LED 2024#define GPIO_NR_TREO_RED_LED 7925#define GPIO_NR_TREO_SD_DETECT_N 11326#define GPIO_NR_TREO_EP_DETECT_N 11627#define GPIO_NR_TREO_USB_DETECT 128#define GPIO_NR_TREO_USB_PULLUP 11429#define GPIO_NR_TREO_GSM_POWER 4030#define GPIO_NR_TREO_GSM_RESET 8731#define GPIO_NR_TREO_GSM_WAKE 5732#define GPIO_NR_TREO_GSM_HOST_WAKE 1433#define GPIO_NR_TREO_GSM_TRIGGER 1034#define GPIO_NR_TREO_IR_EN 11535#define GPIO_NR_TREO_IR_TXD 4736#define GPIO_NR_TREO_BL_POWER 3837#define GPIO_NR_TREO_LCD_POWER 253839/* Treo680 specific GPIOs */40#ifdef CONFIG_MACH_TREO68041#define GPIO_NR_TREO680_SD_READONLY 3342#define GPIO_NR_TREO680_SD_POWER 4243#define GPIO_NR_TREO680_VIBRATE_EN 4444#define GPIO_NR_TREO680_KEYB_BL 2445#define GPIO_NR_TREO680_BT_EN 4346#endif /* CONFIG_MACH_TREO680 */4748/* Centro685 specific GPIOs */49#define GPIO_NR_CENTRO_SD_POWER 2150#define GPIO_NR_CENTRO_VIBRATE_EN 2251#define GPIO_NR_CENTRO_KEYB_BL 3352#define GPIO_NR_CENTRO_BT_EN 805354/* Various addresses */55#define TREO_PHYS_RAM_START 0xa000000056#define TREO_PHYS_IO_START 0x4000000057#define TREO_STR_BASE 0xa20000005859/* BACKLIGHT */60#define TREO_MAX_INTENSITY 25461#define TREO_DEFAULT_INTENSITY 16062#define TREO_LIMIT_MASK 0x7F63#define TREO_PRESCALER 6364#define TREO_PERIOD_NS 35006566#endif676869