Skip to content

Commit

Permalink
intel_galileo_rev_g.c: Retrieve GPIO base numbers from device paths
Browse files Browse the repository at this point in the history
A first step to enable mraa on upstream kernels: use
mraa_get_gpiochip_base to retrieve the base numbers for all GPIOs we use
as output or mux pin. Devices paths are used as stable anchors.

Upstream kernels generate conceptually unpredictable numberings because
they prefer dynamic base numbers over the hard-coded bases the vendor
kernels use so far.

GPIO usage has been tested successfully on an IOT2040 with both Yocto
and upstream kernel.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Jun 2, 2017
1 parent 034d787 commit 6fd8a3c
Showing 1 changed file with 180 additions and 152 deletions.

0 comments on commit 6fd8a3c

Please sign in to comment.