]> Git Repo - J-u-boot.git/commit
gpio: Add a simple GPIO API for SPL
authorSimon Glass <[email protected]>
Mon, 21 Jan 2019 21:53:21 +0000 (14:53 -0700)
committerPhilipp Tomsich <[email protected]>
Fri, 1 Feb 2019 15:59:12 +0000 (16:59 +0100)
commit5c01d1c0d0e673dbd5739256e77e9dca9dc74816
treeca8627bed692af68d73aa2bd5f9f3a6ffef9d071
parent66f657d15b5d95a80ea8329002762118a97aae17
gpio: Add a simple GPIO API for SPL

In space-constrained environments or before driver model is available, it
is sometimes necessary to set GPIO values. Add an SPL API for this, to
allow early board code to change GPIOs. The caller must provide the
register address, so that the drivers can be fairly generic.

This API can be implemented by GPIO drivers, behind a suitable guard,
like #ifdef CONFIG_SPL_BUILD.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
include/spl_gpio.h [new file with mode: 0644]
This page took 0.029626 seconds and 4 git commands to generate.