libpayload: find source of input characters
This change makes it possible for vboot to avoid an exploit that could cause involuntary switch to dev mode. It gives depthcharge/vboot some information on the type of input device that generated a key. BUG=chrome-os-partner:21729 TEST=manually tested for panther BRANCH=none CQ-DEPEND=CL:182420,CL:182241,CL:182946 Change-Id: I87bdac34bfc50f3adb0b35a2c57a8f95f4fbc35b Reviewed-on: https://chromium-review.googlesource.com/182357 Reviewed-by: Luigi Semenzato <semenzato@chromium.org> Tested-by: Luigi Semenzato <semenzato@chromium.org> Commit-Queue: Luigi Semenzato <semenzato@chromium.org>
This commit is contained in:
parent
1b80d71e49
commit
bdb76c8bbc
5 changed files with 21 additions and 3 deletions
|
|
@ -112,7 +112,8 @@ chip northbridge/intel/haswell
|
|||
io 0x60 = 0x700
|
||||
io 0x62 = 0x710
|
||||
irq 0x70 = 0x09
|
||||
irq 0xf4 = 0x20
|
||||
irq 0xf2 = 0x20
|
||||
irq 0xf4 = 0x0
|
||||
irq 0xfa = 0x12
|
||||
end
|
||||
device pnp 2e.7 on # GPIO
|
||||
|
|
|
|||
|
|
@ -209,6 +209,7 @@ static void pch_power_options(device_t dev)
|
|||
* If the option is not existent (Laptops), use Kconfig setting.
|
||||
*/
|
||||
get_option(&pwr_on, "power_on_after_fail");
|
||||
pwr_on = MAINBOARD_POWER_KEEP;
|
||||
|
||||
reg16 = pci_read_config16(dev, GEN_PMCON_3);
|
||||
reg16 &= 0xfffe;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue