nitrogen6x: reserve used gpios
authorTroy Kisky <troy.kisky@boundarydevices.com>
Mon, 29 Jul 2019 19:15:56 +0000 (12:15 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:35:16 +0000 (16:35 +0200)
commit1b51e5f4cd2a62673a5391a5e8d47a03daf1c12d
tree71dd8f989088afa1d5b5bb6af8c9d3895532e66c
parentcdcaee95188fe8ca75e9701680ce14129c193de0
nitrogen6x: reserve used gpios

This prevents messages like
gpio@20a0000: get_value: error: gpio GPIO2_2 not reserved

when CONFIG_DM_GPIO is enabled.

Also, when CONFIG_DM_GPIO is enabled, checkboard is too
early to use gpio_get_value, so read it directly on failure.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
board/boundary/nitrogen6x/nitrogen6x.c