• Stephen Warren's avatar
    ARM: tegra: decouple uncompress.h and debug-macro.S · 1a6d3da8
    Stephen Warren authored
    Prior to this change, Tegra's debug-macro.S relied on uncompress.h having
    determined which UART to use, and whether it was safe to use the UART
    (i.e. is it not in reset, and is clocked). This determination was
    communicated from uncompress.h to debug-macro.S using a few bytes of
    Tegra's IRAM (an on-SoC RAM). This had the disadvantage that uncompress.h
    was a required part of the kernel boot process; booting a non-compressed
    kernel would not allow earlyprintk to operate.
    
    This change duplicates the UART selection and validation logic into
    debug-macro.S so that the reliance on uncompress.h is removed.
    
    This also helps out with single-zImage work, since there is currently no
    support for using any uncompress.h with single-zImage.
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    1a6d3da8
common.c 3.93 KB