Skip to content
  • Simon Glass's avatar
    dm: core: Inline a few ofnode functions in SPL · ec1add1e
    Simon Glass authored
    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's avatarSimon Glass <sjg@chromium.org>
    ec1add1e