Skip to content

Commit f4b8b31

Browse files
author
Russell King
committed
ARM: Realview/Versatile/Integrator: separate out common clock code
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent c5a0adb commit f4b8b31

19 files changed

Lines changed: 33 additions & 181 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ config ARCH_INTEGRATOR
243243
select ICST
244244
select GENERIC_TIME
245245
select GENERIC_CLOCKEVENTS
246+
select PLAT_VERSATILE
246247
help
247248
Support for ARM's Integrator platform.
248249

@@ -255,6 +256,7 @@ config ARCH_REALVIEW
255256
select GENERIC_TIME
256257
select GENERIC_CLOCKEVENTS
257258
select ARCH_WANT_OPTIONAL_GPIOLIB
259+
select PLAT_VERSATILE
258260
help
259261
This enables support for ARM Ltd RealView boards.
260262

@@ -268,6 +270,7 @@ config ARCH_VERSATILE
268270
select GENERIC_TIME
269271
select GENERIC_CLOCKEVENTS
270272
select ARCH_WANT_OPTIONAL_GPIOLIB
273+
select PLAT_VERSATILE
271274
help
272275
This enables support for ARM Ltd Versatile board.
273276

@@ -938,6 +941,9 @@ config PLAT_ORION
938941
config PLAT_PXA
939942
bool
940943

944+
config PLAT_VERSATILE
945+
bool
946+
941947
source arch/arm/mm/Kconfig
942948

943949
config IWMMXT

‎arch/arm/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ plat-$(CONFIG_PLAT_PXA) := pxa
192192
plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx samsung
193193
plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx samsung
194194
plat-$(CONFIG_PLAT_S5P) := s5p samsung
195+
plat-$(CONFIG_PLAT_VERSATILE) := versatile
195196

196197
ifeq ($(CONFIG_ARCH_EBSA110),y)
197198
# This is what happens if you forget the IOCS16 line.

‎arch/arm/mach-integrator/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Object file lists.
66

7-
obj-y := clock.o core.o lm.o
7+
obj-y := core.o lm.o
88
obj-$(CONFIG_ARCH_INTEGRATOR_AP) += integrator_ap.o
99
obj-$(CONFIG_ARCH_INTEGRATOR_CP) += integrator_cp.o
1010

‎arch/arm/mach-realview/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Makefile for the linux kernel.
33
#
44

5-
obj-y := core.o clock.o
5+
obj-y := core.o
66
obj-$(CONFIG_MACH_REALVIEW_EB) += realview_eb.o
77
obj-$(CONFIG_MACH_REALVIEW_PB11MP) += realview_pb11mp.o
88
obj-$(CONFIG_MACH_REALVIEW_PB1176) += realview_pb1176.o

‎arch/arm/mach-realview/clock.c‎

Lines changed: 0 additions & 64 deletions
This file was deleted.

‎arch/arm/mach-realview/clock.h‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎arch/arm/mach-realview/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848

4949
#include <asm/hardware/gic.h>
5050

51+
#include <mach/clkdev.h>
5152
#include <mach/platform.h>
5253
#include <mach/irqs.h>
5354

5455
#include "core.h"
55-
#include "clock.h"
5656

5757
#define REALVIEW_REFCOUNTER (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_24MHz_OFFSET)
5858

‎arch/arm/mach-realview/include/mach/clkdev.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#ifndef __ASM_MACH_CLKDEV_H
22
#define __ASM_MACH_CLKDEV_H
33

4+
#include <asm/hardware/icst.h>
5+
6+
struct clk {
7+
unsigned long rate;
8+
const struct icst_params *params;
9+
u32 oscoff;
10+
void (*setvco)(struct clk *, struct icst_vco vco);
11+
};
12+
413
#define __clk_get(clk) ({ 1; })
514
#define __clk_put(clk) do { } while (0)
615

‎arch/arm/mach-realview/realview_eb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include <mach/irqs.h>
4444

4545
#include "core.h"
46-
#include "clock.h"
4746

4847
static struct map_desc realview_eb_io_desc[] __initdata = {
4948
{

‎arch/arm/mach-realview/realview_pb1176.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include <mach/irqs.h>
4444

4545
#include "core.h"
46-
#include "clock.h"
4746

4847
static struct map_desc realview_pb1176_io_desc[] __initdata = {
4948
{

0 commit comments

Comments
 (0)