ARM: sa1100/neponset: add GPIO drivers for control and modem registers
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2016 07:49:45 +0000 (08:49 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 1 Jan 2018 00:50:05 +0000 (00:50 +0000)
commitf85fac0efa9087a9311f3d2bdc227ded3ac95db5
treead17d2593ee712df0affb8ae6c80582dfef9dbf7
parentb955153bfa68d7a9fa2be40bb606cf9578b66511
ARM: sa1100/neponset: add GPIO drivers for control and modem registers

The NCR, MDM_CTL* and AUD registers manipulate the state of external
signals (eg, the RTS, DTR signals and the ethernet oscillator enable
signal) or indicate the state of external signals (eg, CTS, DSR).

Where these registers can be written, the current value can be read
back, which relieves us from having to maintain a software copy of
the current state.

Model these registers as fixed-direction GPIO registers.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mach-sa1100/neponset.c