1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * arch/arm/mach-sa1100/include/mach/badge4.h
4 *
5 *   Tim Connors <connors@hpl.hp.com>
6 *   Christopher Hoover <ch@hpl.hp.com>
7 *
8 * Copyright (C) 2002 Hewlett-Packard Company
9 */
10
11#ifndef __ASM_ARCH_HARDWARE_H
12#error "include <mach/hardware.h> instead"
13#endif
14
15#define BADGE4_SA1111_BASE		(0x48000000)
16
17/* GPIOs on the BadgePAD 4 */
18#define BADGE4_GPIO_INT_1111		GPIO_GPIO0   /* SA-1111 IRQ */
19
20#define BADGE4_GPIO_INT_VID		GPIO_GPIO1   /* Video expansion */
21#define BADGE4_GPIO_LGP2		GPIO_GPIO2   /* GPIO_LDD8 */
22#define BADGE4_GPIO_LGP3		GPIO_GPIO3   /* GPIO_LDD9 */
23#define BADGE4_GPIO_LGP4		GPIO_GPIO4   /* GPIO_LDD10 */
24#define BADGE4_GPIO_LGP5		GPIO_GPIO5   /* GPIO_LDD11 */
25#define BADGE4_GPIO_LGP6		GPIO_GPIO6   /* GPIO_LDD12 */
26#define BADGE4_GPIO_LGP7		GPIO_GPIO7   /* GPIO_LDD13 */
27#define BADGE4_GPIO_LGP8		GPIO_GPIO8   /* GPIO_LDD14 */
28#define BADGE4_GPIO_LGP9		GPIO_GPIO9   /* GPIO_LDD15 */
29#define BADGE4_GPIO_GPA_VID		GPIO_GPIO10  /* Video expansion */
30#define BADGE4_GPIO_GPB_VID		GPIO_GPIO11  /* Video expansion */
31#define BADGE4_GPIO_GPC_VID		GPIO_GPIO12  /* Video expansion */
32
33#define BADGE4_GPIO_UART_HS1		GPIO_GPIO13
34#define BADGE4_GPIO_UART_HS2		GPIO_GPIO14
35
36#define BADGE4_GPIO_MUXSEL0		GPIO_GPIO15
37#define BADGE4_GPIO_TESTPT_J7		GPIO_GPIO16
38
39#define BADGE4_GPIO_SDSDA		GPIO_GPIO17  /* SDRAM SPD Data */
40#define BADGE4_GPIO_SDSCL		GPIO_GPIO18  /* SDRAM SPD Clock */
41#define BADGE4_GPIO_SDTYP0		GPIO_GPIO19  /* SDRAM Type Control */
42#define BADGE4_GPIO_SDTYP1		GPIO_GPIO20  /* SDRAM Type Control */
43
44#define BADGE4_GPIO_BGNT_1111		GPIO_GPIO21  /* GPIO_MBGNT */
45#define BADGE4_GPIO_BREQ_1111		GPIO_GPIO22  /* GPIO_TREQA */
46
47#define BADGE4_GPIO_TESTPT_J6		GPIO_GPIO23
48
49#define BADGE4_GPIO_PCMEN5V		GPIO_GPIO24  /* 5V power */
50
51#define BADGE4_GPIO_SA1111_NRST		GPIO_GPIO25  /* SA-1111 nRESET */
52
53#define BADGE4_GPIO_TESTPT_J5		GPIO_GPIO26
54
55#define BADGE4_GPIO_CLK_1111		GPIO_GPIO27  /* GPIO_32_768kHz */
56
57/* Interrupts on the BadgePAD 4 */
58#define BADGE4_IRQ_GPIO_SA1111		IRQ_GPIO0    /* SA-1111 interrupt */
59
60
61/* PCM5ENV Usage tracking */
62
63#define BADGE4_5V_PCMCIA_SOCK0		(1<<0)
64#define BADGE4_5V_PCMCIA_SOCK1		(1<<1)
65#define BADGE4_5V_PCMCIA_SOCK(n)	(1<<(n))
66#define BADGE4_5V_USB			(1<<2)
67#define BADGE4_5V_INITIALLY		(1<<3)
68
69#ifndef __ASSEMBLY__
70extern void badge4_set_5V(unsigned subsystem, int on);
71#endif
72