ARM: OMAP1: ams-delta: add GPIO lookup tables
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Fri, 18 May 2018 21:09:49 +0000 (23:09 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 23 May 2018 18:47:19 +0000 (11:47 -0700)
commit0486738928bf06380dd108454fb75544430cd4bb
tree2df75381632b5101beedac0d807e6ca60bf58773
parent3bb3799cd4233b7c24622ae8c41455fb27a55c0f
ARM: OMAP1: ams-delta: add GPIO lookup tables

Scope of the change is limited to GPIO pins used by board specific
device drivers which will be updated by follow-up patches of the
series. Those are some OMAP GPIO (gpio-0-15) and most of Amstrad Delta
latch2 GPIO bank pins. Remaining pins of those banks, as well as
Amstrad Delta latch1 pins, will be addressed later.

Assign a label ("latch2") to the bank, enumerate its pins and put that
information, together with OMAP GPIO bank pins, in GPIO lookup tables.
Assign lookup tables to devices as soon as those devices are registered
and their names can be obtained.

A step froward in:
- removal of hard-coded GPIO numbers from drivers,
- removal of board mach includes from drivers,
- switching to dynamically assigned GPIO numbers.

Created and compile tested agains linux-4.17-rc3

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c