summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5p64x0/include/mach/regs-gpio.h
blob: cfdfa4fdadf2b60f5ba4019fb0ff2a0716208b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* linux/arch/arm/mach-s5p64x0/include/mach/regs-gpio.h
 *
 * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * S5P64X0 - GPIO register definitions
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/

#ifndef __ASM_ARCH_REGS_GPIO_H
#define __ASM_ARCH_REGS_GPIO_H __FILE__

#include <mach/map.h>

/* Base addresses for each of the banks */

#define S5P64X0_GPA_BASE		(S5P_VA_GPIO + 0x0000)
#define S5P64X0_GPB_BASE		(S5P_VA_GPIO + 0x0020)
#define S5P64X0_GPC_BASE		(S5P_VA_GPIO + 0x0040)
#define S5P64X0_GPF_BASE		(S5P_VA_GPIO + 0x00A0)
#define S5P64X0_GPG_BASE		(S5P_VA_GPIO + 0x00C0)
#define S5P64X0_GPH_BASE		(S5P_VA_GPIO + 0x00E0)
#define S5P64X0_GPI_BASE		(S5P_VA_GPIO + 0x0100)
#define S5P64X0_GPJ_BASE		(S5P_VA_GPIO + 0x0120)
#define S5P64X0_GPN_BASE		(S5P_VA_GPIO + 0x0830)
#define S5P64X0_GPP_BASE		(S5P_VA_GPIO + 0x0160)
#define S5P64X0_GPR_BASE		(S5P_VA_GPIO + 0x0290)

#define S5P6450_GPD_BASE		(S5P_VA_GPIO + 0x0060)
#define S5P6450_GPK_BASE		(S5P_VA_GPIO + 0x0140)
#define S5P6450_GPQ_BASE		(S5P_VA_GPIO + 0x0180)
#define S5P6450_GPS_BASE		(S5P_VA_GPIO + 0x0300)

#define S5P64X0_SPCON0			(S5P_VA_GPIO + 0x1A0)
#define S5P64X0_SPCON0_LCD_SEL_MASK	(0x3 << 0)
#define S5P64X0_SPCON0_LCD_SEL_RGB	(0x1 << 0)
#define S5P64X0_SPCON1			(S5P_VA_GPIO + 0x2B0)

#define S5P64X0_MEM0CONSLP0		(S5P_VA_GPIO + 0x1C0)
#define S5P64X0_MEM0CONSLP1		(S5P_VA_GPIO + 0x1C4)
#define S5P64X0_MEM0DRVCON		(S5P_VA_GPIO + 0x1D0)
#define S5P64X0_MEM1DRVCON		(S5P_VA_GPIO + 0x1D4)

#define S5P64X0_EINT12CON		(S5P_VA_GPIO + 0x200)
#define S5P64X0_EINT12FLTCON		(S5P_VA_GPIO + 0x220)
#define S5P64X0_EINT12MASK		(S5P_VA_GPIO + 0x240)

/* External interrupt control registers for group0 */

#define EINT0CON0_OFFSET		(0x900)
#define EINT0FLTCON0_OFFSET		(0x910)
#define EINT0FLTCON1_OFFSET		(0x914)
#define EINT0MASK_OFFSET		(0x920)
#define EINT0PEND_OFFSET		(0x924)

#define S5P64X0_EINT0CON0		(S5P_VA_GPIO + EINT0CON0_OFFSET)
#define S5P64X0_EINT0FLTCON0		(S5P_VA_GPIO + EINT0FLTCON0_OFFSET)
#define S5P64X0_EINT0FLTCON1		(S5P_VA_GPIO + EINT0FLTCON1_OFFSET)
#define S5P64X0_EINT0MASK		(S5P_VA_GPIO + EINT0MASK_OFFSET)
#define S5P64X0_EINT0PEND		(S5P_VA_GPIO + EINT0PEND_OFFSET)

#define S5P64X0_SLPEN			(S5P_VA_GPIO + 0x930)
#define S5P64X0_SLPEN_USE_xSLP		(1 << 0)

#endif /* __ASM_ARCH_REGS_GPIO_H */
OpenPOWER on IntegriCloud