From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/10] clk/realview: stop using machine headers
Date: Thu, 26 Feb 2015 17:08:03 +0100 [thread overview]
Message-ID: <1424966890-260805-4-git-send-email-arnd@arndb.de> (raw)
In-Reply-To: <1424966890-260805-1-git-send-email-arnd@arndb.de>
In order to move realview into multiplatform, we have to prevent device
drivers from accessing the machine header files.
In case of the clk driver, this is very simple, we just copy the
small set of register definitions into the driver that needs them.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/clk/versatile/clk-realview.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/versatile/clk-realview.c b/drivers/clk/versatile/clk-realview.c
index c8b523117fb7..276411f3c437 100644
--- a/drivers/clk/versatile/clk-realview.c
+++ b/drivers/clk/versatile/clk-realview.c
@@ -12,11 +12,15 @@
#include <linux/io.h>
#include <linux/clk-provider.h>
-#include <mach/hardware.h>
-#include <mach/platform.h>
-
#include "clk-icst.h"
+#define REALVIEW_SYS_OSC0_OFFSET 0x0C
+#define REALVIEW_SYS_OSC1_OFFSET 0x10
+#define REALVIEW_SYS_OSC2_OFFSET 0x14
+#define REALVIEW_SYS_OSC3_OFFSET 0x18
+#define REALVIEW_SYS_OSC4_OFFSET 0x1C /* OSC1 for RealView/AB */
+#define REALVIEW_SYS_LOCK_OFFSET 0x20
+
/*
* Implementation of the ARM RealView clock trees.
*/
--
2.1.0.rc2
next prev parent reply other threads:[~2015-02-26 16:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 16:08 [PATCH, resent 00/10] ARM Realview multiplatform support Arnd Bergmann
2015-02-26 16:08 ` [PATCH 01/10] ARM: realview: remove sparsemem hack Arnd Bergmann
2015-02-27 12:20 ` Linus Walleij
2015-02-26 16:08 ` [PATCH 02/10] ARM: realview: don't map undefined PCI registers Arnd Bergmann
2015-02-27 12:21 ` Linus Walleij
2015-02-26 16:08 ` Arnd Bergmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-02-26 16:10 [PATCH 03/10] clk/realview: stop using machine headers Arnd Bergmann
2015-02-27 12:22 ` Linus Walleij
2015-11-25 16:32 [PATCH 00/10] ARM: realview multiplatform Arnd Bergmann
2015-11-25 16:32 ` [PATCH 03/10] clk/realview: stop using machine headers Arnd Bergmann
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=1424966890-260805-4-git-send-email-arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@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