mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: barebox@lists.infradead.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH 1/8] ARM: vexpress: Simplify sysctl initialization
Date: Mon, 27 Jun 2022 13:24:53 +0300	[thread overview]
Message-ID: <20220627102500.18427-2-eagle.alexander923@gmail.com> (raw)
In-Reply-To: <20220627102500.18427-1-eagle.alexander923@gmail.com>

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 arch/arm/mach-vexpress/v2m.c | 13 +------------
 1 file changed, 1 insertion(+), 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));
 }
-- 
2.32.0




  reply	other threads:[~2022-06-27 10:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 10:24 [PATCH 0/8] Misc fixes part III Alexander Shiyan
2022-06-27 10:24 ` Alexander Shiyan [this message]
2022-06-27 10:24 ` [PATCH 2/8] ARM: bcm2835: Drop uneeded headers Alexander Shiyan
2022-06-29  7:10   ` Sascha Hauer
2022-06-27 10:24 ` [PATCH 3/8] of: Use appropriate header for of_clk_init() Alexander Shiyan
2022-06-27 10:24 ` [PATCH 4/8] usb: gadget: Fix Kconfig dependencies Alexander Shiyan
2022-06-29  6:52   ` Sascha Hauer
2022-06-29  6:55     ` Ahmad Fatoum
2022-06-29  6:59       ` Sascha Hauer
2022-06-29  7:03         ` Ahmad Fatoum
2022-06-29  7:08           ` Sascha Hauer
2022-06-27 10:24 ` [PATCH 5/8] logo: " Alexander Shiyan
2022-06-27 10:24 ` [PATCH 6/8] pbl: " Alexander Shiyan
2022-06-30 11:57   ` Sascha Hauer
2022-06-27 10:24 ` [PATCH 7/8] ARM: mxs: " Alexander Shiyan
2022-06-27 10:25 ` [PATCH 8/8] ARM: boards: ccmx51: Remove unused KConfig option Alexander Shiyan
2022-06-29  7:10 ` [PATCH 0/8] Misc fixes part III Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220627102500.18427-2-eagle.alexander923@gmail.com \
    --to=eagle.alexander923@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox