coreboot-kgpe-d16/src/mainboard/lenovo/t530
Evgeny Zinoviev 0186912f9e 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 userspace 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>
Reviewed-on: https://review.coreboot.org/28392
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-09-02 03:10:39 +00:00
..
acpi ec/lenovo/h8/acpi: Apply state on wake 2018-07-19 16:49:18 +00:00
variants mb/lenovo: dGPU power handling on T430, T530 2018-09-02 03:10:39 +00:00
acpi_tables.c mb/*/*/acpi_tables.c: Remove unneeded includes 2018-06-11 08:52:53 +00:00
board_info.txt mb/lenovo: Add ThinkPad W530 support 2018-06-06 10:37:06 +00:00
cmos.default mb/*/*/cmos.default: Decrease debug_level to 'Debug' 2018-08-15 18:39:17 +00:00
cmos.layout mb/*/*/cmos.layout: Fix coding style 2018-06-28 09:25:30 +00:00
dsdt.asl intel/bd82x6x: Use generated ACPI PIRQ 2017-12-20 16:48:23 +00:00
gma-mainboard.ads src: Add missing license headers 2018-07-06 15:30:59 +00:00
hda_verb.c
Kconfig southbridge/intel/bd82x6x/Kconfig: Do not include any IFD by default 2018-08-05 19:57:56 +00:00
Kconfig.name mb/lenovo: Add ThinkPad W530 support 2018-06-06 10:37:06 +00:00
mainboard.c mb/lenovo: Get rid of device_t 2018-05-08 14:17:48 +00:00
Makefile.inc mb/lenovo: Add ThinkPad W530 support 2018-06-06 10:37:06 +00:00
romstage.c Revert "sb/intel/{bd82x6,ibexpeak}: Move RCBA macros to a common location" 2018-06-21 15:50:16 +00:00
smihandler.c src/mb: Remove some unneeded includes 2018-08-13 15:36:43 +00:00
thermal.h