summaryrefslogtreecommitdiff
path: root/src/mainboard/google/octopus/variants/phaser/gpio.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-11-21 14:44:13 -0800
committerFurquan Shaikh <furquan@google.com>2018-11-27 22:39:14 +0000
commite143243c1c66fb2d06e6b74a1317e10fc4fbeb0d (patch)
treeae56923cfc8cca651841e7b0cf2fa9e27d42827d /src/mainboard/google/octopus/variants/phaser/gpio.c
parente3c2391fca4464ac4d2862e480ddc93a1434152d (diff)
mb/google/octopus/var/phaser: Deprecate board id 0
This change gets rid of bid0_override_table as part of clean up effort to deprecate bid0. Additionally, it updates the touchscreen enable GPIO in overridetree and gets rid of code in variant.c to update enable gpio at runtime. BUG=b:119885949 Change-Id: I527973747e7d81ec47997da57eeb15f38d3ac2fd Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/29787 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/octopus/variants/phaser/gpio.c')
-rw-r--r--src/mainboard/google/octopus/variants/phaser/gpio.c33
1 files changed, 8 insertions, 25 deletions
diff --git a/src/mainboard/google/octopus/variants/phaser/gpio.c b/src/mainboard/google/octopus/variants/phaser/gpio.c
index 2a5dfbc87d..322b44b205 100644
--- a/src/mainboard/google/octopus/variants/phaser/gpio.c
+++ b/src/mainboard/google/octopus/variants/phaser/gpio.c
@@ -68,36 +68,19 @@ static const struct pad_config sku1_default_override_table[] = {
PAD_NC(GPIO_214, DN_20K),
};
-static const struct pad_config bid0_override_table[] = {
- PAD_NC(GPIO_52, UP_20K),
- PAD_NC(GPIO_53, UP_20K),
- PAD_NC(GPIO_67, UP_20K),
- PAD_NC(GPIO_117, UP_20K),
- PAD_NC(GPIO_143, UP_20K),
- PAD_NC(GPIO_161, DN_20K),
- PAD_NC(GPIO_214, DN_20K),
-};
-
const struct pad_config *variant_override_gpio_table(size_t *num)
{
const struct pad_config *c;
uint32_t sku_id = SKU_UNKNOWN;
- switch (board_id()) {
- case 0:
- case UNDEFINED_STRAPPING_ID:
- c = bid0_override_table;
- *num = ARRAY_SIZE(bid0_override_table);
- break;
- default:
- google_chromeec_cbi_get_sku_id(&sku_id);
- if (sku_id == 1) {
- c = sku1_default_override_table;
- *num = ARRAY_SIZE(sku1_default_override_table);
- } else {
- c = default_override_table;
- *num = ARRAY_SIZE(default_override_table);
- }
+ google_chromeec_cbi_get_sku_id(&sku_id);
+ if (sku_id == 1) {
+ c = sku1_default_override_table;
+ *num = ARRAY_SIZE(sku1_default_override_table);
+ } else {
+ c = default_override_table;
+ *num = ARRAY_SIZE(default_override_table);
}
+
return c;
}