From: Marek Vasut Date: Sat, 2 Mar 2019 14:34:36 +0000 (+0100) Subject: rcar_gen3: drivers: pfc: Configure GP5_09 as input on ULCB X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b70cd5f0da50fe577f836ed908d0b0903fbbd6f;p=project%2Fbcm63xx%2Fatf.git rcar_gen3: drivers: pfc: Configure GP5_09 as input on ULCB Configure the GPIO5 09 pin as input on the ULCB board by default, since the pin is routed on the expansion connector and not connected to anything by default. Signed-off-by: Marek Vasut --- diff --git a/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c b/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c index 2f62bb29..e33005f5 100644 --- a/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c +++ b/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c @@ -1396,6 +1396,10 @@ void pfc_init_h3_v1(void) mmio_write_32(GPIO_INOUTSEL2, 0x00000400U); mmio_write_32(GPIO_INOUTSEL3, 0x0000C000U); mmio_write_32(GPIO_INOUTSEL4, 0x00000000U); +#if (RCAR_GEN3_ULCB == 1) + mmio_write_32(GPIO_INOUTSEL5, 0x0000000EU); +#else mmio_write_32(GPIO_INOUTSEL5, 0x0000020EU); +#endif mmio_write_32(GPIO_INOUTSEL6, 0x00013880U); } diff --git a/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c b/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c index 116fd82c..fd9be598 100644 --- a/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c +++ b/drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c @@ -1444,6 +1444,10 @@ void pfc_init_h3_v2(void) mmio_write_32(GPIO_INOUTSEL2, 0x00000400U); mmio_write_32(GPIO_INOUTSEL3, 0x0000C000U); mmio_write_32(GPIO_INOUTSEL4, 0x00000000U); +#if (RCAR_GEN3_ULCB == 1) + mmio_write_32(GPIO_INOUTSEL5, 0x0000000EU); +#else mmio_write_32(GPIO_INOUTSEL5, 0x0000020EU); +#endif mmio_write_32(GPIO_INOUTSEL6, 0x00013880U); } diff --git a/drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c b/drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c index fc12cd6e..3bb560ff 100644 --- a/drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c +++ b/drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c @@ -1526,6 +1526,10 @@ void pfc_init_m3(void) mmio_write_32(GPIO_INOUTSEL2, 0x00000400U); mmio_write_32(GPIO_INOUTSEL3, 0x0000C000U); mmio_write_32(GPIO_INOUTSEL4, 0x00000000U); +#if (RCAR_GEN3_ULCB == 1) + mmio_write_32(GPIO_INOUTSEL5, 0x0000000EU); +#else mmio_write_32(GPIO_INOUTSEL5, 0x0000020EU); +#endif mmio_write_32(GPIO_INOUTSEL6, 0x00013880U); } diff --git a/drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c b/drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c index 07f08fa0..408d8793 100644 --- a/drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c +++ b/drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c @@ -1432,6 +1432,10 @@ void pfc_init_m3n(void) mmio_write_32(GPIO_INOUTSEL2, 0x00000400U); mmio_write_32(GPIO_INOUTSEL3, 0x0000C000U); mmio_write_32(GPIO_INOUTSEL4, 0x00000000U); +#if (RCAR_GEN3_ULCB == 1) + mmio_write_32(GPIO_INOUTSEL5, 0x0000000EU); +#else mmio_write_32(GPIO_INOUTSEL5, 0x0000020EU); +#endif mmio_write_32(GPIO_INOUTSEL6, 0x00013880U); }