summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common
diff options
context:
space:
mode:
authorJason Chen <Jason-ch.Chen@mediatek.com>2023-03-28 15:41:38 +0800
committerRex-BC Chen <rex-bc.chen@mediatek.com>2023-04-10 01:55:00 +0000
commitb75c92fa2667f29ed1989bb40d730ee9e1ac937c (patch)
tree12dd74834a3a06331377e34eb8ae839cb6743aa6 /src/soc/mediatek/common
parent9fbdb2b19295380e0f222e62c12f1b2a2b58540d (diff)
soc/mediatek/mt8186: Reduce GPIO code size in bootblock
Create a new GPIO driving info table that contains only the pins used in the bootblock. The GPIO driving info table is downsized from 1480 bytes to 24 bytes. BUG=b:270911452 TEST=build pass Change-Id: I24775ba93cd74ae401747c2f5a26bbf1c8f6ac0a Signed-off-by: Jason Chen <Jason-ch.Chen@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74062 Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/common')
-rw-r--r--src/soc/mediatek/common/include/soc/gpio_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/common/include/soc/gpio_common.h b/src/soc/mediatek/common/include/soc/gpio_common.h
index f0cbb04366..993dbe6325 100644
--- a/src/soc/mediatek/common/include/soc/gpio_common.h
+++ b/src/soc/mediatek/common/include/soc/gpio_common.h
@@ -34,7 +34,7 @@ enum gpio_drv_adv {
};
struct gpio_drv_info {
- uint32_t offset;
+ uint8_t offset;
uint8_t shift;
uint8_t width;
};