summaryrefslogtreecommitdiff
path: root/README.md
blob: ee84a9500d289ed88a10a5ab7f78bbf14cb9b1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# pmh7tool

This is a tool to dump, read from, write to PMH7 registers on Lenovo ThinkPad laptops. 

This tool is a part of the coreboot project.

### Usage

	-h, --help:  print help
	-d, --dump:  hexdump registers
	-w, --write <addr> <data>:  write <data> to register <addr>
	-r, --read <addr>:  read from register <addr>
	-b, --read-bit <addr> <bit>: read bit <bit> in register <addr>
	-c, --clear-bit <addr> <bit>: clear bit <bit> in register <addr>
	-s, --set-bit <addr> <bit>: set bit <bit> in register <addr>

# Attention

Writing to PMH7 registers is very dangerous, as you directly manipulate the power rails, enable lines, interrupt lines or something else of the device. **Proceed with caution.**