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: 2ebea5ea ("dm: core: Combine the flattree and livetree binding code")
Signed-off-by: Simon Glass <sjg@chromium.org>
46 jobs for dm-next-23dec20 in 63 minutes and 34 seconds (queued for 2 seconds)
latest
Status Name Job ID Coverage
  Testsuites
passed Build envtools #193298
all

00:00:16

passed Build tools-only #193297
all

00:00:25

passed Check for configs without MAINTAINERS entry #193296
all

00:00:15

passed cppcheck #193292
all

00:01:04

passed grep TODO/FIXME/HACK #193293
all

00:00:36

passed htmldocs #193294
all

00:00:21

passed Run binman, buildman, dtoc, Kconfig and patman testsuites #193299
all

00:01:13

passed Run tests for Nokia RX-51 (aka N900) #193337
all

00:03:16

passed sloccount #193295
all

00:00:38

failed Run tests for Nokia RX-51 (aka N900) #193300
all

00:00:23

 
  Test.Py
passed evb-ast2500 test.py #193304
all

00:00:54

passed integratorcp_cm926ejs test.py #193308
all

00:00:50

passed qemu_arm64 test.py #193310
all

00:01:06

passed qemu_arm test.py #193309
all

00:01:33

passed qemu_malta64el test.py #193318
all

00:00:32

passed qemu_malta64 test.py #193317
all

00:00:37

passed qemu_maltael test.py #193316
all

00:00:51

passed qemu_malta test.py #193315
all

00:00:52

passed qemu_mips64el test.py #193314
all

00:00:27

passed qemu_mips64 test.py #193313
all

00:00:33

passed qemu_mipsel test.py #193312
all

00:00:51

passed qemu_mips test.py #193311
all

00:00:33

passed qemu-ppce500 test.py #193319
all

00:00:33

passed qemu-riscv32_spl test.py #193322
all

00:00:30

passed qemu-riscv32 test.py #193320
all

00:01:13

passed qemu-riscv64_spl test.py #193323
all

00:00:39

passed qemu-riscv64 test.py #193321
all

00:01:14

passed qemu-x86_64 test.py #193325
all

00:01:13

passed qemu-x86 test.py #193324
all

00:01:01

passed r2dplus_i82557c test.py #193326
all

00:00:51

passed r2dplus_pcnet test.py #193327
all

00:00:51

passed r2dplus_rtl8139 test.py #193328
all

00:00:30

passed r2dplus_tulip test.py #193329
all

00:00:30

passed sandbox_flattree test.py #193305
all

00:01:09

passed sandbox_spl test.py #193303
all

00:01:18

passed sandbox test.py #193301
all

00:02:52

passed sandbox with clang test.py #193302
all

00:02:01

passed vexpress_ca15_tc2 test.py #193306
all

00:00:53

passed vexpress_ca9x4 test.py #193307
all

00:00:29

passed xilinx_versal_virt test.py #193331
all

00:00:55

passed xilinx_zynq_virt test.py #193330
all

00:00:56

passed xtfpga test.py #193332
all

00:00:33

 
  World Build
passed build all 32bit ARM platforms #193333
all

00:50:40

passed build all 64bit ARM platforms #193334
all

00:12:28

passed build all other platforms #193336
all

00:02:47

passed build all PowerPC platforms #193335
all

00:08:18