Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8ec46b97
Commit
8ec46b97
authored
Mar 09, 2013
by
Kukjin Kim
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'next/mct-exynos' into next/clk-exynos
Conflicts: arch/arm/mach-exynos/mach-exynos4-dt.c
parents
b85b64cc
6938d75a
Changes
23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
309 additions
and
149 deletions
+309
-149
Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt
...tion/devicetree/bindings/timer/samsung,exynos4210-mct.txt
+68
-0
arch/arm/Kconfig
arch/arm/Kconfig
+1
-1
arch/arm/boot/dts/exynos4210.dtsi
arch/arm/boot/dts/exynos4210.dtsi
+22
-0
arch/arm/boot/dts/exynos4212.dtsi
arch/arm/boot/dts/exynos4212.dtsi
+22
-0
arch/arm/boot/dts/exynos4412.dtsi
arch/arm/boot/dts/exynos4412.dtsi
+24
-0
arch/arm/boot/dts/exynos5250.dtsi
arch/arm/boot/dts/exynos5250.dtsi
+22
-0
arch/arm/mach-exynos/Kconfig
arch/arm/mach-exynos/Kconfig
+2
-6
arch/arm/mach-exynos/Makefile
arch/arm/mach-exynos/Makefile
+0
-2
arch/arm/mach-exynos/common.c
arch/arm/mach-exynos/common.c
+0
-5
arch/arm/mach-exynos/common.h
arch/arm/mach-exynos/common.h
+1
-1
arch/arm/mach-exynos/include/mach/irqs.h
arch/arm/mach-exynos/include/mach/irqs.h
+0
-6
arch/arm/mach-exynos/include/mach/map.h
arch/arm/mach-exynos/include/mach/map.h
+0
-1
arch/arm/mach-exynos/include/mach/regs-mct.h
arch/arm/mach-exynos/include/mach/regs-mct.h
+0
-53
arch/arm/mach-exynos/mach-armlex4210.c
arch/arm/mach-exynos/mach-armlex4210.c
+1
-1
arch/arm/mach-exynos/mach-exynos4-dt.c
arch/arm/mach-exynos/mach-exynos4-dt.c
+2
-1
arch/arm/mach-exynos/mach-exynos5-dt.c
arch/arm/mach-exynos/mach-exynos5-dt.c
+2
-1
arch/arm/mach-exynos/mach-nuri.c
arch/arm/mach-exynos/mach-nuri.c
+1
-1
arch/arm/mach-exynos/mach-origen.c
arch/arm/mach-exynos/mach-origen.c
+1
-1
arch/arm/mach-exynos/mach-smdk4x12.c
arch/arm/mach-exynos/mach-smdk4x12.c
+2
-2
arch/arm/mach-exynos/mach-smdkv310.c
arch/arm/mach-exynos/mach-smdkv310.c
+2
-2
drivers/clocksource/Kconfig
drivers/clocksource/Kconfig
+5
-0
drivers/clocksource/Makefile
drivers/clocksource/Makefile
+1
-0
drivers/clocksource/exynos_mct.c
drivers/clocksource/exynos_mct.c
+130
-65
No files found.
Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt
0 → 100644
View file @
8ec46b97
Samsung's Multi Core Timer (MCT)
The Samsung's Multi Core Timer (MCT) module includes two main blocks, the
global timer and CPU local timers. The global timer is a 64-bit free running
up-counter and can generate 4 interrupts when the counter reaches one of the
four preset counter values. The CPU local timers are 32-bit free running
down-counters and generate an interrupt when the counter expires. There is
one CPU local timer instantiated in MCT for every CPU in the system.
Required properties:
- compatible: should be "samsung,exynos4210-mct".
(a) "samsung,exynos4210-mct", for mct compatible with Exynos4210 mct.
(b) "samsung,exynos4412-mct", for mct compatible with Exynos4412 mct.
- reg: base address of the mct controller and length of the address space
it occupies.
- interrupts: the list of interrupts generated by the controller. The following
should be the order of the interrupts specified. The local timer interrupts
should be specified after the four global timer interrupts have been
specified.
0: Global Timer Interrupt 0
1: Global Timer Interrupt 1
2: Global Timer Interrupt 2
3: Global Timer Interrupt 3
4: Local Timer Interrupt 0
5: Local Timer Interrupt 1
6: ..
7: ..
i: Local Timer Interrupt n
Example 1: In this example, the system uses only the first global timer
interrupt generated by MCT and the remaining three global timer
interrupts are unused. Two local timer interrupts have been
specified.
mct@10050000 {
compatible = "samsung,exynos4210-mct";
reg = <0x10050000 0x800>;
interrupts = <0 57 0>, <0 0 0>, <0 0 0>, <0 0 0>,
<0 42 0>, <0 48 0>;
};
Example 2: In this example, the MCT global and local timer interrupts are
connected to two seperate interrupt controllers. Hence, an
interrupt-map is created to map the interrupts to the respective
interrupt controllers.
mct@101C0000 {
compatible = "samsung,exynos4210-mct";
reg = <0x101C0000 0x800>;
interrupt-controller;
#interrups-cells = <2>;
interrupt-parent = <&mct_map>;
interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
<4 0>, <5 0>;
mct_map: mct-map {
#interrupt-cells = <2>;
#address-cells = <0>;
#size-cells = <0>;
interrupt-map = <0x0 0 &combiner 23 3>,
<0x4 0 &gic 0 120 0>,
<0x5 0 &gic 0 121 0>;
};
};
arch/arm/Kconfig
View file @
8ec46b97
...
@@ -1655,7 +1655,7 @@ config LOCAL_TIMERS
...
@@ -1655,7 +1655,7 @@ config LOCAL_TIMERS
bool "Use local timer interrupts"
bool "Use local timer interrupts"
depends on SMP
depends on SMP
default y
default y
select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !
EXYNOS4
_MCT)
select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !
CLKSRC_EXYNOS
_MCT)
help
help
Enable support for local timers on SMP platforms, rather then the
Enable support for local timers on SMP platforms, rather then the
legacy IPI broadcast method. Local timers allows the system
legacy IPI broadcast method. Local timers allows the system
...
...
arch/arm/boot/dts/exynos4210.dtsi
View file @
8ec46b97
...
@@ -47,6 +47,28 @@ combiner:interrupt-controller@10440000 {
...
@@ -47,6 +47,28 @@ combiner:interrupt-controller@10440000 {
<0 12 0>, <0 13 0>, <0 14 0>, <0 15 0>;
<0 12 0>, <0 13 0>, <0 14 0>, <0 15 0>;
};
};
mct@10050000 {
compatible = "samsung,exynos4210-mct";
reg = <0x10050000 0x800>;
interrupt-controller;
#interrups-cells = <2>;
interrupt-parent = <&mct_map>;
interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
<4 0>, <5 0>;
mct_map: mct-map {
#interrupt-cells = <2>;
#address-cells = <0>;
#size-cells = <0>;
interrupt-map = <0x0 0 &gic 0 57 0>,
<0x1 0 &gic 0 69 0>,
<0x2 0 &combiner 12 6>,
<0x3 0 &combiner 12 7>,
<0x4 0 &gic 0 42 0>,
<0x5 0 &gic 0 48 0>;
};
};
pinctrl_0: pinctrl@11400000 {
pinctrl_0: pinctrl@11400000 {
compatible = "samsung,exynos4210-pinctrl";
compatible = "samsung,exynos4210-pinctrl";
reg = <0x11400000 0x1000>;
reg = <0x11400000 0x1000>;
...
...
arch/arm/boot/dts/exynos4212.dtsi
View file @
8ec46b97
...
@@ -25,4 +25,26 @@ / {
...
@@ -25,4 +25,26 @@ / {
gic:interrupt-controller@10490000 {
gic:interrupt-controller@10490000 {
cpu-offset = <0x8000>;
cpu-offset = <0x8000>;
};
};
mct@10050000 {
compatible = "samsung,exynos4412-mct";
reg = <0x10050000 0x800>;
interrupt-controller;
#interrups-cells = <2>;
interrupt-parent = <&mct_map>;
interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
<4 0>, <5 0>;
mct_map: mct-map {
#interrupt-cells = <2>;
#address-cells = <0>;
#size-cells = <0>;
interrupt-map = <0x0 0 &gic 0 57 0>,
<0x1 0 &combiner 12 5>,
<0x2 0 &combiner 12 6>,
<0x3 0 &combiner 12 7>,
<0x4 0 &gic 1 12 0>,
<0x5 0 &gic 1 12 0>;
};
};
};
};
arch/arm/boot/dts/exynos4412.dtsi
View file @
8ec46b97
...
@@ -25,4 +25,28 @@ / {
...
@@ -25,4 +25,28 @@ / {
gic:interrupt-controller@10490000 {
gic:interrupt-controller@10490000 {
cpu-offset = <0x4000>;
cpu-offset = <0x4000>;
};
};
mct@10050000 {
compatible = "samsung,exynos4412-mct";
reg = <0x10050000 0x800>;
interrupt-controller;
#interrups-cells = <2>;
interrupt-parent = <&mct_map>;
interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
<4 0>, <5 0>, <6 0>, <7 0>;
mct_map: mct-map {
#interrupt-cells = <2>;
#address-cells = <0>;
#size-cells = <0>;
interrupt-map = <0x0 0 &gic 0 57 0>,
<0x1 0 &combiner 12 5>,
<0x2 0 &combiner 12 6>,
<0x3 0 &combiner 12 7>,
<0x4 0 &gic 1 12 0>,
<0x5 0 &gic 1 12 0>,
<0x6 0 &gic 1 12 0>,
<0x7 0 &gic 1 12 0>;
};
};
};
};
arch/arm/boot/dts/exynos5250.dtsi
View file @
8ec46b97
...
@@ -79,6 +79,28 @@ combiner:interrupt-controller@10440000 {
...
@@ -79,6 +79,28 @@ combiner:interrupt-controller@10440000 {
<0 28 0>, <0 29 0>, <0 30 0>, <0 31 0>;
<0 28 0>, <0 29 0>, <0 30 0>, <0 31 0>;
};
};
mct@101C0000 {
compatible = "samsung,exynos4210-mct";
reg = <0x101C0000 0x800>;
interrupt-controller;
#interrups-cells = <2>;
interrupt-parent = <&mct_map>;
interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
<4 0>, <5 0>;
mct_map: mct-map {
#interrupt-cells = <2>;
#address-cells = <0>;
#size-cells = <0>;
interrupt-map = <0x0 0 &combiner 23 3>,
<0x1 0 &combiner 23 4>,
<0x2 0 &combiner 25 2>,
<0x3 0 &combiner 25 3>,
<0x4 0 &gic 0 120 0>,
<0x5 0 &gic 0 121 0>;
};
};
watchdog {
watchdog {
compatible = "samsung,s3c2410-wdt";
compatible = "samsung,s3c2410-wdt";
reg = <0x101D0000 0x100>;
reg = <0x101D0000 0x100>;
...
...
arch/arm/mach-exynos/Kconfig
View file @
8ec46b97
...
@@ -80,12 +80,6 @@ config SOC_EXYNOS5440
...
@@ -80,12 +80,6 @@ config SOC_EXYNOS5440
help
help
Enable EXYNOS5440 SoC support
Enable EXYNOS5440 SoC support
config EXYNOS4_MCT
bool
default y
help
Use MCT (Multi Core Timer) as kernel timers
config EXYNOS_DEV_DMA
config EXYNOS_DEV_DMA
bool
bool
help
help
...
@@ -407,6 +401,7 @@ config MACH_EXYNOS4_DT
...
@@ -407,6 +401,7 @@ config MACH_EXYNOS4_DT
bool "Samsung Exynos4 Machine using device tree"
bool "Samsung Exynos4 Machine using device tree"
depends on ARCH_EXYNOS4
depends on ARCH_EXYNOS4
select ARM_AMBA
select ARM_AMBA
select CLKSRC_OF
select CPU_EXYNOS4210
select CPU_EXYNOS4210
select HAVE_SAMSUNG_KEYPAD if INPUT_KEYBOARD
select HAVE_SAMSUNG_KEYPAD if INPUT_KEYBOARD
select PINCTRL
select PINCTRL
...
@@ -424,6 +419,7 @@ config MACH_EXYNOS5_DT
...
@@ -424,6 +419,7 @@ config MACH_EXYNOS5_DT
default y
default y
depends on ARCH_EXYNOS5
depends on ARCH_EXYNOS5
select ARM_AMBA
select ARM_AMBA
select CLKSRC_OF
select USE_OF
select USE_OF
help
help
Machine support for Samsung EXYNOS5 machine with device tree enabled.
Machine support for Samsung EXYNOS5 machine with device tree enabled.
...
...
arch/arm/mach-exynos/Makefile
View file @
8ec46b97
...
@@ -26,8 +26,6 @@ obj-$(CONFIG_ARCH_EXYNOS) += pmu.o
...
@@ -26,8 +26,6 @@ obj-$(CONFIG_ARCH_EXYNOS) += pmu.o
obj-$(CONFIG_SMP)
+=
platsmp.o headsmp.o
obj-$(CONFIG_SMP)
+=
platsmp.o headsmp.o
obj-$(CONFIG_EXYNOS4_MCT)
+=
mct.o
obj-$(CONFIG_HOTPLUG_CPU)
+=
hotplug.o
obj-$(CONFIG_HOTPLUG_CPU)
+=
hotplug.o
# machine support
# machine support
...
...
arch/arm/mach-exynos/common.c
View file @
8ec46b97
...
@@ -256,11 +256,6 @@ static struct map_desc exynos5_iodesc[] __initdata = {
...
@@ -256,11 +256,6 @@ static struct map_desc exynos5_iodesc[] __initdata = {
.
pfn
=
__phys_to_pfn
(
EXYNOS5_PA_SROMC
),
.
pfn
=
__phys_to_pfn
(
EXYNOS5_PA_SROMC
),
.
length
=
SZ_4K
,
.
length
=
SZ_4K
,
.
type
=
MT_DEVICE
,
.
type
=
MT_DEVICE
,
},
{
.
virtual
=
(
unsigned
long
)
S5P_VA_SYSTIMER
,
.
pfn
=
__phys_to_pfn
(
EXYNOS5_PA_SYSTIMER
),
.
length
=
SZ_4K
,
.
type
=
MT_DEVICE
,
},
{
},
{
.
virtual
=
(
unsigned
long
)
S5P_VA_SYSRAM
,
.
virtual
=
(
unsigned
long
)
S5P_VA_SYSRAM
,
.
pfn
=
__phys_to_pfn
(
EXYNOS5_PA_SYSRAM
),
.
pfn
=
__phys_to_pfn
(
EXYNOS5_PA_SYSRAM
),
...
...
arch/arm/mach-exynos/common.h
View file @
8ec46b97
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H
#ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H
#define __ARCH_ARM_MACH_EXYNOS_COMMON_H
#define __ARCH_ARM_MACH_EXYNOS_COMMON_H
extern
void
exynos4_timer
_init
(
void
);
extern
void
mct
_init
(
void
);
struct
map_desc
;
struct
map_desc
;
void
exynos_init_io
(
struct
map_desc
*
mach_desc
,
int
size
);
void
exynos_init_io
(
struct
map_desc
*
mach_desc
,
int
size
);
...
...
arch/arm/mach-exynos/include/mach/irqs.h
View file @
8ec46b97
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
/* For EXYNOS4 and EXYNOS5 */
/* For EXYNOS4 and EXYNOS5 */
#define EXYNOS_IRQ_MCT_LOCALTIMER IRQ_PPI(12)
#define EXYNOS_IRQ_EINT16_31 IRQ_SPI(32)
#define EXYNOS_IRQ_EINT16_31 IRQ_SPI(32)
/* For EXYNOS4 SoCs */
/* For EXYNOS4 SoCs */
...
@@ -323,8 +321,6 @@
...
@@ -323,8 +321,6 @@
#define EXYNOS5_IRQ_CEC IRQ_SPI(114)
#define EXYNOS5_IRQ_CEC IRQ_SPI(114)
#define EXYNOS5_IRQ_SATA IRQ_SPI(115)
#define EXYNOS5_IRQ_SATA IRQ_SPI(115)
#define EXYNOS5_IRQ_MCT_L0 IRQ_SPI(120)
#define EXYNOS5_IRQ_MCT_L1 IRQ_SPI(121)
#define EXYNOS5_IRQ_MMC44 IRQ_SPI(123)
#define EXYNOS5_IRQ_MMC44 IRQ_SPI(123)
#define EXYNOS5_IRQ_MDMA1 IRQ_SPI(124)
#define EXYNOS5_IRQ_MDMA1 IRQ_SPI(124)
#define EXYNOS5_IRQ_FIMC_LITE0 IRQ_SPI(125)
#define EXYNOS5_IRQ_FIMC_LITE0 IRQ_SPI(125)
...
@@ -419,8 +415,6 @@
...
@@ -419,8 +415,6 @@
#define EXYNOS5_IRQ_PMU_CPU1 COMBINER_IRQ(22, 4)
#define EXYNOS5_IRQ_PMU_CPU1 COMBINER_IRQ(22, 4)
#define EXYNOS5_IRQ_EINT0 COMBINER_IRQ(23, 0)
#define EXYNOS5_IRQ_EINT0 COMBINER_IRQ(23, 0)
#define EXYNOS5_IRQ_MCT_G0 COMBINER_IRQ(23, 3)
#define EXYNOS5_IRQ_MCT_G1 COMBINER_IRQ(23, 4)
#define EXYNOS5_IRQ_EINT1 COMBINER_IRQ(24, 0)
#define EXYNOS5_IRQ_EINT1 COMBINER_IRQ(24, 0)
#define EXYNOS5_IRQ_SYSMMU_LITE1_0 COMBINER_IRQ(24, 1)
#define EXYNOS5_IRQ_SYSMMU_LITE1_0 COMBINER_IRQ(24, 1)
...
...
arch/arm/mach-exynos/include/mach/map.h
View file @
8ec46b97
...
@@ -65,7 +65,6 @@
...
@@ -65,7 +65,6 @@
#define EXYNOS5_PA_CMU 0x10010000
#define EXYNOS5_PA_CMU 0x10010000
#define EXYNOS4_PA_SYSTIMER 0x10050000
#define EXYNOS4_PA_SYSTIMER 0x10050000
#define EXYNOS5_PA_SYSTIMER 0x101C0000
#define EXYNOS4_PA_WATCHDOG 0x10060000
#define EXYNOS4_PA_WATCHDOG 0x10060000
#define EXYNOS5_PA_WATCHDOG 0x101D0000
#define EXYNOS5_PA_WATCHDOG 0x101D0000
...
...
arch/arm/mach-exynos/include/mach/regs-mct.h
deleted
100644 → 0
View file @
b85b64cc
/* arch/arm/mach-exynos4/include/mach/regs-mct.h
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS4 MCT configutation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_REGS_MCT_H
#define __ASM_ARCH_REGS_MCT_H __FILE__
#include <mach/map.h>
#define EXYNOS4_MCTREG(x) (S5P_VA_SYSTIMER + (x))
#define EXYNOS4_MCT_G_CNT_L EXYNOS4_MCTREG(0x100)
#define EXYNOS4_MCT_G_CNT_U EXYNOS4_MCTREG(0x104)
#define EXYNOS4_MCT_G_CNT_WSTAT EXYNOS4_MCTREG(0x110)
#define EXYNOS4_MCT_G_COMP0_L EXYNOS4_MCTREG(0x200)
#define EXYNOS4_MCT_G_COMP0_U EXYNOS4_MCTREG(0x204)
#define EXYNOS4_MCT_G_COMP0_ADD_INCR EXYNOS4_MCTREG(0x208)
#define EXYNOS4_MCT_G_TCON EXYNOS4_MCTREG(0x240)
#define EXYNOS4_MCT_G_INT_CSTAT EXYNOS4_MCTREG(0x244)
#define EXYNOS4_MCT_G_INT_ENB EXYNOS4_MCTREG(0x248)
#define EXYNOS4_MCT_G_WSTAT EXYNOS4_MCTREG(0x24C)
#define _EXYNOS4_MCT_L_BASE EXYNOS4_MCTREG(0x300)
#define EXYNOS4_MCT_L_BASE(x) (_EXYNOS4_MCT_L_BASE + (0x100 * x))
#define EXYNOS4_MCT_L_MASK (0xffffff00)
#define MCT_L_TCNTB_OFFSET (0x00)
#define MCT_L_ICNTB_OFFSET (0x08)
#define MCT_L_TCON_OFFSET (0x20)
#define MCT_L_INT_CSTAT_OFFSET (0x30)
#define MCT_L_INT_ENB_OFFSET (0x34)
#define MCT_L_WSTAT_OFFSET (0x40)
#define MCT_G_TCON_START (1 << 8)
#define MCT_G_TCON_COMP0_AUTO_INC (1 << 1)
#define MCT_G_TCON_COMP0_ENABLE (1 << 0)
#define MCT_L_TCON_INTERVAL_MODE (1 << 2)
#define MCT_L_TCON_INT_START (1 << 1)
#define MCT_L_TCON_TIMER_START (1 << 0)
#endif
/* __ASM_ARCH_REGS_MCT_H */
arch/arm/mach-exynos/mach-armlex4210.c
View file @
8ec46b97
...
@@ -202,6 +202,6 @@ MACHINE_START(ARMLEX4210, "ARMLEX4210")
...
@@ -202,6 +202,6 @@ MACHINE_START(ARMLEX4210, "ARMLEX4210")
.
map_io
=
armlex4210_map_io
,
.
map_io
=
armlex4210_map_io
,
.
init_machine
=
armlex4210_machine_init
,
.
init_machine
=
armlex4210_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
MACHINE_END
MACHINE_END
arch/arm/mach-exynos/mach-exynos4-dt.c
View file @
8ec46b97
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <linux/of_fdt.h>
#include <linux/of_fdt.h>
#include <linux/serial_core.h>
#include <linux/serial_core.h>
#include <linux/memblock.h>
#include <linux/memblock.h>
#include <linux/clocksource.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
#include <mach/map.h>
#include <mach/map.h>
...
@@ -158,7 +159,7 @@ DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
...
@@ -158,7 +159,7 @@ DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
.
map_io
=
exynos4_dt_map_io
,
.
map_io
=
exynos4_dt_map_io
,
.
init_machine
=
exynos4_dt_machine_init
,
.
init_machine
=
exynos4_dt_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
clocksource_of
_init
,
.
dt_compat
=
exynos4_dt_compat
,
.
dt_compat
=
exynos4_dt_compat
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
.
reserve
=
exynos4_reserve
,
.
reserve
=
exynos4_reserve
,
...
...
arch/arm/mach-exynos/mach-exynos5-dt.c
View file @
8ec46b97
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include <linux/serial_core.h>
#include <linux/serial_core.h>
#include <linux/memblock.h>
#include <linux/memblock.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/clocksource.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
#include <mach/map.h>
#include <mach/map.h>
...
@@ -217,7 +218,7 @@ DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)")
...
@@ -217,7 +218,7 @@ DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)")
.
map_io
=
exynos5_dt_map_io
,
.
map_io
=
exynos5_dt_map_io
,
.
init_machine
=
exynos5_dt_machine_init
,
.
init_machine
=
exynos5_dt_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
clocksource_of
_init
,
.
dt_compat
=
exynos5_dt_compat
,
.
dt_compat
=
exynos5_dt_compat
,
.
restart
=
exynos5_restart
,
.
restart
=
exynos5_restart
,
.
reserve
=
exynos5_reserve
,
.
reserve
=
exynos5_reserve
,
...
...
arch/arm/mach-exynos/mach-nuri.c
View file @
8ec46b97
...
@@ -1380,7 +1380,7 @@ MACHINE_START(NURI, "NURI")
...
@@ -1380,7 +1380,7 @@ MACHINE_START(NURI, "NURI")
.
map_io
=
nuri_map_io
,
.
map_io
=
nuri_map_io
,
.
init_machine
=
nuri_machine_init
,
.
init_machine
=
nuri_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
reserve
=
&
nuri_reserve
,
.
reserve
=
&
nuri_reserve
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
MACHINE_END
MACHINE_END
arch/arm/mach-exynos/mach-origen.c
View file @
8ec46b97
...
@@ -815,7 +815,7 @@ MACHINE_START(ORIGEN, "ORIGEN")
...
@@ -815,7 +815,7 @@ MACHINE_START(ORIGEN, "ORIGEN")
.
map_io
=
origen_map_io
,
.
map_io
=
origen_map_io
,
.
init_machine
=
origen_machine_init
,
.
init_machine
=
origen_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
reserve
=
&
origen_reserve
,
.
reserve
=
&
origen_reserve
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
MACHINE_END
MACHINE_END
arch/arm/mach-exynos/mach-smdk4x12.c
View file @
8ec46b97
...
@@ -376,7 +376,7 @@ MACHINE_START(SMDK4212, "SMDK4212")
...
@@ -376,7 +376,7 @@ MACHINE_START(SMDK4212, "SMDK4212")
.
init_irq
=
exynos4_init_irq
,
.
init_irq
=
exynos4_init_irq
,
.
map_io
=
smdk4x12_map_io
,
.
map_io
=
smdk4x12_map_io
,
.
init_machine
=
smdk4x12_machine_init
,
.
init_machine
=
smdk4x12_machine_init
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
.
reserve
=
&
smdk4x12_reserve
,
.
reserve
=
&
smdk4x12_reserve
,
MACHINE_END
MACHINE_END
...
@@ -390,7 +390,7 @@ MACHINE_START(SMDK4412, "SMDK4412")
...
@@ -390,7 +390,7 @@ MACHINE_START(SMDK4412, "SMDK4412")
.
map_io
=
smdk4x12_map_io
,
.
map_io
=
smdk4x12_map_io
,
.
init_machine
=
smdk4x12_machine_init
,
.
init_machine
=
smdk4x12_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
.
reserve
=
&
smdk4x12_reserve
,
.
reserve
=
&
smdk4x12_reserve
,
MACHINE_END
MACHINE_END
arch/arm/mach-exynos/mach-smdkv310.c
View file @
8ec46b97
...
@@ -423,7 +423,7 @@ MACHINE_START(SMDKV310, "SMDKV310")
...
@@ -423,7 +423,7 @@ MACHINE_START(SMDKV310, "SMDKV310")
.
init_irq
=
exynos4_init_irq
,
.
init_irq
=
exynos4_init_irq
,
.
map_io
=
smdkv310_map_io
,
.
map_io
=
smdkv310_map_io
,
.
init_machine
=
smdkv310_machine_init
,
.
init_machine
=
smdkv310_machine_init
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
reserve
=
&
smdkv310_reserve
,
.
reserve
=
&
smdkv310_reserve
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
MACHINE_END
MACHINE_END
...
@@ -436,7 +436,7 @@ MACHINE_START(SMDKC210, "SMDKC210")
...
@@ -436,7 +436,7 @@ MACHINE_START(SMDKC210, "SMDKC210")
.
map_io
=
smdkv310_map_io
,
.
map_io
=
smdkv310_map_io
,
.
init_machine
=
smdkv310_machine_init
,
.
init_machine
=
smdkv310_machine_init
,
.
init_late
=
exynos_init_late
,
.
init_late
=
exynos_init_late
,
.
init_time
=
exynos4_timer
_init
,
.
init_time
=
mct
_init
,
.
reserve
=
&
smdkv310_reserve
,
.
reserve
=
&
smdkv310_reserve
,
.
restart
=
exynos4_restart
,
.
restart
=
exynos4_restart
,
MACHINE_END
MACHINE_END
drivers/clocksource/Kconfig
View file @
8ec46b97
...
@@ -67,3 +67,8 @@ config CLKSRC_METAG_GENERIC
...
@@ -67,3 +67,8 @@ config CLKSRC_METAG_GENERIC
def_bool y if METAG
def_bool y if METAG
help
help
This option enables support for the Meta per-thread timers.
This option enables support for the Meta per-thread timers.
config CLKSRC_EXYNOS_MCT
def_bool y if ARCH_EXYNOS
help
Support for Multi Core Timer controller on Exynos SoCs.
drivers/clocksource/Makefile
View file @
8ec46b97
...
@@ -19,6 +19,7 @@ obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o
...
@@ -19,6 +19,7 @@ obj-$(CONFIG_ARCH_BCM2835) += bcm2835_timer.o
obj-$(CONFIG_SUNXI_TIMER)
+=
sunxi_timer.o
obj-$(CONFIG_SUNXI_TIMER)
+=
sunxi_timer.o
obj-$(CONFIG_ARCH_TEGRA)
+=
tegra20_timer.o
obj-$(CONFIG_ARCH_TEGRA)
+=
tegra20_timer.o
obj-$(CONFIG_VT8500_TIMER)
+=
vt8500_timer.o
obj-$(CONFIG_VT8500_TIMER)
+=
vt8500_timer.o
obj-$(CONFIG_CLKSRC_EXYNOS_MCT)
+=
exynos_mct.o
obj-$(CONFIG_ARM_ARCH_TIMER)
+=
arm_arch_timer.o
obj-$(CONFIG_ARM_ARCH_TIMER)
+=
arm_arch_timer.o
obj-$(CONFIG_CLKSRC_METAG_GENERIC)
+=
metag_generic.o
obj-$(CONFIG_CLKSRC_METAG_GENERIC)
+=
metag_generic.o
arch/arm/mach-exynos/
mct.c
→
drivers/clocksource/exynos_
mct.c
View file @
8ec46b97
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment