Skip to content

Commit

Permalink
ARM: shmobile: bockw: add pin pull-up setting for SDHI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Simon Horman committed Dec 10, 2013
1 parent b6d3eba commit 79990c1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arch/arm/mach-shmobile/board-bockw-reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit 79990c1

Please sign in to comment.