summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8183
diff options
context:
space:
mode:
authorYidi Lin <yidilin@chromium.org>2024-05-29 17:21:30 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-08-10 01:10:20 +0000
commitdb5dbdf310bca698acaa4ce945692ef59147aca4 (patch)
tree5d1194ff007e0de747109e3329d457bedc41233b /src/soc/mediatek/mt8183
parentb60cfb89e99bd2c6a7136b99385eb1fbe5b8e85d (diff)
soc/mediatek/common: Refactor EINT driver
Refactor EINT driver by - Move `pos_bit_calc_for_eint` to `common/gpio_eint_v1.c` and rename to `gpio_calc_eint_pos_bit`. - Implement `gpio_get_eint_reg` to obtain EINT base address. This change is prepared for the driver change in MT8196. BUG=b:334723688 TEST=EINT works on Geralt Change-Id: Ie53abc23971bfa39250ebd7dd48e28d6b91c5973 Signed-off-by: Yidi Lin <yidilin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83703 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8183')
-rw-r--r--src/soc/mediatek/mt8183/Makefile.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/mediatek/mt8183/Makefile.mk b/src/soc/mediatek/mt8183/Makefile.mk
index 3b4a1e8ccb..775cdea7c9 100644
--- a/src/soc/mediatek/mt8183/Makefile.mk
+++ b/src/soc/mediatek/mt8183/Makefile.mk
@@ -3,7 +3,7 @@ ifeq ($(CONFIG_SOC_MEDIATEK_MT8183),y)
bootblock-y += bootblock.c
bootblock-y += ../common/auxadc.c
-bootblock-y += ../common/gpio.c gpio.c
+bootblock-y += ../common/gpio_eint_v1.c ../common/gpio.c gpio.c
bootblock-y += ../common/pll.c pll.c
bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
bootblock-y += mt8183.c
@@ -17,7 +17,7 @@ decompressor-y += ../common/mmu_operations.c
decompressor-y += ../common/timer.c
verstage-y += ../common/auxadc.c
-verstage-y += ../common/gpio.c gpio.c
+verstage-y += ../common/gpio_eint_v1.c ../common/gpio.c gpio.c
verstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
verstage-y += mt8183.c
verstage-y += ../common/i2c.c i2c.c
@@ -34,7 +34,7 @@ romstage-y += dramc_pi_calibration_api.c
romstage-y += memory.c
romstage-$(CONFIG_MEMORY_TEST) += ../common/memory_test.c
romstage-y += mt8183.c
-romstage-y += ../common/gpio.c gpio.c
+romstage-y += ../common/gpio_eint_v1.c ../common/gpio.c gpio.c
romstage-y += ../common/mmu_operations.c mmu_operations.c
romstage-y += ../common/pll.c pll.c
romstage-y += ../common/pmic_wrap.c pmic_wrap.c mt6358.c
@@ -50,7 +50,7 @@ ramstage-y += emi.c
ramstage-y += ../common/auxadc.c
ramstage-y += ../common/ddp.c ddp.c
ramstage-y += ../common/dsi.c ../common/mtk_mipi_dphy.c
-ramstage-y += ../common/gpio.c gpio.c
+ramstage-y += ../common/gpio_eint_v1.c ../common/gpio.c gpio.c
ramstage-y += ../common/i2c.c i2c.c
ramstage-y += ../common/mcu.c
ramstage-y += ../common/mmu_operations.c mmu_operations.c