[DDR] Warn if auto power management is enabled
authorBrad Griffis <bgriffis@ti.com>
Fri, 10 May 2019 17:11:04 +0000 (12:11 -0500)
committerBrad Griffis <bgriffis@ti.com>
Fri, 10 May 2019 17:11:04 +0000 (12:11 -0500)
am335x-ddr-analysis.dss

index bb7a5e1f50a3e7fada717ce461843762a95c91bf..12ff81e0f3ecb581d381ff53efcdfc0787a0c485 100644 (file)
@@ -381,6 +381,21 @@ if (original_CM_PER_L3_CLKSTCTRL & 1<<2) {
        // EMIF: PWR_MGMT_CTRL
        file.write(newline);
        reg_val = printRegisterValue(debugSessionDAP, "EMIF: PWR_MGMT_CTRL", 0x4C000038);
+       reg_lp_mode = bits32(reg_val, 10, 8);
+       switch (reg_lp_mode) {
+               case 1:
+                       file.write(" * Bits 10:8 reg_lp_mode set to 1, clock stop mode (WARNING!)" + newline);
+                       break;
+               case 2:
+                       file.write(" * Bits 10:8 reg_lp_mode set to 2, self refresh (WARNING!)" + newline);
+                       break;
+               case 4:
+                       file.write(" * Bits 10:8 reg_lp_mode set to 4, power down (WARNING!)" + newline);
+                       break;
+               default:
+                       file.write(" * Bits 10:8 reg_lp_mode set to " + d2d(reg_lp_mode) + ", auto power management disabled" + newline);
+                       break;
+       }
        if ( (reg_val & 0xF0) < 0x90 ) {
                file.write(" * ERROR: Bits 7:4 (reg_sr_tim) are in violation of Maximum Self-Refresh Command Limit\n");
                file.write(" * Please see the silicon errata for more details.\n");