OSDN Git Service

fsi/fsi-master-gpio: Add "no-gpio-delays" option
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 May 2018 01:06:38 +0000 (11:06 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Jun 2018 04:04:41 +0000 (14:04 +1000)
commitbc1099d2b2519fa0f6c7613d8de398df8438a36b
tree98cb568b10bff23b977ea82be4b8b804f34f5412
parent5d0d16f135c0cb7a12e417cbe12b271524ce4d40
fsi/fsi-master-gpio: Add "no-gpio-delays" option

This adds support for an optional device-tree property that
makes the driver skip all the delays around clocking the
GPIOs and set it in the device-tree of common POWER9 based
OpenPower platforms.

This useful on chips like the AST2500 where the GPIO block is
running at a fairly low clock frequency (25Mhz typically). In
this case, the delays are unnecessary and due to the low
precision of the timers, actually quite harmful in terms of
performance.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Tested-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
drivers/fsi/fsi-master-gpio.c