* [PATCH, resent 00/10] ARM Realview multiplatform support
@ 2015-02-26 16:08 Arnd Bergmann
2015-02-26 16:08 ` [PATCH 01/10] ARM: realview: remove sparsemem hack Arnd Bergmann
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Arnd Bergmann @ 2015-02-26 16:08 UTC (permalink / raw)
To: linux-arm-kernel
This is from an old patch set of mine that I have decided to
update to the latest kernel, hopefully getting it fully merged
in 3.21.
We lose a few features here, but after discussions I've had
in the past, it seems unlikely that anyone would miss them.
A few of the changes are for ARM core code and need at least
an Ack from Russell, or we can try to have a shared git
branch for these if necessary.
Please review.
Arnd Bergmann (10):
ARM: realview: remove sparsemem hack
ARM: realview: don't map undefined PCI registers
clk/realview: stop using machine headers
ARM: no longer force unbuffered DMA for realview
ARM: realview: remove private barrier implementation
ARM: realview: enable multiplatform
ARM: integrator: use explicit core module options
ARM: no longer make CPU targets visible separately
ARM: realview: make all header files local
ARM: realview: clean up header files
[re-sent with correct mailing list address, sorry for duplicate
spam]
arch/arm/Kconfig | 16 ---
arch/arm/mach-integrator/Kconfig | 132 ++++++++++++++++++---
arch/arm/mach-realview/Kconfig | 65 +++++++---
arch/arm/mach-realview/Makefile | 7 +-
.../mach-realview/{include/mach => }/board-eb.h | 4 +-
.../{include/mach => }/board-pb1176.h | 4 +-
.../{include/mach => }/board-pb11mp.h | 4 +-
.../mach-realview/{include/mach => }/board-pba8.h | 4 +-
.../mach-realview/{include/mach => }/board-pbx.h | 4 +-
arch/arm/mach-realview/core.c | 6 +-
arch/arm/mach-realview/core.h | 2 -
.../mach-realview/{include/mach => }/hardware.h | 2 -
arch/arm/mach-realview/include/mach/barriers.h | 8 --
arch/arm/mach-realview/include/mach/irqs.h | 40 -------
arch/arm/mach-realview/include/mach/memory.h | 64 ----------
arch/arm/mach-realview/include/mach/uncompress.h | 77 ------------
.../arm/mach-realview/{include/mach => }/irqs-eb.h | 20 +---
.../mach-realview/{include/mach => }/irqs-pb1176.h | 21 ----
.../mach-realview/{include/mach => }/irqs-pb11mp.h | 27 +----
.../mach-realview/{include/mach => }/irqs-pba8.h | 23 ----
.../mach-realview/{include/mach => }/irqs-pbx.h | 24 +---
.../mach-realview/{include/mach => }/platform.h | 2 -
arch/arm/mach-realview/platsmp.c | 8 +-
arch/arm/mach-realview/realview-dt.c | 1 -
arch/arm/mach-realview/realview_eb.c | 12 +-
arch/arm/mach-realview/realview_pb1176.c | 6 +-
arch/arm/mach-realview/realview_pb11mp.c | 11 +-
arch/arm/mach-realview/realview_pba8.c | 14 +--
arch/arm/mach-realview/realview_pbx.c | 14 +--
arch/arm/mm/Kconfig | 32 +++--
drivers/clk/versatile/clk-realview.c | 10 +-
31 files changed, 232 insertions(+), 432 deletions(-)
rename arch/arm/mach-realview/{include/mach => }/board-eb.h (97%)
rename arch/arm/mach-realview/{include/mach => }/board-pb1176.h (97%)
rename arch/arm/mach-realview/{include/mach => }/board-pb11mp.h (98%)
rename arch/arm/mach-realview/{include/mach => }/board-pba8.h (97%)
rename arch/arm/mach-realview/{include/mach => }/board-pbx.h (98%)
rename arch/arm/mach-realview/{include/mach => }/hardware.h (95%)
delete mode 100644 arch/arm/mach-realview/include/mach/barriers.h
delete mode 100644 arch/arm/mach-realview/include/mach/irqs.h
delete mode 100644 arch/arm/mach-realview/include/mach/memory.h
delete mode 100644 arch/arm/mach-realview/include/mach/uncompress.h
rename arch/arm/mach-realview/{include/mach => }/irqs-eb.h (91%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pb1176.h (88%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pb11mp.h (90%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pba8.h (87%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pbx.h (90%)
rename arch/arm/mach-realview/{include/mach => }/platform.h (99%)
--
2.1.0.rc2
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 01/10] ARM: realview: remove sparsemem hack
2015-02-26 16:08 [PATCH, resent 00/10] ARM Realview multiplatform support Arnd Bergmann
@ 2015-02-26 16:08 ` 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-26 16:08 ` [PATCH 03/10] clk/realview: stop using machine headers Arnd Bergmann
2 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2015-02-26 16:08 UTC (permalink / raw)
To: linux-arm-kernel
The realview-pbx platform has an elaborate way of avoiding the use of highmem
by redefining its phys_to_virt function. In practice this doesn't help all
that much, and it gets in the way of doing multiplatform builds for
realview.
This removes the feature and kills off the mach/memory.h file for realview.
We also lose the ability to do sparsemem with this patch, but that should
be put back into place for generic multiplatform configurations, to save
a little memory on PBX.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/Kconfig | 2 -
arch/arm/mach-realview/Kconfig | 5 +--
arch/arm/mach-realview/include/mach/memory.h | 64 ----------------------------
3 files changed, 2 insertions(+), 69 deletions(-)
delete mode 100644 arch/arm/mach-realview/include/mach/memory.h
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9f1f09a2bc9b..44e5879e4efc 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -233,7 +233,6 @@ config ARM_PATCH_PHYS_VIRT
bool "Patch physical to virtual translations at runtime" if EMBEDDED
default y
depends on !XIP_KERNEL && MMU
- depends on !ARCH_REALVIEW || !SPARSEMEM
help
Patch phys-to-virt and virt-to-phys translation functions at
boot and module load time according to the position of the
@@ -333,7 +332,6 @@ config ARCH_REALVIEW
select GENERIC_CLOCKEVENTS
select GPIO_PL061 if GPIOLIB
select ICST
- select NEED_MACH_MEMORY_H
select PLAT_VERSATILE
select PLAT_VERSATILE_SCHED_CLOCK
help
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig
index 565925f37dc5..0fe63b543f5b 100644
--- a/arch/arm/mach-realview/Kconfig
+++ b/arch/arm/mach-realview/Kconfig
@@ -102,14 +102,13 @@ config MACH_REALVIEW_PBA8
config MACH_REALVIEW_PBX
bool "Support RealView(R) Platform Baseboard Explore"
- select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET
select ARM_GIC
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if SMP
select HAVE_PATA_PLATFORM
select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0
- select ZONE_DMA if SPARSEMEM
+ select ZONE_DMA
help
Include support for the ARM(R) RealView(R) Platform Baseboard
Explore.
@@ -124,6 +123,6 @@ config REALVIEW_HIGH_PHYS_OFFSET
the board supports 512MB of RAM, this option allows the
memory to be accessed contiguously at the high physical
offset. On the PBX board, disabling this option allows 1GB of
- RAM to be used with SPARSEMEM.
+ RAM to be used with HIGHMEM.
endmenu
diff --git a/arch/arm/mach-realview/include/mach/memory.h b/arch/arm/mach-realview/include/mach/memory.h
deleted file mode 100644
index 23e7a313f75d..000000000000
--- a/arch/arm/mach-realview/include/mach/memory.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * arch/arm/mach-realview/include/mach/memory.h
- *
- * Copyright (C) 2003 ARM Limited
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-#ifndef __ASM_ARCH_MEMORY_H
-#define __ASM_ARCH_MEMORY_H
-
-#ifdef CONFIG_SPARSEMEM
-
-/*
- * Sparsemem definitions for RealView PBX.
- *
- * The RealView PBX board has another block of 512MB of RAM at 0x20000000,
- * however only the block at 0x70000000 (or the 256MB mirror at 0x00000000)
- * may be used for DMA.
- *
- * The macros below define a section size of 256MB and a non-linear virtual to
- * physical mapping:
- *
- * 256MB @ 0x00000000 -> PAGE_OFFSET
- * 512MB @ 0x20000000 -> PAGE_OFFSET + 0x10000000
- * 256MB @ 0x80000000 -> PAGE_OFFSET + 0x30000000
- */
-#ifdef CONFIG_REALVIEW_HIGH_PHYS_OFFSET
-#error "SPARSEMEM not available with REALVIEW_HIGH_PHYS_OFFSET"
-#endif
-
-#define MAX_PHYSMEM_BITS 32
-#define SECTION_SIZE_BITS 28
-
-/* bank page offsets */
-#define PAGE_OFFSET1 (PAGE_OFFSET + 0x10000000)
-#define PAGE_OFFSET2 (PAGE_OFFSET + 0x30000000)
-
-#define PHYS_OFFSET PLAT_PHYS_OFFSET
-
-#define __phys_to_virt(phys) \
- ((phys) >= 0x80000000 ? (phys) - 0x80000000 + PAGE_OFFSET2 : \
- (phys) >= 0x20000000 ? (phys) - 0x20000000 + PAGE_OFFSET1 : \
- (phys) + PAGE_OFFSET)
-
-#define __virt_to_phys(virt) \
- ((virt) >= PAGE_OFFSET2 ? (virt) - PAGE_OFFSET2 + 0x80000000 : \
- (virt) >= PAGE_OFFSET1 ? (virt) - PAGE_OFFSET1 + 0x20000000 : \
- (virt) - PAGE_OFFSET)
-
-#endif /* CONFIG_SPARSEMEM */
-
-#endif
--
2.1.0.rc2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 01/10] ARM: realview: remove sparsemem hack
2015-02-26 16:08 ` [PATCH 01/10] ARM: realview: remove sparsemem hack Arnd Bergmann
@ 2015-02-27 12:20 ` Linus Walleij
0 siblings, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2015-02-27 12:20 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 26, 2015 at 5:08 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> The realview-pbx platform has an elaborate way of avoiding the use of highmem
> by redefining its phys_to_virt function. In practice this doesn't help all
> that much, and it gets in the way of doing multiplatform builds for
> realview.
>
> This removes the feature and kills off the mach/memory.h file for realview.
> We also lose the ability to do sparsemem with this patch, but that should
> be put back into place for generic multiplatform configurations, to save
> a little memory on PBX.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 02/10] ARM: realview: don't map undefined PCI registers
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-26 16:08 ` Arnd Bergmann
2015-02-27 12:21 ` Linus Walleij
2015-02-26 16:08 ` [PATCH 03/10] clk/realview: stop using machine headers Arnd Bergmann
2 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2015-02-26 16:08 UTC (permalink / raw)
To: linux-arm-kernel
PCI support for realview was never merged, and trying to build realview with
CONFIG_PCI enabled fails because the constants for the mapping windows are
not defined anywhere.
This removes them from the static I/O window mapping table as a preparation
for multiplatform support.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/mach-realview/realview_pba8.c | 8 --------
arch/arm/mach-realview/realview_pbx.c | 8 --------
2 files changed, 16 deletions(-)
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c
index 4c64662f5437..b3549a637ff0 100644
--- a/arch/arm/mach-realview/realview_pba8.c
+++ b/arch/arm/mach-realview/realview_pba8.c
@@ -77,14 +77,6 @@ static struct map_desc realview_pba8_io_desc[] __initdata = {
.length = SZ_4K,
.type = MT_DEVICE,
},
-#ifdef CONFIG_PCI
- {
- .virtual = PCIX_UNIT_BASE,
- .pfn = __phys_to_pfn(REALVIEW_PBA8_PCI_BASE),
- .length = REALVIEW_PBA8_PCI_BASE_SIZE,
- .type = MT_DEVICE
- },
-#endif
#ifdef CONFIG_DEBUG_LL
{
.virtual = IO_ADDRESS(REALVIEW_PBA8_UART0_BASE),
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c
index 9a22b864219f..f26e1e09f29e 100644
--- a/arch/arm/mach-realview/realview_pbx.c
+++ b/arch/arm/mach-realview/realview_pbx.c
@@ -79,14 +79,6 @@ static struct map_desc realview_pbx_io_desc[] __initdata = {
.length = SZ_4K,
.type = MT_DEVICE,
},
-#ifdef CONFIG_PCI
- {
- .virtual = PCIX_UNIT_BASE,
- .pfn = __phys_to_pfn(REALVIEW_PBX_PCI_BASE),
- .length = REALVIEW_PBX_PCI_BASE_SIZE,
- .type = MT_DEVICE,
- },
-#endif
#ifdef CONFIG_DEBUG_LL
{
.virtual = IO_ADDRESS(REALVIEW_PBX_UART0_BASE),
--
2.1.0.rc2
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 03/10] clk/realview: stop using machine headers
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-26 16:08 ` [PATCH 02/10] ARM: realview: don't map undefined PCI registers Arnd Bergmann
@ 2015-02-26 16:08 ` Arnd Bergmann
2 siblings, 0 replies; 9+ messages in thread
From: Arnd Bergmann @ 2015-02-26 16:08 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 03/10] clk/realview: stop using machine headers
@ 2015-02-26 16:10 Arnd Bergmann
2015-02-27 12:22 ` Linus Walleij
0 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2015-02-26 16:10 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 03/10] clk/realview: stop using machine headers
2015-02-26 16:10 Arnd Bergmann
@ 2015-02-27 12:22 ` Linus Walleij
0 siblings, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2015-02-27 12:22 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 26, 2015 at 5:10 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> 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>
Sweet. We should move this to using syscon to access the registers
I guess but in the meantime this is still nice modularization.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 00/10] ARM: realview multiplatform
@ 2015-11-25 16:32 Arnd Bergmann
2015-11-25 16:32 ` [PATCH 03/10] clk/realview: stop using machine headers Arnd Bergmann
0 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2015-11-25 16:32 UTC (permalink / raw)
To: linux-arm-kernel
I've posted this series before and this time just want to get the
ball rolling again. Linus Walleij has a series to convert realview
to use devicetree, and that is likely to conflict with this one,
so we should try to get the two things merged together properly.
Also, Russell has in the past had some concerns about the CPU
selection changes, and I'm not sure if the current version addresses
them all.
It would be nice to get as much as possible of this series into
the next/multiplatform branch for 4.5, hopefully getting to the
point where we can use it in a multiplatform configuration.
Arnd Bergmann (10):
ARM: realview: remove sparsemem hack
ARM: realview: don't map undefined PCI registers
clk/realview: stop using machine headers
ARM: no longer force unbuffered DMA for realview
ARM: realview: remove private barrier implementation
ARM: realview: enable multiplatform
ARM: integrator: use explicit core module options
ARM: no longer make CPU targets visible separately
ARM: realview: make all header files local
ARM: realview: clean up header files
arch/arm/Kconfig | 16 ---
arch/arm/mach-integrator/Kconfig | 132 ++++++++++++++++++---
arch/arm/mach-realview/Kconfig | 62 +++++++---
arch/arm/mach-realview/Makefile | 7 +-
.../mach-realview/{include/mach => }/board-eb.h | 4 +-
.../{include/mach => }/board-pb1176.h | 4 +-
.../{include/mach => }/board-pb11mp.h | 4 +-
.../mach-realview/{include/mach => }/board-pba8.h | 4 +-
.../mach-realview/{include/mach => }/board-pbx.h | 4 +-
arch/arm/mach-realview/core.c | 7 +-
arch/arm/mach-realview/core.h | 2 -
.../mach-realview/{include/mach => }/hardware.h | 2 -
arch/arm/mach-realview/include/mach/barriers.h | 8 --
arch/arm/mach-realview/include/mach/irqs.h | 40 -------
arch/arm/mach-realview/include/mach/memory.h | 64 ----------
arch/arm/mach-realview/include/mach/uncompress.h | 77 ------------
.../arm/mach-realview/{include/mach => }/irqs-eb.h | 20 +---
.../mach-realview/{include/mach => }/irqs-pb1176.h | 21 ----
.../mach-realview/{include/mach => }/irqs-pb11mp.h | 27 +----
.../mach-realview/{include/mach => }/irqs-pba8.h | 23 ----
.../mach-realview/{include/mach => }/irqs-pbx.h | 24 +---
.../mach-realview/{include/mach => }/platform.h | 2 -
arch/arm/mach-realview/platsmp.c | 8 +-
arch/arm/mach-realview/realview-dt.c | 1 -
arch/arm/mach-realview/realview_eb.c | 12 +-
arch/arm/mach-realview/realview_pb1176.c | 6 +-
arch/arm/mach-realview/realview_pb11mp.c | 11 +-
arch/arm/mach-realview/realview_pba8.c | 14 +--
arch/arm/mach-realview/realview_pbx.c | 14 +--
arch/arm/mm/Kconfig | 32 +++--
drivers/clk/versatile/clk-realview.c | 10 +-
31 files changed, 229 insertions(+), 433 deletions(-)
rename arch/arm/mach-realview/{include/mach => }/board-eb.h (97%)
rename arch/arm/mach-realview/{include/mach => }/board-pb1176.h (97%)
rename arch/arm/mach-realview/{include/mach => }/board-pb11mp.h (98%)
rename arch/arm/mach-realview/{include/mach => }/board-pba8.h (97%)
rename arch/arm/mach-realview/{include/mach => }/board-pbx.h (98%)
rename arch/arm/mach-realview/{include/mach => }/hardware.h (95%)
delete mode 100644 arch/arm/mach-realview/include/mach/barriers.h
delete mode 100644 arch/arm/mach-realview/include/mach/irqs.h
delete mode 100644 arch/arm/mach-realview/include/mach/memory.h
delete mode 100644 arch/arm/mach-realview/include/mach/uncompress.h
rename arch/arm/mach-realview/{include/mach => }/irqs-eb.h (91%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pb1176.h (88%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pb11mp.h (90%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pba8.h (87%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pbx.h (90%)
rename arch/arm/mach-realview/{include/mach => }/platform.h (99%)
--
2.1.0.rc2
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 03/10] clk/realview: stop using machine headers
2015-11-25 16:32 [PATCH 00/10] ARM: realview multiplatform Arnd Bergmann
@ 2015-11-25 16:32 ` Arnd Bergmann
0 siblings, 0 replies; 9+ messages in thread
From: Arnd Bergmann @ 2015-11-25 16:32 UTC (permalink / raw)
To: linux-arm-kernel
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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
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 86f70997d59d..bd4dd2463e23 100644
--- a/drivers/clk/versatile/clk-realview.c
+++ b/drivers/clk/versatile/clk-realview.c
@@ -11,11 +11,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
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-11-25 16:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 03/10] clk/realview: stop using machine headers Arnd Bergmann
-- strict thread matches above, loose matches on Subject: below --
2015-02-26 16:10 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox