rockchip: migrate hardware.h inclusion into appropriate files
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: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
This commit is contained in:
parent
8ed8517d9e
commit
eda2c8736e
|
@ -7,6 +7,7 @@
|
|||
#include <asm/io.h>
|
||||
#include <asm/arch-rockchip/bootrom.h>
|
||||
#include <asm/arch-rockchip/grf_rk3066.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
|
||||
#define GRF_BASE 0x20008000
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <asm/arch-rockchip/clock.h>
|
||||
#include <asm/arch-rockchip/cru_rk3368.h>
|
||||
#include <asm/arch-rockchip/grf_rk3368.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <asm/arch-rockchip/ddr_rk3368.h>
|
||||
#include <asm/arch-rockchip/sdram.h>
|
||||
#include <asm/arch-rockchip/sdram_rk3288.h>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <asm/arch-rockchip/cru_rk3188.h>
|
||||
#include <asm/arch-rockchip/ddr_rk3188.h>
|
||||
#include <asm/arch-rockchip/grf_rk3188.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <asm/arch-rockchip/pmu_rk3188.h>
|
||||
#include <asm/arch-rockchip/sdram.h>
|
||||
#include <asm/arch-rockchip/sdram_rk3288.h>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <asm/arch-rockchip/cru.h>
|
||||
#include <asm/arch-rockchip/ddr_rk3288.h>
|
||||
#include <asm/arch-rockchip/grf_rk3288.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <asm/arch-rockchip/pmu_rk3288.h>
|
||||
#include <asm/arch-rockchip/sdram.h>
|
||||
#include <asm/arch-rockchip/sdram_rk3288.h>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#ifndef __CONFIG_RK3036_COMMON_H
|
||||
#define __CONFIG_RK3036_COMMON_H
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CFG_SYS_HZ_CLOCK 24000000
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#ifndef __CONFIG_RK3066_COMMON_H
|
||||
#define __CONFIG_RK3066_COMMON_H
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CFG_IRAM_BASE 0x10080000
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#ifndef __CONFIG_RK3188_COMMON_H
|
||||
#define __CONFIG_RK3188_COMMON_H
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CFG_IRAM_BASE 0x10080000
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#ifndef __CONFIG_RK322X_COMMON_H
|
||||
#define __CONFIG_RK322X_COMMON_H
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CFG_SYS_HZ_CLOCK 24000000
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#ifndef __CONFIG_RK3288_COMMON_H
|
||||
#define __CONFIG_RK3288_COMMON_H
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CFG_SYS_HZ_CLOCK 24000000
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <linux/sizes.h>
|
||||
|
||||
#define CFG_SYS_SDRAM_BASE 0
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#ifndef __CONFIG_RV1108_COMMON_H
|
||||
#define __CONFIG_RV1108_COMMON_H
|
||||
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CFG_IRAM_BASE 0x10080000
|
||||
|
|
Loading…
Reference in New Issue
Block a user