rcar_gen3: drivers: cpld: fix power-off on reset
authorSergii Boryshchenko <sergii.boryshchenko@globallogic.com>
Thu, 30 Nov 2017 12:53:52 +0000 (14:53 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 29 Jan 2019 05:07:21 +0000 (06:07 +0100)
commit458a449cfd8bc80c4cfb11b3f8fdf5eb5ac1e11b
treea78d4a7024b09af4905e44c2c60846f1f92a8d0c
parent47366cb13c58cc37faec306b364b56ae04294a32
rcar_gen3: drivers: cpld: fix power-off on reset

Method cpld_reset_cpu of bl31 is called from the Linux kernel and uses
GPIO6, GPIO2 pins as SPI bus lines to control the CPLD device. But in the
kernel GPIO6_8 pin are initialized to work in interrupt mode instead of
the input/output mode. This leads to the fact that the SPI bus becomes
non-functional. In this patch we switch the GPIO6_8 pin back to the
input-output mode.

Signed-off-by: Sergii Boryshchenko <sergii.boryshchenko@globallogic.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/renesas/rcar/cpld/ulcb_cpld.c