diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-11-10 21:45:43 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-11-11 02:45:35 -0500 |
commit | 9b49139b34a66907662e0be8efe79316dc63f8e0 (patch) | |
tree | 545a6b85d86536e9be40cf80857f9c55de50eef5 /arch/arm/mach-shmobile/pfc-sh7377.c | |
parent | 972c3fb69cd1cd8d549b8a06ce42611eab405c20 (diff) |
ARM: mach-shmobile: move helper macro PORTCR to sh_pfc.h
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/pfc-sh7377.c')
-rw-r--r-- | arch/arm/mach-shmobile/pfc-sh7377.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/mach-shmobile/pfc-sh7377.c b/arch/arm/mach-shmobile/pfc-sh7377.c index fb3cfd3cff46..2f10511946ad 100644 --- a/arch/arm/mach-shmobile/pfc-sh7377.c +++ b/arch/arm/mach-shmobile/pfc-sh7377.c | |||
@@ -1300,23 +1300,6 @@ static struct pinmux_gpio pinmux_gpios[] = { | |||
1300 | GPIO_FN(RESETOUTS), | 1300 | GPIO_FN(RESETOUTS), |
1301 | }; | 1301 | }; |
1302 | 1302 | ||
1303 | /* helper for top 4 bits in PORTnCR */ | ||
1304 | #define PCRH(in, in_pd, in_pu, out) \ | ||
1305 | 0, (out), (in), 0, \ | ||
1306 | 0, 0, 0, 0, \ | ||
1307 | 0, 0, (in_pd), 0, \ | ||
1308 | 0, 0, (in_pu), 0 | ||
1309 | |||
1310 | #define PORTCR(nr, reg) \ | ||
1311 | { PINMUX_CFG_REG("PORT" nr "CR", reg, 8, 4) { \ | ||
1312 | PCRH(PORT##nr##_IN, PORT##nr##_IN_PD, \ | ||
1313 | PORT##nr##_IN_PU, PORT##nr##_OUT), \ | ||
1314 | PORT##nr##_FN0, PORT##nr##_FN1, \ | ||
1315 | PORT##nr##_FN2, PORT##nr##_FN3, \ | ||
1316 | PORT##nr##_FN4, PORT##nr##_FN5, \ | ||
1317 | PORT##nr##_FN6, PORT##nr##_FN7 } \ | ||
1318 | } | ||
1319 | |||
1320 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | 1303 | static struct pinmux_cfg_reg pinmux_config_regs[] = { |
1321 | PORTCR(0, 0xe6050000), /* PORT0CR */ | 1304 | PORTCR(0, 0xe6050000), /* PORT0CR */ |
1322 | PORTCR(1, 0xe6050001), /* PORT1CR */ | 1305 | PORTCR(1, 0xe6050001), /* PORT1CR */ |