Skip to content
Snippets Groups Projects
Commit c4484886 authored by David Collins's avatar David Collins Committed by Osvaldo Banuelos
Browse files

lrdp-v2: cpr3_info: parse APM state

Parse out the APM state that has been configured so that it can
be compared against the VDD supply voltage to ensure correct
functionality.

Change-Id: Iabf78a6799015861379a39d93e59289a489e1510
parent 9fe813a1
No related branches found
No related tags found
No related merge requests found
......@@ -218,6 +218,15 @@ class CPR3Info(RamParser):
if apm_thresh_volt == 0:
return
tmp = '%-30s = %d uV\n' % ("APM threshold", apm_thresh_volt)
apm_supply = self.ramdump.read_int(
apm_addr + self.ramdump.field_offset('struct msm_apm_ctrl_dev',
'supply'))
if apm_supply is None:
print_out_str("could not read APM supply")
elif apm_supply == 0:
tmp += '%-30s = %s\n' % ("APM supply", "APCC")
elif apm_supply == 1:
tmp += '%-30s = %s\n' % ("APM supply", "MX")
self.output.append(tmp)
def get_aging_info(self, ctrl_addr):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment