diff options
| author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-12-03 16:44:08 -0200 |
|---|---|---|
| committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-12-06 13:10:36 -0200 |
| commit | d5cdee95d5e8290adea2757230a7c10728bcd49a (patch) | |
| tree | f43852acfb91448960d01984e3560160e5f16a63 /tools | |
| parent | 3906a50ede5fa8d6edfca8bf81809fd0cf229a30 (diff) | |
lib: rename some power well bit names
I did the same change in the Kernel a few months ago. This should help
not getting confused about which bit does what.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/intel_reg_dumper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index de518f5a..60646951 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -2857,12 +2857,12 @@ static uint32_t power_well_get(void) if (!IS_HASWELL(devid)) return 0; - ret = INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_ENABLE; + ret = INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_ENABLE_REQUEST; - OUTREG(HSW_PWR_WELL_CTL4, HSW_PWR_WELL_ENABLE); + OUTREG(HSW_PWR_WELL_CTL4, HSW_PWR_WELL_ENABLE_REQUEST); for (i = 0; i < 20; i++) { - if (INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_STATE) + if (INREG(HSW_PWR_WELL_CTL4) & HSW_PWR_WELL_STATE_ENABLED) break; usleep(1000); } |
