diff options
author | Patrick Rudolph <siro@das-labor.org> | 2017-05-21 08:49:44 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-09-06 04:14:25 +0000 |
commit | 1194aa8d08938411b3f13ba540dbba97ac58fa13 (patch) | |
tree | feee754ec1c333e905f7ee2aceec8b22f3a53778 /src/ec/lenovo/h8/chip.h | |
parent | 746241f114e851623d2031959a99b06a5102708b (diff) |
ec/lenovo/h8: Add BDC detection support
* Add support for detecting BDC.
* Allows to turn off power to BDC if no card is installed.
* Should fix https://ticket.coreboot.org/issues/99 .
Add the following devicetree values:
* has_bdc_detection
Set to one to indicate that the following register are sane.
* bdc_gpio_num
SB GPIO num to read.
* bdc_gpio_lvl
SB GPIO level for card to be present (usually zero).
Don't enable BDC power if no card is detected.
As there are no devicetree values yet, the new code doesn't
have any effect.
Change-Id: I506de2eca4b820e6d82de6b2c48a5440462e1db5
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/19809
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'src/ec/lenovo/h8/chip.h')
-rw-r--r-- | src/ec/lenovo/h8/chip.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/chip.h b/src/ec/lenovo/h8/chip.h index bb6eb052a9..d62312d197 100644 --- a/src/ec/lenovo/h8/chip.h +++ b/src/ec/lenovo/h8/chip.h @@ -46,6 +46,10 @@ struct ec_lenovo_h8_config { u8 has_keyboard_backlight; u8 has_power_management_beeps; u8 has_uwb; + u8 has_bdc_detection; + + u8 bdc_gpio_num; + u8 bdc_gpio_lvl; }; #endif /* EC_LENOVO_H8EC_CHIP_H */ |