nand : move nand config form dtsi to dts,add nandc0reg config for sn read api.
authorZhaoyifeng <zyf@rock-chips.com>
Mon, 16 Jun 2014 10:27:35 +0000 (18:27 +0800)
committerZhaoyifeng <zyf@rock-chips.com>
Mon, 16 Jun 2014 10:27:35 +0000 (18:27 +0800)
arch/arm/boot/dts/rk3288-tb.dts
arch/arm/boot/dts/rk3288.dtsi

index 6fa9837227de88abd093115ca1ec5054f62686ca..87f1eb498a1038b05df28d705b81c8f4f426e2f0 100755 (executable)
 
 };
 
+&nandc0 {
+       status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
+};
+&nandc1 {
+       status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
+};   
+
+&nandc0reg {
+       status = "okay"; // used nand set "disabled" ,used emmc set "okay"
+};
+
 &emmc {
        clock-frequency = <100000000>;
        clock-freq-min-max = <400000 100000000>;
index c36e5dd40bfe5d8a37eef4ea508e104d35d7cdfb..0a72ddaf13a21f529ecd43269ac8ea38eb645258 100755 (executable)
                nandc_id = <0>;
                clocks = <&clk_nandc0>, <&clk_gates5 5>, <&clk_gates7 14>;
                clock-names = "clk_nandc", "g_clk_nandc", "hclk_nandc";
-               status = "okay";
        };
 
        nandc1: nandc@0xff410000 {
                nandc_id = <1>;
                clocks = <&clk_nandc1>, <&clk_gates5 6>, <&clk_gates7 15>;
                clock-names = "clk_nandc", "g_clk_nandc", "hclk_nandc";
-               status = "okay";
+       };
+       
+       nandc0reg: nandc0@0xff400000 {
+               compatible = "rockchip,rk-nandc";
+               reg = <0xff400000 0x4000>;
        };
 
        emmc: rksdmmc@ff0f0000 {