summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shiyan <eagle.alexander923@gmail.com>2022-06-27 13:24:53 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-29 09:06:28 +0200
commitfdb12720b0fbf06f27a895200b1e5ca0d680a4ad (patch)
treedbb8ad63f34e937df7e45036c13097f5497085c3
parentcc9b06f0c8f11c56fc706614ff96d237eecefd45 (diff)
downloadbarebox-fdb12720b0fbf06f27a895200b1e5ca0d680a4ad.tar.gz
barebox-fdb12720b0fbf06f27a895200b1e5ca0d680a4ad.tar.xz
ARM: vexpress: Simplify sysctl initialization
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.barebox.org/20220627102500.18427-2-eagle.alexander923@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-vexpress/v2m.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c
index 3535262848..c60e9dbd75 100644
--- a/arch/arm/mach-vexpress/v2m.c
+++ b/arch/arm/mach-vexpress/v2m.c
@@ -5,16 +5,8 @@
*/
#include <common.h>
-#include <init.h>
#include <io.h>
-
-#include <linux/clk.h>
-#include <linux/clkdev.h>
-#include <linux/amba/bus.h>
-
-#include <asm/hardware/arm_timer.h>
#include <asm/hardware/sp810.h>
-
#include <mach/devices.h>
void __iomem *v2m_sysreg_base;
@@ -23,8 +15,7 @@ static void v2m_sysctl_init(void __iomem *base)
{
u32 scctrl;
- if (WARN_ON(!base))
- return;
+ v2m_sysreg_base = base;
/* Select 1MHz TIMCLK as the reference clock for SP804 timers */
scctrl = readl(base + SCCTRL);
@@ -36,13 +27,11 @@ static void v2m_sysctl_init(void __iomem *base)
void vexpress_a9_legacy_init(void)
{
v2m_wdt_base = IOMEM(0x1000f000);
- v2m_sysreg_base = IOMEM(0x10001000);
v2m_sysctl_init(IOMEM(0x10001000));
}
void vexpress_init(void)
{
v2m_wdt_base = IOMEM(0x1c0f0000);
- v2m_sysreg_base = IOMEM(0x1c020000);
v2m_sysctl_init(IOMEM(0x1c020000));
}