EC:lenovo/x201

From coreboot
Jump to navigation Jump to search

The wiki is being retired!

Documentation is now handled by the same processes we use for code: Add something to the Documentation/ directory in the coreboot repo, and it will be rendered to https://doc.coreboot.org/. Contributions welcome!

EC lenovo/x201

src/etc/lenovo/h8/h8.h

EC RAM:

00: a6 05 a1 11 fe 96 00 00 00 00 43 00 00 00 80 00
10: 00 00 ff ff f4 3c 80 01 01 ff ff ff 3c ff 00 00
20: 00 00 00 00 00 00 00 2f 00 00 00 00 00 00 00 80
30: 03 00 20 00 30 04 00 00 c3 00 70 10 00 00 00 00
40: 00 00 00 00 00 00 04 00 62 18 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 2f 00 00 00 00 00 00 00
80: 00 00 05 06 4b 0e 02 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 50 11 c0 18 ad 00 45 00 c9 fb 27 3a ff ff c0 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 11 50 c3 12 e4 2e 44 03
f0: 36 53 48 54 33 34 57 57 1a c6 75 d8 00 00 12 00
0x00, config0,
 
0x01, config1,
0x02, config2,
  bit0 SLIS - 
0x03, ???
0x04, sound_enable0
0x05, sound_enable1
0x06, sound_reg
0x07, sound_repeat
0x0B, trackpoint control, 0x1 auto - 0x2 disable 0x3 enable
0x0C, ??? HLCL(ACPI name), Method LED
 bit 0-3 ledid
 bit 4-7 ledstate
 e.g. 0x07 -> sleep led(7) off (0)
 Leds:
 0x7 - sleep
 0xc - dock
  
0x10, event0
0x11, event1
0x12, event2
0x13, event3
0x14, event4
0x15, event5
0x16, event6
0x17, event7
0x18, event8
0x19, event9
0x1a, eventa
0x1b, eventb
0x1c, eventc
0x1d, eventd
0x1e, evente
0x1f, eventf
0x30, volume_control
0x32, ?
 bit1 HWLB - wake up by Low Bat ???
 bit2 WKLD - wake up by lid
 bit4 WKFN - wake up by FN key
0x3a, function control, disable devices & function
 bit0 audio_mute (controls pin ???)
 bit4 bluetooth enable (controls pin BDC_ON ???)
 bit5 wlan enable (controls pin WLAN_DISABLE ???)
 bit6 wwan enable (controls pin WLAN_DISABLE ???)
0x3b, function control
 bit1, keyboard light
 bit4, usb power (controls pin USB_ON1 / USB_ON2 ???)
0x40, volume_control_mute
0x46, status0
 bit1 BTWK(ACPI name)
 bit2 HPLD(ACPI name)
 bit4 HPAC(ACPI name) - AC connected
 bit5 BTST(ACPI name) - battery state?
0x47, status1
0x48, status2
 bit2 LIDS - lid state
0x49, status3 ?
 bit4 pen detect (likely table only)
0x4e, HWAK
0x4f, HWAK
0x78, temperature
0x80, ??? Events???
0x83, FNKY ? - 0x6 to act as wkae button??
0x88, temperature
0xe8, firmware version
0xe9, firmware version
0xeb, firmware func major version
0xef, firmware func minor version
0xf0-0xf7, oem id


Query Functions

Query Description
Q24 Notify (BAT0, 0x80)
Q25 Notify (BAT1, 0x80)
Q4A Notify (BAT0, 0x81)
Q4B Notify (BAT0, 0x80)
Q4C Notify (BAT1, 0x81)
Q4D Notify (BAT1, 0x80)
Q13 sleep button
Q14 brightness increase
Q15 brightness decrease
Q16 TBD - input switch?
Q18 TBD
Q26 TBD - AC
Q27 TBD - AC
Q2A TBD - Lid switch
Q2B TBD - Lid switch
Q10 TBD - HKEY.RHK (One)
Q11 TBD - HKEY.RHK (0x02)
Q12 TBD - HKEY.RHK (0x03)
Q64 TBD - HKEY.RHK (0x05)
Q65 TBD - HKEY.RHK (0x06)
Q17 TBD - HKEY.RHK (0x08)
Q66 TBD - HKEY.RHK (0x0A)
Q1A TBD - HKEY.RHK (0x0B)
Q1B TBD - HKEY.RHK (0x0C)
Q62 TBD - HKEY.RHK (0x0D)
Q60 TBD - HKEY.RHK (0x0E)
Q61 TBD - HKEY.RHK (0x0F)
Q1F TBD - HKEY.RHK (0x12)
Q67 TBD - HKEY.RHK (0x13)
Q63 TBD - HKEY.RHK (0x14)
Q19 TBD - HKEY.RHK (0x18)
Q1C TBD - HKEY.RHK (0x19)
Q1D TBD - HKEY.RHK (0x1A)
Q5C TBD - HKEY.RHK (0x0B)
Q5D TBD - HKEY.RHK (0x0C)
Q5E TBD - HKEY.RHK (0x09)
Q5F TBD - HKEY.RHK (0x0A)
Q45 TBD
Q37 TBD
Q58 TBD