]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM i.MX5: Add System Reset Controller (SRC) support for i.MX51 and i.MX53
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 28 Mar 2013 16:35:22 +0000 (17:35 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 9 Apr 2013 14:53:37 +0000 (22:53 +0800)
The SRC in i.MX51 and i.MX53 is similar to the one in i.MX6q minus
the IPU2 reset line and multi core CPU reset/enable bits.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/mm-imx5.c
arch/arm/mach-imx/src.c

index 8b6dfd1a1b2fb457f4909f01595c97e152cf524c..8805adb7c7f69efb2f31ea8d9c54ebe348569047 100644 (file)
                        };
 
                        src: src@020d8000 {
-                               compatible = "fsl,imx6q-src";
+                               compatible = "fsl,imx6q-src", "fsl,imx51-src";
                                reg = <0x020d8000 0x4000>;
                                interrupts = <0 91 0x04 0 96 0x04>;
                                #reset-cells = <1>;
index 6575e4ebe26e11276f413bfe207fe763802fc0e8..91571a16f986e9fd428415429cc1db3da22f6485 100644 (file)
@@ -149,6 +149,7 @@ config SOC_IMX5
 
 config SOC_IMX51
        bool
+       select HAVE_IMX_SRC
        select PINCTRL
        select PINCTRL_IMX51
        select SOC_IMX5
@@ -774,6 +775,7 @@ comment "Device tree only"
 config SOC_IMX53
        bool "i.MX53 support"
        select HAVE_CAN_FLEXCAN if CAN
+       select HAVE_IMX_SRC
        select IMX_HAVE_PLATFORM_IMX2_WDT
        select PINCTRL
        select PINCTRL_IMX53
index cf34994cfe28e978681d2f878dcde1d3a031b2e2..b7c4e70e50813a90f96cc14c2a47d2bf1e18ebc4 100644 (file)
@@ -84,6 +84,7 @@ void __init imx51_init_early(void)
        mxc_set_cpu_type(MXC_CPU_MX51);
        mxc_iomux_v3_init(MX51_IO_ADDRESS(MX51_IOMUXC_BASE_ADDR));
        mxc_arch_reset_init(MX51_IO_ADDRESS(MX51_WDOG1_BASE_ADDR));
+       imx_src_init();
 }
 
 void __init imx53_init_early(void)
@@ -91,6 +92,7 @@ void __init imx53_init_early(void)
        mxc_set_cpu_type(MXC_CPU_MX53);
        mxc_iomux_v3_init(MX53_IO_ADDRESS(MX53_IOMUXC_BASE_ADDR));
        mxc_arch_reset_init(MX53_IO_ADDRESS(MX53_WDOG1_BASE_ADDR));
+       imx_src_init();
 }
 
 void __init mx51_init_irq(void)
index e15f1555c59b1ebd2712ba8b8c31772c340b06ef..cef5ca7c464d50ff7bc4727a31d0848b46c4899d 100644 (file)
@@ -61,7 +61,9 @@ void __init imx_src_init(void)
        struct device_node *np;
        u32 val;
 
-       np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-src");
+       np = of_find_compatible_node(NULL, NULL, "fsl,imx51-src");
+       if (!np)
+               return;
        src_base = of_iomap(np, 0);
        WARN_ON(!src_base);