18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * arch/arm/mach-pxa/include/mach/poodle.h 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * May be copied or modified under the terms of the GNU General Public 58c2ecf20Sopenharmony_ci * License. See linux/COPYING for more information. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Based on: 88c2ecf20Sopenharmony_ci * arch/arm/mach-sa1100/include/mach/collie.h 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * ChangeLog: 118c2ecf20Sopenharmony_ci * 04-06-2001 Lineo Japan, Inc. 128c2ecf20Sopenharmony_ci * 04-16-2001 SHARP Corporation 138c2ecf20Sopenharmony_ci * Update to 2.6 John Lenz 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_POODLE_H 168c2ecf20Sopenharmony_ci#define __ASM_ARCH_POODLE_H 1 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#include "irqs.h" /* PXA_GPIO_TO_IRQ */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci/* 218c2ecf20Sopenharmony_ci * GPIOs 228c2ecf20Sopenharmony_ci */ 238c2ecf20Sopenharmony_ci/* PXA GPIOs */ 248c2ecf20Sopenharmony_ci#define POODLE_GPIO_ON_KEY (0) 258c2ecf20Sopenharmony_ci#define POODLE_GPIO_AC_IN (1) 268c2ecf20Sopenharmony_ci#define POODLE_GPIO_CO 16 278c2ecf20Sopenharmony_ci#define POODLE_GPIO_TP_INT (5) 288c2ecf20Sopenharmony_ci#define POODLE_GPIO_TP_CS (24) 298c2ecf20Sopenharmony_ci#define POODLE_GPIO_WAKEUP (11) /* change battery */ 308c2ecf20Sopenharmony_ci#define POODLE_GPIO_GA_INT (10) 318c2ecf20Sopenharmony_ci#define POODLE_GPIO_IR_ON (22) 328c2ecf20Sopenharmony_ci#define POODLE_GPIO_HP_IN (4) 338c2ecf20Sopenharmony_ci#define POODLE_GPIO_CF_IRQ (17) 348c2ecf20Sopenharmony_ci#define POODLE_GPIO_CF_CD (14) 358c2ecf20Sopenharmony_ci#define POODLE_GPIO_CF_STSCHG (14) 368c2ecf20Sopenharmony_ci#define POODLE_GPIO_SD_PWR (33) 378c2ecf20Sopenharmony_ci#define POODLE_GPIO_SD_PWR1 (3) 388c2ecf20Sopenharmony_ci#define POODLE_GPIO_nSD_CLK (6) 398c2ecf20Sopenharmony_ci#define POODLE_GPIO_nSD_WP (7) 408c2ecf20Sopenharmony_ci#define POODLE_GPIO_nSD_INT (8) 418c2ecf20Sopenharmony_ci#define POODLE_GPIO_nSD_DETECT (9) 428c2ecf20Sopenharmony_ci#define POODLE_GPIO_MAIN_BAT_LOW (13) 438c2ecf20Sopenharmony_ci#define POODLE_GPIO_BAT_COVER (13) 448c2ecf20Sopenharmony_ci#define POODLE_GPIO_USB_PULLUP (20) 458c2ecf20Sopenharmony_ci#define POODLE_GPIO_ADC_TEMP_ON (21) 468c2ecf20Sopenharmony_ci#define POODLE_GPIO_BYPASS_ON (36) 478c2ecf20Sopenharmony_ci#define POODLE_GPIO_CHRG_ON (38) 488c2ecf20Sopenharmony_ci#define POODLE_GPIO_CHRG_FULL (16) 498c2ecf20Sopenharmony_ci#define POODLE_GPIO_DISCHARGE_ON (42) /* Enable battery discharge */ 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci/* PXA GPIOs */ 528c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_ON_KEY PXA_GPIO_TO_IRQ(0) 538c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_AC_IN PXA_GPIO_TO_IRQ(1) 548c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_HP_IN PXA_GPIO_TO_IRQ(4) 558c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_CO PXA_GPIO_TO_IRQ(16) 568c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_TP_INT PXA_GPIO_TO_IRQ(5) 578c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_WAKEUP PXA_GPIO_TO_IRQ(11) 588c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_GA_INT PXA_GPIO_TO_IRQ(10) 598c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_CF_IRQ PXA_GPIO_TO_IRQ(17) 608c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_CF_CD PXA_GPIO_TO_IRQ(14) 618c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_nSD_INT PXA_GPIO_TO_IRQ(8) 628c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_nSD_DETECT PXA_GPIO_TO_IRQ(9) 638c2ecf20Sopenharmony_ci#define POODLE_IRQ_GPIO_MAIN_BAT_LOW PXA_GPIO_TO_IRQ(13) 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci/* SCOOP GPIOs */ 668c2ecf20Sopenharmony_ci#define POODLE_SCOOP_CHARGE_ON SCOOP_GPCR_PA11 678c2ecf20Sopenharmony_ci#define POODLE_SCOOP_CP401 SCOOP_GPCR_PA13 688c2ecf20Sopenharmony_ci#define POODLE_SCOOP_VPEN SCOOP_GPCR_PA18 698c2ecf20Sopenharmony_ci#define POODLE_SCOOP_L_PCLK SCOOP_GPCR_PA20 708c2ecf20Sopenharmony_ci#define POODLE_SCOOP_L_LCLK SCOOP_GPCR_PA21 718c2ecf20Sopenharmony_ci#define POODLE_SCOOP_HS_OUT SCOOP_GPCR_PA22 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci#define POODLE_SCOOP_IO_DIR ( POODLE_SCOOP_VPEN | POODLE_SCOOP_HS_OUT ) 748c2ecf20Sopenharmony_ci#define POODLE_SCOOP_IO_OUT ( 0 ) 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define POODLE_SCOOP_GPIO_BASE (PXA_NR_BUILTIN_GPIO) 778c2ecf20Sopenharmony_ci#define POODLE_GPIO_CHARGE_ON (POODLE_SCOOP_GPIO_BASE + 0) 788c2ecf20Sopenharmony_ci#define POODLE_GPIO_CP401 (POODLE_SCOOP_GPIO_BASE + 2) 798c2ecf20Sopenharmony_ci#define POODLE_GPIO_VPEN (POODLE_SCOOP_GPIO_BASE + 7) 808c2ecf20Sopenharmony_ci#define POODLE_GPIO_L_PCLK (POODLE_SCOOP_GPIO_BASE + 9) 818c2ecf20Sopenharmony_ci#define POODLE_GPIO_L_LCLK (POODLE_SCOOP_GPIO_BASE + 10) 828c2ecf20Sopenharmony_ci#define POODLE_GPIO_HS_OUT (POODLE_SCOOP_GPIO_BASE + 11) 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci#define POODLE_LOCOMO_GPIO_AMP_ON LOCOMO_GPIO(8) 858c2ecf20Sopenharmony_ci#define POODLE_LOCOMO_GPIO_MUTE_L LOCOMO_GPIO(10) 868c2ecf20Sopenharmony_ci#define POODLE_LOCOMO_GPIO_MUTE_R LOCOMO_GPIO(11) 878c2ecf20Sopenharmony_ci#define POODLE_LOCOMO_GPIO_232VCC_ON LOCOMO_GPIO(12) 888c2ecf20Sopenharmony_ci#define POODLE_LOCOMO_GPIO_JK_B LOCOMO_GPIO(13) 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci#define POODLE_NR_IRQS (IRQ_BOARD_START + 4) /* 4 for LoCoMo */ 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ciextern struct platform_device poodle_locomo_device; 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci#endif /* __ASM_ARCH_POODLE_H */ 95