clk: rockchip: fix aclk_peri,aclk_cpu in RK3188
authordkl <dkl@rock-chips.com>
Mon, 17 Mar 2014 06:33:00 +0000 (14:33 +0800)
committerdkl <dkl@rock-chips.com>
Mon, 17 Mar 2014 06:38:26 +0000 (14:38 +0800)
arch/arm/boot/dts/rk3188-clocks.dtsi
arch/arm/boot/dts/rk3188.dtsi

index 66c7917c54b05069b013e7d1ac21081e11db56db..e252ce4e1e9f1baf9f982a396db9b6191fbe0d84 100755 (executable)
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
-                                       aclk_cpu: aclk_cpu_div {
+                                       aclk_cpu_div: aclk_cpu_div {
                                                compatible = "rockchip,rk3188-div-con";
                                                rockchip,bits = <0 5>;
-                                               clocks = <&aclk_cpu_mux>;
+                                               clocks = <&aclk_cpu>;
                                                clock-output-names = "aclk_cpu";
                                                #clock-cells = <0>;
                                                rockchip,div-type = <CLK_DIVIDER_PLUS_ONE>;
-                                               #clock-init-cells = <1>;
+                                               rockchip,clkops-idx =
+                                                       <CLKOPS_RATE_MUX_DIV>;
+                                               rockchip,flags = <CLK_SET_RATE_NO_REPARENT>;
                                        };
 
-                                       aclk_cpu_mux: aclk_cpu_mux {
+                                       aclk_cpu: aclk_cpu_mux {
                                                compatible = "rockchip,rk3188-mux-con";
                                                rockchip,bits = <5 1>;
-                                               clocks = <&clk_apll>, <&clk_gpll>;/*FIXME*/
-                                               clock-output-names = "aclk_cpu_mux";
+                                               clocks = <&clk_apll>, <&clk_gpll>;
+                                               clock-output-names = "aclk_cpu";
                                                #clock-cells = <0>;
                                                #clock-init-cells = <1>;
                                        };
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
-                                       aclk_peri: aclk_peri_div {
+                                       aclk_peri_div: aclk_peri_div {
                                                compatible = "rockchip,rk3188-div-con";
                                                rockchip,bits = <0 5>;
-                                               clocks = <&aclk_peri_mux>;
+                                               clocks = <&aclk_peri>;
                                                clock-output-names = "aclk_peri";
                                                rockchip,div-type = <CLK_DIVIDER_PLUS_ONE>;
                                                #clock-cells = <0>;
                                                #clock-init-cells = <1>;
+                                               rockchip,clkops-idx =
+                                                       <CLKOPS_RATE_MUX_DIV>;
+                                               rockchip,flags = <CLK_SET_RATE_NO_REPARENT>;
                                        };
 
                                        /* reg[7:5]: reserved */
 
                                        /* reg[14]: reserved */
 
-                                       aclk_peri_mux: aclk_peri_mux {
+                                       aclk_peri: aclk_peri_mux {
                                                compatible = "rockchip,rk3188-mux-con";
                                                rockchip,bits = <15 1>;
                                                clocks = <&clk_cpll>, <&clk_gpll>;
-                                               clock-output-names = "aclk_peri_mux";
+                                               clock-output-names = "aclk_peri";
                                                #clock-cells = <0>;
                                                #clock-init-cells = <1>;
                                        };
                                clk_gates2: gate-clk@00d8 {
                                        compatible = "rockchip,rk3188-gate-clk";
                                        reg = <0x00d8 0x4>;
-                                       clocks = <&aclk_peri_mux>,      <&aclk_peri>,
+                                       clocks = <&aclk_peri>,  <&aclk_peri>,
                                                 <&hclk_peri>,          <&pclk_peri>,
 
                                                 <&hclk_peri>,          <&clk_mac_pll_mux>,
                                                 <&clk_emmc>,           <&dummy>;
 
                                        clock-output-names =
-                                               "aclk_peri_mux",        "aclk_peri",
+                                               "aclk_peri",            "g_aclk_peri",
                                                "hclk_peri",            "pclk_peri",
 
                                                "g_smc_src",            "clk_mac_pll",
index d1b15f4075f9a9a6ac38354fccaf25c8061f2e03..3bb3256c04a09fe1f176336226b752b5bc587d03 100755 (executable)
        clocks-init{
                compatible = "rockchip,clocks-init";
                rockchip,clocks-init-parent =
-                       <&clk_core &clk_apll>,  <&aclk_cpu_mux &clk_gpll>,/*FIXME*/
-                       <&aclk_peri_mux &clk_gpll>,     <&clk_i2s_pll_mux &clk_cpll>,
+                       <&clk_core &clk_apll>,  <&aclk_cpu &clk_gpll>,
+                       <&aclk_peri &clk_gpll>, <&clk_i2s_pll_mux &clk_cpll>,
                        <&clk_uart_pll_mux &clk_gpll>;
                rockchip,clocks-init-rate =
                        <&clk_core 792000000>,  <&clk_gpll 768000000>,