io/gpio: support mapping of virtual pin numbers to physical numbers

Each board supports different number of GPIO pins with different
layouts. Map allows you to map the virtual pin number space to
the actual physical pin number space.

Mapiing is considered to be added to improve the portability of the
code depends on this library.

Change-Id: I30104c6a9f37e82e2cde53214868acc986b1204f
Reviewed-on: https://go-review.googlesource.com/24219
Reviewed-by: Matt Aimonetti <mattaimonetti@gmail.com>
Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
1 file changed