2 * arch/arm/mach-sa1100/include/mach/badge4.h
4 * Tim Connors <connors@hpl.hp.com>
5 * Christopher Hoover <ch@hpl.hp.com>
7 * Copyright (C) 2002 Hewlett-Packard Company
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 #ifndef __ASM_ARCH_HARDWARE_H
16 #error "include <mach/hardware.h> instead"
19 #define BADGE4_SA1111_BASE (0x48000000)
21 /* GPIOs on the BadgePAD 4 */
22 #define BADGE4_GPIO_INT_1111 GPIO_GPIO0 /* SA-1111 IRQ */
24 #define BADGE4_GPIO_INT_VID GPIO_GPIO1 /* Video expansion */
25 #define BADGE4_GPIO_LGP2 GPIO_GPIO2 /* GPIO_LDD8 */
26 #define BADGE4_GPIO_LGP3 GPIO_GPIO3 /* GPIO_LDD9 */
27 #define BADGE4_GPIO_LGP4 GPIO_GPIO4 /* GPIO_LDD10 */
28 #define BADGE4_GPIO_LGP5 GPIO_GPIO5 /* GPIO_LDD11 */
29 #define BADGE4_GPIO_LGP6 GPIO_GPIO6 /* GPIO_LDD12 */
30 #define BADGE4_GPIO_LGP7 GPIO_GPIO7 /* GPIO_LDD13 */
31 #define BADGE4_GPIO_LGP8 GPIO_GPIO8 /* GPIO_LDD14 */
32 #define BADGE4_GPIO_LGP9 GPIO_GPIO9 /* GPIO_LDD15 */
33 #define BADGE4_GPIO_GPA_VID GPIO_GPIO10 /* Video expansion */
34 #define BADGE4_GPIO_GPB_VID GPIO_GPIO11 /* Video expansion */
35 #define BADGE4_GPIO_GPC_VID GPIO_GPIO12 /* Video expansion */
37 #define BADGE4_GPIO_UART_HS1 GPIO_GPIO13
38 #define BADGE4_GPIO_UART_HS2 GPIO_GPIO14
40 #define BADGE4_GPIO_MUXSEL0 GPIO_GPIO15
41 #define BADGE4_GPIO_TESTPT_J7 GPIO_GPIO16
43 #define BADGE4_GPIO_SDSDA GPIO_GPIO17 /* SDRAM SPD Data */
44 #define BADGE4_GPIO_SDSCL GPIO_GPIO18 /* SDRAM SPD Clock */
45 #define BADGE4_GPIO_SDTYP0 GPIO_GPIO19 /* SDRAM Type Control */
46 #define BADGE4_GPIO_SDTYP1 GPIO_GPIO20 /* SDRAM Type Control */
48 #define BADGE4_GPIO_BGNT_1111 GPIO_GPIO21 /* GPIO_MBGNT */
49 #define BADGE4_GPIO_BREQ_1111 GPIO_GPIO22 /* GPIO_TREQA */
51 #define BADGE4_GPIO_TESTPT_J6 GPIO_GPIO23
53 #define BADGE4_GPIO_PCMEN5V GPIO_GPIO24 /* 5V power */
55 #define BADGE4_GPIO_SA1111_NRST GPIO_GPIO25 /* SA-1111 nRESET */
57 #define BADGE4_GPIO_TESTPT_J5 GPIO_GPIO26
59 #define BADGE4_GPIO_CLK_1111 GPIO_GPIO27 /* GPIO_32_768kHz */
61 /* Interrupts on the BadgePAD 4 */
62 #define BADGE4_IRQ_GPIO_SA1111 IRQ_GPIO0 /* SA-1111 interrupt */
65 /* PCM5ENV Usage tracking */
67 #define BADGE4_5V_PCMCIA_SOCK0 (1<<0)
68 #define BADGE4_5V_PCMCIA_SOCK1 (1<<1)
69 #define BADGE4_5V_PCMCIA_SOCK(n) (1<<(n))
70 #define BADGE4_5V_USB (1<<2)
71 #define BADGE4_5V_INITIALLY (1<<3)
74 extern void badge4_set_5V(unsigned subsystem
, int on
);