libfdt: Add support for disabling dtb checks

Support ASSUME_VALID_DTB to disable some sanity checks

If we assume that the DTB itself is valid then we can skip some checks and
save code space. Add various conditions to handle this.

Signed-off-by: Simon Glass <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: David Gibson <[email protected]>
4 files changed