improved twl4030 phy pwr ctrl
authorJuha Riihimäki <juhriihi@esdhcp035153.research.nokia.com>
Fri, 3 Apr 2009 12:33:08 +0000 (15:33 +0300)
committerJuha Riihimäki <juhriihi@esdhcp03986.research.nokia.com>
Tue, 7 Apr 2009 12:37:56 +0000 (15:37 +0300)
hw/twl4030.c

index 2cfac3a..7228628 100644 (file)
@@ -222,6 +222,8 @@ static uint8_t twl4030_48_read(void *opaque, uint8_t addr)
         case 0xfe: /* PHY_CLK_CTRL */
             return s->reg_data[addr];
         case 0xff: /* PHY_CLK_CTRL_STS */
+            if (s->reg_data[0xfd] & 1) /* PHY_PWR_CTRL */
+                return 0;
             if (s->reg_data[0xfe] & 1) /* REQ_PHY_DPLL_CLK */
                 return 1;
             return (s->reg_data[0x04] >> 6) & 1; /* SUSPENDM */