]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk/realview: stop using machine headers
authorArnd Bergmann <arnd@arndb.de>
Wed, 25 Nov 2015 16:32:16 +0000 (17:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Dec 2015 08:41:33 +0000 (09:41 +0100)
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/clk/versatile/clk-realview.c

index 86f70997d59dce436d34c9c5aef74be0f367f869..bd4dd2463e23c99082345fd58104aae6268ea6e3 100644 (file)
 #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.
  */