so the board can use it Cc: Rob Herring <rob.herring@xxxxxxxxxxx> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx> --- arch/arm/mach-highbank/core.c | 7 +++---- arch/arm/mach-highbank/include/mach/hardware.h | 14 ++++++++++++++ arch/arm/mach-highbank/{ => include/mach}/sysregs.h | 0 arch/arm/mach-highbank/reset.c | 3 +-- 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 arch/arm/mach-highbank/include/mach/hardware.h rename arch/arm/mach-highbank/{ => include/mach}/sysregs.h (100%) diff --git a/arch/arm/mach-highbank/core.c b/arch/arm/mach-highbank/core.c index 3423c55..967d13f 100644 --- a/arch/arm/mach-highbank/core.c +++ b/arch/arm/mach-highbank/core.c @@ -15,11 +15,10 @@ #include <asm/hardware/arm_timer.h> #include <mach/devices.h> +#include <mach/hardware.h> +#include <mach/sysregs.h> -#include "sysregs.h" - -void __iomem *sregs_base = IOMEM(0xfff3c00); - +void __iomem *sregs_base = IOMEM(HB_SREG_A9_BASE); static void highbank_clk_init(void) { diff --git a/arch/arm/mach-highbank/include/mach/hardware.h b/arch/arm/mach-highbank/include/mach/hardware.h new file mode 100644 index 0000000..db7fff2 --- /dev/null +++ b/arch/arm/mach-highbank/include/mach/hardware.h @@ -0,0 +1,14 @@ +/* + * Copyright (C) 2010-2011 Calxeda, Inc + * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@xxxxxxxxxxxx> + * + * GPLv2 only + */ + +#ifndef __MACH_HARDWARE_H__ +#define __MACH_HARDWARE_H__ + +#define HB_SREG_A9_BASE 0xfff3c000 +#define HB_SYSRAM_OPP_TABLE_BASE 0xfff8f000 + +#endif /* __MACH_HARDWARE_H__ */ diff --git a/arch/arm/mach-highbank/sysregs.h b/arch/arm/mach-highbank/include/mach/sysregs.h similarity index 100% rename from arch/arm/mach-highbank/sysregs.h rename to arch/arm/mach-highbank/include/mach/sysregs.h diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c index eb1d115..41418b2 100644 --- a/arch/arm/mach-highbank/reset.c +++ b/arch/arm/mach-highbank/reset.c @@ -8,8 +8,7 @@ #include <io.h> #include <mach/devices.h> - -#include "sysregs.h" +#include <mach/sysregs.h> void __noreturn reset_cpu(ulong addr) { -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox