ARM: EXYNOS: Add devicetree node for TMU driver for exynos4
authorAmit Daniel Kachhap <amit.daniel@samsung.com>
Mon, 29 Oct 2012 12:18:01 +0000 (21:18 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 29 Oct 2012 12:18:01 +0000 (21:18 +0900)
This patch adds necessary source definations needed for TMU driver and
adds devicetree node for exynos4210.

Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos4210.dtsi
arch/arm/mach-exynos/clock-exynos4.c
arch/arm/mach-exynos/include/mach/irqs.h
arch/arm/mach-exynos/include/mach/map.h
arch/arm/mach-exynos/mach-exynos4-dt.c

index 214c557eda7f7119584df481bde074c43a3611d4..038de97b35f7b78ee37f3f74b26636bc4a5e1e9d 100644 (file)
                        #gpio-cells = <4>;
                };
        };
+
+       tmu@100C0000 {
+               compatible = "samsung,exynos4210-tmu";
+               interrupt-parent = <&combiner>;
+               reg = <0x100C0000 0x100>;
+               interrupts = <2 4>;
+       };
 };
index 6a45c9a9abe9115503ffcac36c4baca4d22c563f..1870bee991b69723b8e5728b16d2b1f60efcf71b 100644 (file)
@@ -575,6 +575,10 @@ static struct clk exynos4_init_clocks_off[] = {
                .name           = "adc",
                .enable         = exynos4_clk_ip_peril_ctrl,
                .ctrlbit        = (1 << 15),
+       }, {
+               .name           = "tmu_apbif",
+               .enable         = exynos4_clk_ip_perir_ctrl,
+               .ctrlbit        = (1 << 17),
        }, {
                .name           = "keypad",
                .enable         = exynos4_clk_ip_perir_ctrl,
index 35bced6f9092141920152664267362a54cdf8161..5adacd12e43b5d4acf3eebb9da013567a44586d3 100644 (file)
 #define EXYNOS4_IRQ_TSI                        IRQ_SPI(115)
 #define EXYNOS4_IRQ_SATA               IRQ_SPI(116)
 
+#define EXYNOS4_IRQ_TMU_TRIG0          COMBINER_IRQ(2, 4)
+#define EXYNOS4_IRQ_TMU_TRIG1          COMBINER_IRQ(3, 4)
+
 #define EXYNOS4_IRQ_SYSMMU_MDMA0_0     COMBINER_IRQ(4, 0)
 #define EXYNOS4_IRQ_SYSMMU_SSS_0       COMBINER_IRQ(4, 1)
 #define EXYNOS4_IRQ_SYSMMU_FIMC0_0     COMBINER_IRQ(4, 2)
index 8480849affb922789d73b597c81b76c6778a16ba..772acd344cbdabf4ced8f926058a4775a12e8c5e 100644 (file)
@@ -88,6 +88,8 @@
 #define EXYNOS4_PA_TWD                 0x10500600
 #define EXYNOS4_PA_L2CC                        0x10502000
 
+#define EXYNOS4_PA_TMU                 0x100C0000
+
 #define EXYNOS4_PA_MDMA0               0x10810000
 #define EXYNOS4_PA_MDMA1               0x12850000
 #define EXYNOS4_PA_PDMA0               0x12680000
index e58d786faf78c773636f10b168415df2c0ac61ef..0276ae44777a8b7e4762a38d65cd9cc50a138b2a 100644 (file)
@@ -77,6 +77,8 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = {
                                "exynos4210-spi.2", NULL),
        OF_DEV_AUXDATA("arm,pl330", EXYNOS4_PA_PDMA0, "dma-pl330.0", NULL),
        OF_DEV_AUXDATA("arm,pl330", EXYNOS4_PA_PDMA1, "dma-pl330.1", NULL),
+       OF_DEV_AUXDATA("samsung,exynos4210-tmu", EXYNOS4_PA_TMU,
+                               "exynos-tmu", NULL),
        {},
 };