1a09e64fbSRussell King /* 2a09e64fbSRussell King * arch/arm/mach-sa1100/include/mach/collie.h 3a09e64fbSRussell King * 4a09e64fbSRussell King * This file contains the hardware specific definitions for Assabet 5a09e64fbSRussell King * Only include this file from SA1100-specific files. 6a09e64fbSRussell King * 7a09e64fbSRussell King * ChangeLog: 8a09e64fbSRussell King * 04-06-2001 Lineo Japan, Inc. 9a09e64fbSRussell King * 04-16-2001 SHARP Corporation 10a09e64fbSRussell King * 07-07-2002 Chris Larson <clarson@digi.com> 11a09e64fbSRussell King * 12a09e64fbSRussell King */ 13a09e64fbSRussell King #ifndef __ASM_ARCH_COLLIE_H 14a09e64fbSRussell King #define __ASM_ARCH_COLLIE_H 15a09e64fbSRussell King 16a09e64fbSRussell King 17*224be092SDmitry Baryshkov #define COLLIE_SCOOP_GPIO_BASE (GPIO_MAX + 1) 18a09e64fbSRussell King #define COLLIE_SCP_CHARGE_ON SCOOP_GPCR_PA11 19a09e64fbSRussell King #define COLLIE_SCP_DIAG_BOOT1 SCOOP_GPCR_PA12 20a09e64fbSRussell King #define COLLIE_SCP_DIAG_BOOT2 SCOOP_GPCR_PA13 21a09e64fbSRussell King #define COLLIE_SCP_MUTE_L SCOOP_GPCR_PA14 22a09e64fbSRussell King #define COLLIE_SCP_MUTE_R SCOOP_GPCR_PA15 23a09e64fbSRussell King #define COLLIE_SCP_5VON SCOOP_GPCR_PA16 24a09e64fbSRussell King #define COLLIE_SCP_AMP_ON SCOOP_GPCR_PA17 25*224be092SDmitry Baryshkov #define COLLIE_GPIO_VPEN (COLLIE_SCOOP_GPIO_BASE + 7) 26a09e64fbSRussell King #define COLLIE_SCP_LB_VOL_CHG SCOOP_GPCR_PA19 27a09e64fbSRussell King 28a09e64fbSRussell King #define COLLIE_SCOOP_IO_DIR ( COLLIE_SCP_CHARGE_ON | COLLIE_SCP_MUTE_L | COLLIE_SCP_MUTE_R | \ 29*224be092SDmitry Baryshkov COLLIE_SCP_5VON | COLLIE_SCP_AMP_ON | \ 30a09e64fbSRussell King COLLIE_SCP_LB_VOL_CHG ) 31*224be092SDmitry Baryshkov #define COLLIE_SCOOP_IO_OUT ( COLLIE_SCP_MUTE_L | COLLIE_SCP_MUTE_R | \ 32a09e64fbSRussell King COLLIE_SCP_CHARGE_ON ) 33a09e64fbSRussell King 34a09e64fbSRussell King /* GPIOs for which the generic definition doesn't say much */ 35a09e64fbSRussell King 36a09e64fbSRussell King #define COLLIE_GPIO_ON_KEY GPIO_GPIO (0) 37a09e64fbSRussell King #define COLLIE_GPIO_AC_IN GPIO_GPIO (1) 38a09e64fbSRussell King #define COLLIE_GPIO_SDIO_INT GPIO_GPIO (11) 39a09e64fbSRussell King #define COLLIE_GPIO_CF_IRQ GPIO_GPIO (14) 40a09e64fbSRussell King #define COLLIE_GPIO_nREMOCON_INT GPIO_GPIO (15) 41a09e64fbSRussell King #define COLLIE_GPIO_UCB1x00_RESET GPIO_GPIO (16) 42a09e64fbSRussell King #define COLLIE_GPIO_nMIC_ON GPIO_GPIO (17) 43a09e64fbSRussell King #define COLLIE_GPIO_nREMOCON_ON GPIO_GPIO (18) 44a09e64fbSRussell King #define COLLIE_GPIO_CO GPIO_GPIO (20) 45a09e64fbSRussell King #define COLLIE_GPIO_MCP_CLK GPIO_GPIO (21) 46a09e64fbSRussell King #define COLLIE_GPIO_CF_CD GPIO_GPIO (22) 47a09e64fbSRussell King #define COLLIE_GPIO_UCB1x00_IRQ GPIO_GPIO (23) 48a09e64fbSRussell King #define COLLIE_GPIO_WAKEUP GPIO_GPIO (24) 49a09e64fbSRussell King #define COLLIE_GPIO_GA_INT GPIO_GPIO (25) 50a09e64fbSRussell King #define COLLIE_GPIO_MAIN_BAT_LOW GPIO_GPIO (26) 51a09e64fbSRussell King 52a09e64fbSRussell King /* Interrupts */ 53a09e64fbSRussell King 54a09e64fbSRussell King #define COLLIE_IRQ_GPIO_ON_KEY IRQ_GPIO0 55a09e64fbSRussell King #define COLLIE_IRQ_GPIO_AC_IN IRQ_GPIO1 56a09e64fbSRussell King #define COLLIE_IRQ_GPIO_SDIO_IRQ IRQ_GPIO11 57a09e64fbSRussell King #define COLLIE_IRQ_GPIO_CF_IRQ IRQ_GPIO14 58a09e64fbSRussell King #define COLLIE_IRQ_GPIO_nREMOCON_INT IRQ_GPIO15 59a09e64fbSRussell King #define COLLIE_IRQ_GPIO_CO IRQ_GPIO20 60a09e64fbSRussell King #define COLLIE_IRQ_GPIO_CF_CD IRQ_GPIO22 61a09e64fbSRussell King #define COLLIE_IRQ_GPIO_UCB1x00_IRQ IRQ_GPIO23 62a09e64fbSRussell King #define COLLIE_IRQ_GPIO_WAKEUP IRQ_GPIO24 63a09e64fbSRussell King #define COLLIE_IRQ_GPIO_GA_INT IRQ_GPIO25 64a09e64fbSRussell King #define COLLIE_IRQ_GPIO_MAIN_BAT_LOW IRQ_GPIO26 65a09e64fbSRussell King 66a09e64fbSRussell King #define COLLIE_LCM_IRQ_GPIO_RTS IRQ_LOCOMO_GPIO0 67a09e64fbSRussell King #define COLLIE_LCM_IRQ_GPIO_CTS IRQ_LOCOMO_GPIO1 68a09e64fbSRussell King #define COLLIE_LCM_IRQ_GPIO_DSR IRQ_LOCOMO_GPIO2 69a09e64fbSRussell King #define COLLIE_LCM_IRQ_GPIO_DTR IRQ_LOCOMO_GPIO3 70a09e64fbSRussell King #define COLLIE_LCM_IRQ_GPIO_nSD_DETECT IRQ_LOCOMO_GPIO13 71a09e64fbSRussell King #define COLLIE_LCM_IRQ_GPIO_nSD_WP IRQ_LOCOMO_GPIO14 72a09e64fbSRussell King 73a09e64fbSRussell King /* GPIO's on the TC35143AF (Toshiba Analog Frontend) */ 74a09e64fbSRussell King #define COLLIE_TC35143_GPIO_VERSION0 UCB_IO_0 /* GPIO0=Version */ 75a09e64fbSRussell King #define COLLIE_TC35143_GPIO_TBL_CHK UCB_IO_1 /* GPIO1=TBL_CHK */ 76a09e64fbSRussell King #define COLLIE_TC35143_GPIO_VPEN_ON UCB_IO_2 /* GPIO2=VPNE_ON */ 77a09e64fbSRussell King #define COLLIE_TC35143_GPIO_IR_ON UCB_IO_3 /* GPIO3=IR_ON */ 78a09e64fbSRussell King #define COLLIE_TC35143_GPIO_AMP_ON UCB_IO_4 /* GPIO4=AMP_ON */ 79a09e64fbSRussell King #define COLLIE_TC35143_GPIO_VERSION1 UCB_IO_5 /* GPIO5=Version */ 80a09e64fbSRussell King #define COLLIE_TC35143_GPIO_FS8KLPF UCB_IO_5 /* GPIO5=fs 8k LPF */ 81a09e64fbSRussell King #define COLLIE_TC35143_GPIO_BUZZER_BIAS UCB_IO_6 /* GPIO6=BUZZER BIAS */ 82a09e64fbSRussell King #define COLLIE_TC35143_GPIO_MBAT_ON UCB_IO_7 /* GPIO7=MBAT_ON */ 83a09e64fbSRussell King #define COLLIE_TC35143_GPIO_BBAT_ON UCB_IO_8 /* GPIO8=BBAT_ON */ 84a09e64fbSRussell King #define COLLIE_TC35143_GPIO_TMP_ON UCB_IO_9 /* GPIO9=TMP_ON */ 85a09e64fbSRussell King #define COLLIE_TC35143_GPIO_IN ( UCB_IO_0 | UCB_IO_2 | UCB_IO_5 ) 86a09e64fbSRussell King #define COLLIE_TC35143_GPIO_OUT ( UCB_IO_1 | UCB_IO_3 | UCB_IO_4 | UCB_IO_6 | \ 87a09e64fbSRussell King UCB_IO_7 | UCB_IO_8 | UCB_IO_9 ) 88a09e64fbSRussell King 89a09e64fbSRussell King #endif 90