1 /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-i.h
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
6 * http://armlinux.simtec.co.uk/
8 * GPIO Bank I register and configuration definitions
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #define S3C64XX_GPICON (S3C64XX_GPI_BASE + 0x00)
16 #define S3C64XX_GPIDAT (S3C64XX_GPI_BASE + 0x04)
17 #define S3C64XX_GPIPUD (S3C64XX_GPI_BASE + 0x08)
18 #define S3C64XX_GPICONSLP (S3C64XX_GPI_BASE + 0x0c)
19 #define S3C64XX_GPIPUDSLP (S3C64XX_GPI_BASE + 0x10)
21 #define S3C64XX_GPI_CONMASK(__gpio) (0x3 << ((__gpio) * 2))
22 #define S3C64XX_GPI_INPUT(__gpio) (0x0 << ((__gpio) * 2))
23 #define S3C64XX_GPI_OUTPUT(__gpio) (0x1 << ((__gpio) * 2))
25 #define S3C64XX_GPI0_VD0 (0x02 << 0)
26 #define S3C64XX_GPI1_VD1 (0x02 << 2)
27 #define S3C64XX_GPI2_VD2 (0x02 << 4)
28 #define S3C64XX_GPI3_VD3 (0x02 << 6)
29 #define S3C64XX_GPI4_VD4 (0x02 << 8)
30 #define S3C64XX_GPI5_VD5 (0x02 << 10)
31 #define S3C64XX_GPI6_VD6 (0x02 << 12)
32 #define S3C64XX_GPI7_VD7 (0x02 << 14)
33 #define S3C64XX_GPI8_VD8 (0x02 << 16)
34 #define S3C64XX_GPI9_VD9 (0x02 << 18)
35 #define S3C64XX_GPI10_VD10 (0x02 << 20)
36 #define S3C64XX_GPI11_VD11 (0x02 << 22)
37 #define S3C64XX_GPI12_VD12 (0x02 << 24)
38 #define S3C64XX_GPI13_VD13 (0x02 << 26)
39 #define S3C64XX_GPI14_VD14 (0x02 << 28)
40 #define S3C64XX_GPI15_VD15 (0x02 << 30)