]> git.baikalelectronics.ru Git - kernel.git/commit
fsi: master-gpio: Add external mode
authorJeremy Kerr <jk@ozlabs.org>
Mon, 12 Feb 2018 05:15:42 +0000 (15:45 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Mar 2018 18:11:00 +0000 (19:11 +0100)
commit6a0aaa7075db3db00a89261eced9274681e89f9e
tree5b9523b064fd09389d790569f582b83044949084
parent60c6d4d57acad6e32d3e932978ea982bffb66522
fsi: master-gpio: Add external mode

This change introduces an 'external mode' for GPIO-based FSI masters,
allowing the clock and data lines to be driven by an external source.
For example, external mode is selected by a user when an external debug
device is attached to the FSI pins.

To do this, we need to set specific states for the trans, mux and enable
GPIOs, and prevent access to clk & data from the FSI core code (by
returning EBUSY).

External mode is controlled by a sysfs attribute, so add the relevant
information to Documentation/ABI/

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-driver-fsi-master-gpio [new file with mode: 0644]
drivers/fsi/fsi-master-gpio.c