diff options
author | Samuel Holland <samuel@sholland.org> | 2020-10-24 10:21:50 -0500 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2020-11-17 00:42:20 +0000 |
commit | 467b7e52ec8920034b0d5ffb23a9ed72cd26bad3 (patch) | |
tree | 1394f89b836075cdc34fb41ea06378a4a2ae2d78 /drivers/gpio/imx_rgpio2p.c | |
parent | 2fcd74899c940f5bd474dab0c4f53b5d6e2185b3 (diff) |
sunxi: board: Add a helper to get the SPL DT name
This moves the validity checking and typecasts all to one place away
from the string comparison logic, and it detangles the compile-time
and runtime control flow.
The new helper will also be used by U-Boot proper in a future commit.
Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
[Andre: protect new function with CONFIG_SPL_LOAD_FIT]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/gpio/imx_rgpio2p.c')
0 files changed, 0 insertions, 0 deletions