aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h
diff options
context:
space:
mode:
authordmitry pervushin <dpervushin@embeddedalley.com>2009-05-31 08:31:55 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-05-31 08:55:54 -0400
commit3f52326a85666c1cb0210eb5556ef3d483933cfc (patch)
treeb85b7fb70efc3c8ee4ea440f9d6ec72b8e5c12a8 /arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h
parente0421bbe6479816ea16c6553b8f376c592e36a85 (diff)
[ARM] 5531/1: Freescale STMP: get rid of HW_zzz macros [2/3]
Replace HW_zzz register access macros by regular __raw_readl/__raw_writel calls Signed-off-by: dmitry pervushin <dpervushin@embeddedalley.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h')
-rw-r--r--arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h211
1 files changed, 70 insertions, 141 deletions
diff --git a/arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h b/arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h
index b114ecd9a5eb..d5efce2388c7 100644
--- a/arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h
+++ b/arch/arm/mach-stmp37xx/include/mach/regs-pinctrl.h
@@ -1,7 +1,8 @@
1/* 1/*
2 * STMP pinmux register definitions 2 * stmp37xx: PINCTRL register definitions
3 * 3 *
4 * Copyright (c) 2008 Freescale Semiconductor 4 * Copyright (c) 2008 Freescale Semiconductor
5 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
5 * 6 *
6 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
@@ -17,143 +18,71 @@
17 * along with this program; if not, write to the Free Software 18 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */ 20 */
20#ifndef _INCLUDE_ASM_ARCH_REGS_PINCTRL_H 21#ifndef _MACH_REGS_PINCTRL
21#define _INCLUDE_ASM_ARCH_REGS_PINCTRL_H 22#define _MACH_REGS_PINCTRL
22 23
23#include <mach/stmp3xxx_regs.h> 24#define REGS_PINCTRL_BASE (STMP3XXX_REGS_BASE + 0x18000)
24 25
25#ifndef REGS_PINCTRL_BASE 26#define HW_PINCTRL_MUXSEL0 0x100
26#define REGS_PINCTRL_BASE (REGS_BASE + 0x00018000) 27#define HW_PINCTRL_MUXSEL1 0x110
27#endif /* REGS_PINCTRL_BASE */ 28#define HW_PINCTRL_MUXSEL2 0x120
28 29#define HW_PINCTRL_MUXSEL3 0x130
29HW_REGISTER(HW_PINCTRL_CTRL, REGS_PINCTRL_BASE, 0) 30#define HW_PINCTRL_MUXSEL4 0x140
30 31#define HW_PINCTRL_MUXSEL5 0x150
31#define HW_PINCTRL_MUXSEL0_ADDR (REGS_PINCTRL_BASE + 0x100) 32#define HW_PINCTRL_MUXSEL6 0x160
32HW_REGISTER(HW_PINCTRL_MUXSEL0, REGS_PINCTRL_BASE, 0x100) 33#define HW_PINCTRL_MUXSEL7 0x170
33#define HW_PINCTRL_MUXSEL1_ADDR (REGS_PINCTRL_BASE + 0x110) 34
34HW_REGISTER(HW_PINCTRL_MUXSEL1, REGS_PINCTRL_BASE, 0x110) 35#define HW_PINCTRL_DRIVE0 0x200
35#define HW_PINCTRL_MUXSEL2_ADDR (REGS_PINCTRL_BASE + 0x120) 36#define HW_PINCTRL_DRIVE1 0x210
36HW_REGISTER(HW_PINCTRL_MUXSEL2, REGS_PINCTRL_BASE, 0x120) 37#define HW_PINCTRL_DRIVE2 0x220
37#define HW_PINCTRL_MUXSEL3_ADDR (REGS_PINCTRL_BASE + 0x130) 38#define HW_PINCTRL_DRIVE3 0x230
38HW_REGISTER(HW_PINCTRL_MUXSEL3, REGS_PINCTRL_BASE, 0x130) 39#define HW_PINCTRL_DRIVE4 0x240
39#define BM_PINCTRL_MUXSEL3_BANK1_PIN28 0x03000000 40#define HW_PINCTRL_DRIVE5 0x250
40#define HW_PINCTRL_MUXSEL4_ADDR (REGS_PINCTRL_BASE + 0x140) 41#define HW_PINCTRL_DRIVE6 0x260
41HW_REGISTER(HW_PINCTRL_MUXSEL4, REGS_PINCTRL_BASE, 0x140) 42#define HW_PINCTRL_DRIVE7 0x270
42#define BM_PINCTRL_MUXSEL4_BANK2_PIN03 0x000000C0 43#define HW_PINCTRL_DRIVE8 0x280
43#define BM_PINCTRL_MUXSEL4_BANK2_PIN04 0x00000300 44#define HW_PINCTRL_DRIVE9 0x290
44#define HW_PINCTRL_MUXSEL5_ADDR (REGS_PINCTRL_BASE + 0x150) 45#define HW_PINCTRL_DRIVE10 0x2A0
45HW_REGISTER(HW_PINCTRL_MUXSEL5, REGS_PINCTRL_BASE, 0x150) 46#define HW_PINCTRL_DRIVE11 0x2B0
46#define HW_PINCTRL_MUXSEL6_ADDR (REGS_PINCTRL_BASE + 0x160) 47#define HW_PINCTRL_DRIVE12 0x2C0
47HW_REGISTER(HW_PINCTRL_MUXSEL6, REGS_PINCTRL_BASE, 0x160) 48#define HW_PINCTRL_DRIVE13 0x2D0
48#define HW_PINCTRL_MUXSEL7_ADDR (REGS_PINCTRL_BASE + 0x170) 49#define HW_PINCTRL_DRIVE14 0x2E0
49HW_REGISTER(HW_PINCTRL_MUXSEL7, REGS_PINCTRL_BASE, 0x170) 50
50 51#define HW_PINCTRL_PULL0 0x300
51HW_REGISTER(HW_PINCTRL_DRIVE0, REGS_PINCTRL_BASE, 0x200) 52#define HW_PINCTRL_PULL1 0x310
52#define HW_PINCTRL_DRIVE0_ADDR (REGS_PINCTRL_BASE + 0x200) 53#define HW_PINCTRL_PULL2 0x320
53HW_REGISTER(HW_PINCTRL_DRIVE1, REGS_PINCTRL_BASE, 0x210) 54#define HW_PINCTRL_PULL3 0x330
54#define HW_PINCTRL_DRIVE1_ADDR (REGS_PINCTRL_BASE + 0x210) 55
55HW_REGISTER(HW_PINCTRL_DRIVE2, REGS_PINCTRL_BASE, 0x220) 56#define HW_PINCTRL_DOUT0 0x400
56#define HW_PINCTRL_DRIVE2_ADDR (REGS_PINCTRL_BASE + 0x220) 57#define HW_PINCTRL_DOUT1 0x410
57HW_REGISTER(HW_PINCTRL_DRIVE3, REGS_PINCTRL_BASE, 0x230) 58#define HW_PINCTRL_DOUT2 0x420
58#define HW_PINCTRL_DRIVE3_ADDR (REGS_PINCTRL_BASE + 0x230) 59
59HW_REGISTER(HW_PINCTRL_DRIVE4, REGS_PINCTRL_BASE, 0x240) 60#define HW_PINCTRL_DIN0 0x500
60#define HW_PINCTRL_DRIVE4_ADDR (REGS_PINCTRL_BASE + 0x240) 61#define HW_PINCTRL_DIN1 0x510
61HW_REGISTER(HW_PINCTRL_DRIVE5, REGS_PINCTRL_BASE, 0x250) 62#define HW_PINCTRL_DIN2 0x520
62#define HW_PINCTRL_DRIVE5_ADDR (REGS_PINCTRL_BASE + 0x250) 63
63HW_REGISTER(HW_PINCTRL_DRIVE6, REGS_PINCTRL_BASE, 0x260) 64#define HW_PINCTRL_DOE0 0x600
64#define HW_PINCTRL_DRIVE6_ADDR (REGS_PINCTRL_BASE + 0x260) 65#define HW_PINCTRL_DOE1 0x610
65HW_REGISTER(HW_PINCTRL_DRIVE7, REGS_PINCTRL_BASE, 0x270) 66#define HW_PINCTRL_DOE2 0x620
66#define HW_PINCTRL_DRIVE7_ADDR (REGS_PINCTRL_BASE + 0x270) 67
67HW_REGISTER(HW_PINCTRL_DRIVE8, REGS_PINCTRL_BASE, 0x280) 68#define HW_PINCTRL_PIN2IRQ0 0x700
68#define HW_PINCTRL_DRIVE8_ADDR (REGS_PINCTRL_BASE + 0x280) 69#define HW_PINCTRL_PIN2IRQ1 0x710
69HW_REGISTER(HW_PINCTRL_DRIVE9, REGS_PINCTRL_BASE, 0x290) 70#define HW_PINCTRL_PIN2IRQ2 0x720
70#define HW_PINCTRL_DRIVE9_ADDR (REGS_PINCTRL_BASE + 0x290) 71
71HW_REGISTER(HW_PINCTRL_DRIVE10, REGS_PINCTRL_BASE, 0x2a0) 72#define HW_PINCTRL_IRQEN0 0x800
72#define HW_PINCTRL_DRIVE10_ADDR (REGS_PINCTRL_BASE + 0x2a0) 73#define HW_PINCTRL_IRQEN1 0x810
73HW_REGISTER(HW_PINCTRL_DRIVE11, REGS_PINCTRL_BASE, 0x2b0) 74#define HW_PINCTRL_IRQEN2 0x820
74#define HW_PINCTRL_DRIVE11_ADDR (REGS_PINCTRL_BASE + 0x2b0) 75
75HW_REGISTER(HW_PINCTRL_DRIVE12, REGS_PINCTRL_BASE, 0x2c0) 76#define HW_PINCTRL_IRQLEVEL0 0x900
76#define HW_PINCTRL_DRIVE12_ADDR (REGS_PINCTRL_BASE + 0x2c0) 77#define HW_PINCTRL_IRQLEVEL1 0x910
77HW_REGISTER(HW_PINCTRL_DRIVE13, REGS_PINCTRL_BASE, 0x2d0) 78#define HW_PINCTRL_IRQLEVEL2 0x920
78#define HW_PINCTRL_DRIVE13_ADDR (REGS_PINCTRL_BASE + 0x2d0) 79
79HW_REGISTER(HW_PINCTRL_DRIVE14, REGS_PINCTRL_BASE, 0x2e0) 80#define HW_PINCTRL_IRQPOL0 0xA00
80#define HW_PINCTRL_DRIVE14_ADDR (REGS_PINCTRL_BASE + 0x2e0) 81#define HW_PINCTRL_IRQPOL1 0xA10
81 82#define HW_PINCTRL_IRQPOL2 0xA20
82 83
83HW_REGISTER(HW_PINCTRL_PULL0, REGS_PINCTRL_BASE, 0x300) 84#define HW_PINCTRL_IRQSTAT0 0xB00
84#define HW_PINCTRL_PULL0_ADDR (REGS_PINCTRL_BASE + 0x300) 85#define HW_PINCTRL_IRQSTAT1 0xB10
85#define BM_PINCTRL_PULL0_BANK0_PIN01 0x00000002 86#define HW_PINCTRL_IRQSTAT2 0xB20
86#define BM_PINCTRL_PULL0_BANK0_PIN02 0x00000004 87
87#define BM_PINCTRL_PULL0_BANK0_PIN03 0x00000008 88#endif
88#define BM_PINCTRL_PULL0_BANK0_PIN04 0x00000010
89#define BM_PINCTRL_PULL0_BANK0_PIN20 0x00100000
90HW_REGISTER(HW_PINCTRL_PULL1, REGS_PINCTRL_BASE, 0x310)
91#define HW_PINCTRL_PULL1_ADDR (REGS_PINCTRL_BASE + 0x310)
92#define BM_PINCTRL_PULL1_BANK1_PIN22 0x00400000
93#define BM_PINCTRL_PULL1_BANK1_PIN24 0x01000000
94#define BM_PINCTRL_PULL1_BANK1_PIN25 0x02000000
95#define BM_PINCTRL_PULL1_BANK1_PIN26 0x04000000
96#define BM_PINCTRL_PULL1_BANK1_PIN27 0x08000000
97HW_REGISTER(HW_PINCTRL_PULL2, REGS_PINCTRL_BASE, 0x320)
98#define HW_PINCTRL_PULL2_ADDR (REGS_PINCTRL_BASE + 0x320)
99HW_REGISTER(HW_PINCTRL_PULL3, REGS_PINCTRL_BASE, 0x330)
100#define HW_PINCTRL_PULL3_ADDR (REGS_PINCTRL_BASE + 0x330)
101
102#define HW_PINCTRL_DOUT0_ADDR (REGS_PINCTRL_BASE + 0x400)
103HW_REGISTER(HW_PINCTRL_DOUT0, REGS_PINCTRL_BASE, 0x400)
104#define HW_PINCTRL_DOUT1_ADDR (REGS_PINCTRL_BASE + 0x410)
105HW_REGISTER(HW_PINCTRL_DOUT1, REGS_PINCTRL_BASE, 0x410)
106#define HW_PINCTRL_DOUT2_ADDR (REGS_PINCTRL_BASE + 0x420)
107HW_REGISTER(HW_PINCTRL_DOUT2, REGS_PINCTRL_BASE, 0x420)
108
109#define HW_PINCTRL_DIN0_ADDR (REGS_PINCTRL_BASE + 0x500)
110HW_REGISTER_RO(HW_PINCTRL_DIN0, REGS_PINCTRL_BASE, 0x500)
111#define HW_PINCTRL_DIN1_ADDR (REGS_PINCTRL_BASE + 0x510)
112HW_REGISTER_RO(HW_PINCTRL_DIN1, REGS_PINCTRL_BASE, 0x510)
113#define HW_PINCTRL_DIN2_ADDR (REGS_PINCTRL_BASE + 0x520)
114HW_REGISTER_RO(HW_PINCTRL_DIN2, REGS_PINCTRL_BASE, 0x520)
115
116#define HW_PINCTRL_DOE0_ADDR (REGS_PINCTRL_BASE + 0x600)
117HW_REGISTER(HW_PINCTRL_DOE0, REGS_PINCTRL_BASE, 0x600)
118#define HW_PINCTRL_DOE1_ADDR (REGS_PINCTRL_BASE + 0x610)
119HW_REGISTER(HW_PINCTRL_DOE1, REGS_PINCTRL_BASE, 0x610)
120#define HW_PINCTRL_DOE2_ADDR (REGS_PINCTRL_BASE + 0x620)
121HW_REGISTER(HW_PINCTRL_DOE2, REGS_PINCTRL_BASE, 0x620)
122
123HW_REGISTER(HW_PINCTRL_PIN2IRQ0, REGS_PINCTRL_BASE, 0x700)
124#define HW_PINCTRL_PIN2IRQ0_ADDR (REGS_PINCTRL_BASE + 0x700)
125HW_REGISTER(HW_PINCTRL_PIN2IRQ1, REGS_PINCTRL_BASE, 0x710)
126#define HW_PINCTRL_PIN2IRQ1_ADDR (REGS_PINCTRL_BASE + 0x710)
127HW_REGISTER(HW_PINCTRL_PIN2IRQ2, REGS_PINCTRL_BASE, 0x720)
128#define HW_PINCTRL_PIN2IRQ2_ADDR (REGS_PINCTRL_BASE + 0x720)
129
130HW_REGISTER(HW_PINCTRL_IRQEN0, REGS_PINCTRL_BASE, 0x800)
131#define HW_PINCTRL_IRQEN0_ADDR (REGS_PINCTRL_BASE + 0x800)
132HW_REGISTER(HW_PINCTRL_IRQEN1, REGS_PINCTRL_BASE, 0x810)
133#define HW_PINCTRL_IRQEN1_ADDR (REGS_PINCTRL_BASE + 0x810)
134HW_REGISTER(HW_PINCTRL_IRQEN2, REGS_PINCTRL_BASE, 0x820)
135#define HW_PINCTRL_IRQEN2_ADDR (REGS_PINCTRL_BASE + 0x820)
136
137HW_REGISTER(HW_PINCTRL_IRQLEVEL0, REGS_PINCTRL_BASE, 0x900)
138#define HW_PINCTRL_IRQLEVEL0_ADDR (REGS_PINCTRL_BASE + 0x900)
139HW_REGISTER(HW_PINCTRL_IRQLEVEL1, REGS_PINCTRL_BASE, 0x910)
140#define HW_PINCTRL_IRQLEVEL1_ADDR (REGS_PINCTRL_BASE + 0x910)
141HW_REGISTER(HW_PINCTRL_IRQLEVEL2, REGS_PINCTRL_BASE, 0x920)
142#define HW_PINCTRL_IRQLEVEL2_ADDR (REGS_PINCTRL_BASE + 0x920)
143
144HW_REGISTER(HW_PINCTRL_IRQPOL0, REGS_PINCTRL_BASE, 0xA00)
145#define HW_PINCTRL_IRQPOL0_ADDR (REGS_PINCTRL_BASE + 0xa00)
146HW_REGISTER(HW_PINCTRL_IRQPOL1, REGS_PINCTRL_BASE, 0xA10)
147#define HW_PINCTRL_IRQPOL1_ADDR (REGS_PINCTRL_BASE + 0xa10)
148HW_REGISTER(HW_PINCTRL_IRQPOL2, REGS_PINCTRL_BASE, 0xA20)
149#define HW_PINCTRL_IRQPOL2_ADDR (REGS_PINCTRL_BASE + 0xa20)
150
151HW_REGISTER(HW_PINCTRL_IRQSTAT0, REGS_PINCTRL_BASE, 0xB00)
152#define HW_PINCTRL_IRQSTAT0_ADDR (REGS_PINCTRL_BASE + 0xb00)
153HW_REGISTER(HW_PINCTRL_IRQSTAT1, REGS_PINCTRL_BASE, 0xB10)
154#define HW_PINCTRL_IRQSTAT1_ADDR (REGS_PINCTRL_BASE + 0xb10)
155HW_REGISTER(HW_PINCTRL_IRQSTAT2, REGS_PINCTRL_BASE, 0xB20)
156#define HW_PINCTRL_IRQSTAT2_ADDR (REGS_PINCTRL_BASE + 0xb20)
157
158#endif /* _INCLUDE_ASM_ARCH_REGS_PINCTRL_H */
159