From 666c172d385823eefdfeb99ae3a4c20fd1b711f9 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Tue, 3 Apr 2018 09:57:33 +0200 Subject: lib/devicetree: Integrate flattened devicetree support * Adapt to coreboot coding style. * Use coreboot's endian conversion functions. * Fix header and header guards. * Get rid of unused functions. * Add Kconfig to build it on ramstage. * Replace size32 with ALIGN_UP and DIV_ROUND_UP. * Add NULL pointer checks * Convert constants to defines Required for Cavium's BDK and uImage FIT support. Change-Id: I6e6cd9f78fb402bd54d684097326d26eb78d552a Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/25523 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/lib/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/Kconfig') diff --git a/src/lib/Kconfig b/src/lib/Kconfig index bce0291b9b..eb4c16eb51 100644 --- a/src/lib/Kconfig +++ b/src/lib/Kconfig @@ -17,6 +17,12 @@ config RAMSTAGE_LIBHWBASE help Selected by features that require `libhwbase` in ramstage. +config FLATTENED_DEVICE_TREE + bool + help + Selected by features that require to parse and manipulate a flattened + devicetree in ramstage. + if RAMSTAGE_LIBHWBASE config HWBASE_DYNAMIC_MMIO -- cgit v1.2.3