coreboot/src/soc/mediatek/mt8196
Vince Liu 80149f55f7 soc/mediatek/common: Convert spmi_dev_cnt to a function
In some SoCs, such as MT8189G/H, different numbers of PMICs are
required. To ensure code reusability and compatibility, it is
necessary to dynamically set this variable. Therefore, spmi_dev_cnt
is changed to a function.

BUG=b:379008996
BRANCH=none
TEST=build passed

Signed-off-by: Vince Liu <vince-wl.liu@mediatek.corp-partner.google.com>
Change-Id: Ib8d6306a81c276dceb021ddadec40803fd85019b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87853
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
2025-05-28 08:37:12 +00:00
..
include/soc mt8196: Remove mcupm_plat.h header from mcupm_plat.h 2025-05-22 07:54:20 +00:00
booker.c soc/mediatek/mt8196: Add booker driver 2024-12-10 11:04:14 +00:00
bootblock.c soc/mediatek/mt8196: Add unmask eint event for bootblock 2025-01-20 02:27:03 +00:00
chip.h soc/mediatek/mt8196: Add PCIe driver and early init support 2024-10-28 03:35:46 +00:00
cksys.c soc/mediatek/mt8196: Add dynamic power-saving for peripheral clocks 2024-12-30 22:23:44 +00:00
clkbuf_ctl.c soc/mediatek/mt8196: Add clk_buf drivers 2025-01-11 07:10:50 +00:00
dcc.c soc/mediatek/mt8196: Add DCC driver support in ramstage 2025-04-18 07:18:57 +00:00
ddp.c soc/mediatek/mt8196: Add DDP driver 2025-01-21 14:16:25 +00:00
dp_intf.c soc/mediatek/mt8196: Add eDP driver 2025-01-21 14:16:17 +00:00
dptx.c soc/mediatek/common/display: Add force max swing quirk 2025-04-17 14:34:20 +00:00
dptx_hal.c soc/mediatek/mt8196: Correct assert conditions 2025-02-07 12:43:26 +00:00
dvfs.c soc/mediatek/commmon: Set mcupm mcufw_reserved region to non-cacheable 2025-01-27 23:57:42 +00:00
dvfsrc.c soc/mediatek/mt8196: Add vcore DVFS settings 2025-01-22 15:43:02 +00:00
eint_event_info.c soc/mediatek/mt8196: Add unmask eint event for bootblock 2025-01-20 02:27:03 +00:00
gpio.c soc/mediatek/mt8196: Add GPIO driver 2024-08-23 14:34:54 +00:00
gpio_eint.c soc/mediatek/mt8196: Move common functions to gpio_eint_v2.c 2025-02-21 14:12:23 +00:00
gpueb.c soc/mediatek/mt8196: Add GPUEB support 2025-01-07 10:04:41 +00:00
i2c.c soc/mediatek/common: Move I2C functions to common code 2025-04-24 06:44:59 +00:00
irq2axi.c soc/mediatek/mt8196: Disable irq2axi feature 2024-11-06 04:00:26 +00:00
Kconfig soc/mediatek/common: Add DPM V2 non-broadcast mode support 2025-05-20 05:12:04 +00:00
l2c_ops.c soc/mediatek/mt8196: Enable MMU operation for L2C SRAM and DMA 2024-08-24 13:00:04 +00:00
lastbus.c tree: Remove unused <console/console.h> 2024-11-16 23:34:08 +00:00
Makefile.mk soc/mediatek/mt8196: Move sspm_enable_sram() to common code 2025-05-16 09:18:13 +00:00
mcupm.c soc/mediatek/mt8196: Initialize MCUPM 2025-01-18 04:32:13 +00:00
memory.c soc/mediatek/mt8196: Map LPDDR type to mem_chip_type 2024-11-13 02:28:00 +00:00
mminfra.c soc/mediatek/mt8196: Add GCE ddren sel control to mminfra 2025-01-19 07:59:01 +00:00
modem_power_ctrl.c soc/mediatek/mt8196: Fix issue with incomplete modem disable 2025-01-21 14:18:48 +00:00
msdc.c soc/mediatek/mt8196: Initialize PMIF for SD Card 2025-01-15 10:58:31 +00:00
mt6316.c soc/mediatek/mt8196: Add PMIC MT6316 driver 2024-12-25 08:06:07 +00:00
mt6363.c soc/mediatek: Distinguish pmic_init_setting function name 2024-12-26 12:29:11 +00:00
mt6373.c soc/mediatek/mt8196: Add PMIC MT6373 driver 2024-12-13 04:01:54 +00:00
mt6685.c soc/mediatek/mt8196: Add MT6685 Clock IC driver 2024-12-29 01:38:41 +00:00
mt6685_rtc.c soc/mediatek/mt8196: Fix RTC protection register unlock failure 2025-05-13 09:05:34 +00:00
mtcmos.c soc/mediatek/mt8196: Correct MMinfra vote register 2025-02-11 14:09:56 +00:00
pcie.c soc/mediatek/mt8196: Add PCIe driver and early init support 2024-10-28 03:35:46 +00:00
pi_image.c soc/mediatek/mt8196: Add pi_img loader in ramstage 2025-01-27 23:58:02 +00:00
pll.c soc/mediatek/mt8196: Disable HWRot's clocks 2025-02-25 11:22:30 +00:00
pmif_clk.c soc/mediatek/mt8196: Disable PMIF reset after enable 2025-03-19 08:13:23 +00:00
pmif_init.c soc/mediatek: Rename is_pmif_init_done to check_init_done 2025-01-15 10:58:23 +00:00
pmif_spmi.c soc/mediatek/common: Convert spmi_dev_cnt to a function 2025-05-28 08:37:12 +00:00
pwrsel.c soc/mediatek/mt8196: Rename mtk_pwrsel.* to pwrsel.* 2025-01-21 04:13:05 +00:00
soc.c soc/mediatek/mt8196: Add DCC driver support in ramstage 2025-04-18 07:18:57 +00:00
spi.c tree: Remove unused <console/console.h> 2024-11-16 23:34:08 +00:00
spm.c soc/mediatek/mt8196: Move SPM loader functions to common part 2025-04-21 03:41:30 +00:00
srclken_rc.c soc/mediatek/mt8196: Add srclken_rc drivers 2025-01-11 07:10:59 +00:00
thermal.c soc/mediatek/mt8196: Save HW protect temperature to SRAM 2025-03-08 01:51:21 +00:00
thermal_sram.c soc/mediatek/mt8196: Save HW protect temperature to SRAM 2025-03-08 01:51:21 +00:00
timer.c soc/mediatek/common: Rename GPT_MHZ to TIMER_MHZ for readability 2024-12-21 16:09:23 +00:00
timer_prepare.c soc/mediatek/mt8196: Fix timer reset in BL31 2024-09-30 11:11:01 +00:00
tracker.c soc/mediatek/mt8196: Add tracker driver 2024-12-18 02:43:59 +00:00
usb.c soc/mediatek/mt8196: Add USB host support 2024-08-29 13:52:39 +00:00
wdt.c soc/mediatek/mt8196: Initialize watchdog 2024-08-24 13:00:25 +00:00