Evgeny Zinoviev uploaded patch set #2 to this change.

View Change

mb/lenovo: dGPU power handling on T430, T530

Enable dGPU power handling on Lenovo ThinkPad T430, T530 via PMH7
register 0x50.

Although there's no Thinker-1 chip on these models according to
schematics, dGPU power control via PMH7 works the same as on T420/T520,
so they can be considered Thinker-1-compatible.

It can be tested from linux userpace using util/pmh7tool.

To turn dGPU power off:
pmh7tool -c 0x50 7
pmh7tool -c 0x50 3

To turn it on:
pmh7tool -s 0x50 3
pmh7tool -s 0x50 7

To check whether it is on (bash):
reg=0x$(pmh7tool -r 0x50)
echo "$(( (( reg & 0x08 )) >> 3 ))"
or just `pmh7tool -b 0x50 3` with
https://review.coreboot.org/#/c/coreboot/+/28388/

Tested on ThinkPad W530.

Change-Id: Ieab1a33b3c680c757cc0999660b5cb7e122474cc
Signed-off-by: Evgeny Zinoviev <me@ch1p.com>
---
M src/mainboard/lenovo/t430/devicetree.cb
M src/mainboard/lenovo/t530/variants/t530/devicetree.cb
M src/mainboard/lenovo/t530/variants/w530/devicetree.cb
3 files changed, 3 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/28392/2

To view, visit change 28392. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ieab1a33b3c680c757cc0999660b5cb7e122474cc
Gerrit-Change-Number: 28392
Gerrit-PatchSet: 2
Gerrit-Owner: Evgeny Zinoviev <me@ch1p.com>