SDMMC:
authorxbw <xbw@rock-chips.com>
Thu, 8 May 2014 10:33:17 +0000 (18:33 +0800)
committerxbw <xbw@rock-chips.com>
Thu, 8 May 2014 10:36:47 +0000 (18:36 +0800)
1. modify the policy of suspend-resume for sd-card.i.e ignore-pm-notify and keep-power-in-suspend.
2, Unified the SDMMC-setting  of individual projects, refer to rk3288-p977.dts

arch/arm/boot/dts/rk3288-chrome.dts
arch/arm/boot/dts/rk3288-p977.dts
arch/arm/boot/dts/rk3288-tb.dts
arch/arm/boot/dts/rk3288-tesco.dts

index efc675c6ba546224426671b7f021dd8a444959cf..0ace2865183c832bffc5ca37041e5461891f8cfd 100755 (executable)
 };
 
 &emmc {
-               clock-frequency = <1500000000>;
-               clock-freq-min-max = <400000 150000000>;
+       clock-frequency = <150000000>;
+       clock-freq-min-max = <400000 150000000>;
         supports-highspeed;
-               supports-emmc;
-               bootpart-no-access;
+       supports-emmc;
+       bootpart-no-access;
+
+       supports-DDR_MODE;
+       caps2-mmc-hs200;
+
         ignore-pm-notify;
                keep-power-in-suspend;
        status = "okay";
                supports-sd;
                broken-cd;
                card-detect-delay = <200>;
+               
+               ignore-pm-notify;
+               keep-power-in-suspend;
+               
                vmmc-supply = <&rk808_ldo5_reg>;
                status = "okay";
 };
index ea09ace26805b11ef92fe50fe950c9da53e4c0a5..2e6559ef8d06c501fcdbbe342a0ce8d1b9ee231e 100755 (executable)
        broken-cd;
        card-detect-delay = <200>;
 
+       ignore-pm-notify;
+        keep-power-in-suspend;
        
         vmmc-supply = <&rk808_ldo5_reg>;
        status = "okay";
index fefdd2fa1be31776a302f323c787fac5fc494be6..7bcade47ebc5e95eb99a905ba08e35a6dd27910c 100755 (executable)
 };
 
 &emmc {
-               clock-frequency = <150000000>;
-               clock-freq-min-max = <400000 1500000000>;
+       clock-frequency = <100000000>;
+       clock-freq-min-max = <400000 100000000>;
+
         supports-highspeed;
-               supports-emmc;
-               bootpart-no-access;
+       supports-emmc;
+        bootpart-no-access;
+
+       //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
+       //caps2-mmc-hs200;
+
         ignore-pm-notify;
-               keep-power-in-suspend;
-               //poll-hw-reset 
-               status = "okay";
+       keep-power-in-suspend;
+       
+       //poll-hw-reset 
+       status = "okay";
 };
     
 &sdmmc {
                supports-sd;
                broken-cd;
                card-detect-delay = <200>;
-               vmmc-supply = <&rk808_ldo5_reg>;
+
+               ignore-pm-notify;
+               keep-power-in-suspend;
+       
+               vmmc-supply = <&rk808_ldo5_reg>;
                status = "okay";
 };
                
index e459598b7a22254f412354519629a5fa4c38362b..408f1234784a1c746f7b3ee2bde5eefae69f61a6 100755 (executable)
 };
 
 &emmc {
-               clock-frequency = <1500000000>;
-               clock-freq-min-max = <400000 150000000>;
+       clock-frequency = <150000000>;
+       clock-freq-min-max = <400000 150000000>;
         supports-highspeed;
-               supports-emmc;
-               bootpart-no-access;
+       supports-emmc;
+        bootpart-no-access;
+
+       supports-DDR_MODE;
+       caps2-mmc-hs200;
+
         ignore-pm-notify;
-               keep-power-in-suspend;
+       keep-power-in-suspend;
        status = "okay";
 };
     
                supports-sd;
                broken-cd;
                card-detect-delay = <200>;
-               vmmc-supply = <&rk808_ldo5_reg>;
+
+               ignore-pm-notify;
+               keep-power-in-suspend;
+       
+               vmmc-supply = <&rk808_ldo5_reg>;
                status = "okay";
 };