diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-10-10 23:35:34 -0700 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-10 17:24:21 +0900 |
commit | 79990c164dcc7514398ca824a609c74cb5f563da (patch) | |
tree | eb6e03c1e1d0d4ea77665f28921b29e5e639f7f6 /arch/arm/mach-shmobile/board-bockw-reference.c | |
parent | b6d3eba338b4a24e49947fc45542fca7b76dda9a (diff) |
ARM: shmobile: bockw: add pin pull-up setting for SDHI
SDHI CD/WP pin needs pull-up
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/board-bockw-reference.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-bockw-reference.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index c7b217d4d1c..6586f5c40af 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c @@ -38,9 +38,13 @@ static const struct pinctrl_map bockw_pinctrl_map[] = { #define FPGA 0x18200000 #define IRQ0MR 0x30 #define COMCTLR 0x101c + +#define PFC 0xfffc0000 +#define PUPR4 0x110 static void __init bockw_init(void) { void __iomem *fpga; + void __iomem *pfc; r8a7778_clock_init(); r8a7778_init_irq_extpin_dt(1); @@ -66,6 +70,17 @@ static void __init bockw_init(void) iounmap(fpga); } + pfc = ioremap_nocache(PFC, 0x200); + if (pfc) { + /* + * FIXME + * + * SDHI CD/WP pin needs pull-up + */ + iowrite32(ioread32(pfc + PUPR4) | (3 << 26), pfc + PUPR4); + iounmap(pfc); + } + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } |