Skip to content
  • Quentin Schulz's avatar
    rockchip: migrate hardware.h inclusion into appropriate files · eda2c873
    Quentin Schulz authored
    
    
    hardware.h is only defining macros which are "wrappers" around writel().
    
    writel() is however not available in hardware.h, <asm/io.h> needs to be
    included. This means in order to use the wrappers in hardware.h, one
    also needs to include the <asm/io.h> header.
    
    However, this cannot be done currently because hardware.h is included in
    include/configs files, which are implicitly included by every code file
    by default, which makes the compilation of arch/arm/cpu/armv8/u-boot.lds
    fail because ALIGN (the ARM assembly directive) got redefined by some
    of the include files coming from <asm.io.h>.
    
    Because nothing in the include/configs file actually use hardware.h,
    let's remove the inclusion of hardware.h from the include/configs files
    and explicitly add it wherever it is required.
    
    This prepares for the next commit where <asm/io.h> will be included in
    hardware.h.
    
    Cc: Quentin Schulz <foss+uboot@0leil.net>
    Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
    Signed-off-by: default avatarQuentin Schulz <quentin.schulz@theobroma-systems.com>
    eda2c873