Peichao Li has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31428
Change subject: mb/google/laser: Disable touch screen device that according to SKU ID ......................................................................
mb/google/laser: Disable touch screen device that according to SKU ID
We need disable touch screen device on laser SKU ID 5 and 6.
BUG=none TEST=according to sku_id (Laser(convertible): 5, Laser14(clamshell): 6, Laser14(clamshell + touch):7) distinguish whether disable touch screen device.
Signed-off-by: peichao.wang peichao.wang@bitland.corp-partner.google.com Change-Id: I6953c35a5e8c93d88fe63362156faa351e8ee71f --- M src/mainboard/google/octopus/variants/phaser/gpio.c M src/mainboard/google/octopus/variants/phaser/variant.c 2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/31428/1
diff --git a/src/mainboard/google/octopus/variants/phaser/gpio.c b/src/mainboard/google/octopus/variants/phaser/gpio.c index 322b44b..6687fba 100644 --- a/src/mainboard/google/octopus/variants/phaser/gpio.c +++ b/src/mainboard/google/octopus/variants/phaser/gpio.c @@ -74,7 +74,7 @@ uint32_t sku_id = SKU_UNKNOWN;
google_chromeec_cbi_get_sku_id(&sku_id); - if (sku_id == 1) { + if ((sku_id == 1) || (sku_id == 5) || (sku_id == 6)) { c = sku1_default_override_table; *num = ARRAY_SIZE(sku1_default_override_table); } else { diff --git a/src/mainboard/google/octopus/variants/phaser/variant.c b/src/mainboard/google/octopus/variants/phaser/variant.c index 22f4f71..990c864f 100644 --- a/src/mainboard/google/octopus/variants/phaser/variant.c +++ b/src/mainboard/google/octopus/variants/phaser/variant.c @@ -30,8 +30,8 @@ if (touchscreen_i2c_host == NULL) return;
- /* SKU ID 1 does not have a touchscreen device, hence disable it. */ + /* SKU ID 1, 5 and 6 does not have a touchscreen device, hence disable it. */ google_chromeec_cbi_get_sku_id(&sku_id); - if (sku_id == 1) + if ((sku_id == 1) || (sku_id == 5) || (sku_id == 6)) touchscreen_i2c_host->enabled = 0; }