[no ci] Ingenic: allow custom mmc_detect gpio (#1867)

pull/1534/merge
viktorxda 2025-08-23 21:28:30 +02:00 committed by GitHub
parent cec2ac4260
commit 74d1f6895b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -882,9 +882,6 @@ CONFIG_WLAN=y
# CONFIG_P54_COMMON is not set
# CONFIG_RT2X00 is not set
# CONFIG_RTLWIFI is not set
# CONFIG_RTLWIFI_DEBUG is not set
# CONFIG_RTL8192CU is not set
# CONFIG_RTL8192C_COMMON is not set
# CONFIG_WL_TI is not set
# CONFIG_ZD1211RW is not set
# CONFIG_MWIFIEX is not set
@ -1424,7 +1421,7 @@ CONFIG_MMC_BLOCK_BOUNCE=y
#
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_JZMMC_V12=y
CONFIG_JZMMC_V12=m
CONFIG_JZMMC_V12_SDMA=y
CONFIG_JZMMC_V12_MMC0=y
# CONFIG_JZMMC_V12_MMC0_PA_4BIT is not set

View File

@ -83,3 +83,9 @@ if [ $? -ne 0 ]; then
modprobe audio spk_gpio=-1
check_return "modprobe audio"
fi
lsmod | grep -q "jzmmc_v12"
if [ $? -ne 0 ]; then
modprobe jzmmc_v12 detect_pin=$(fw_printenv -n gpio_mmc || echo 59)
check_return "modprobe mmc"
fi