dm: core: Inline a few ofnode functions in SPL
authorSimon Glass <sjg@chromium.org>
Thu, 17 Dec 2020 00:25:06 +0000 (17:25 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Dec 2020 03:39:26 +0000 (20:39 -0700)
commitec1add1e51affd4aacc308dc37439ea13dc1b70e
tree6b9283b58c8684a239d25492c2e8a8b1319be8ca
parent73da3d2cffc601b2761c4aa32492b88f87c363c5
dm: core: Inline a few ofnode functions in SPL

A recent change to unify the flattree/livetree code introduced a small
size increase in SPL on some boards. For example SPL code size for
px30-core-ctouch2-px30 increased by 40 bytes.

To address this we can take advantage of the fact that some of the ofnode
functions are only called a few times in SPL, so it is worth inlining
them.

Add new Kconfig options to control this. These functions are not inlined
for U-Boot proper, since this increases code size.

Fixes: 2ebea5eaebf ("dm: core: Combine the flattree and livetree binding code")
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/Kconfig
drivers/core/ofnode.c
include/dm/ofnode.h