[PATCH V5 0/4] Add Genesys Logic GL9767 support

From: Victor Shih
Date: Wed May 31 2023 - 21:51:27 EST


These patches support for the GL9767 chipset and add support SD3/SD Express
mode for the GL9767.

Changes in v5 (June. 1, 2023)
* rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch.
* Patch#3: adjust the alignment of definitions.

----------------- original cover letter from v4 -----------------
These patches support for the GL9767 chipset and add support SD3/SD Express
mode for the GL9767.

Changes in v4 (May. 31, 2023)
* rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch.
* add VDD2 definition for power control-register.
* Patch#4: use SDHCI_VDD2_POWER_ON to instead SDHCI_POWER_ON in
gl9767_init_sd_express() function.
use SDHCI_VDD2_POWER_180 to instead SDHCI_POWER_180 in
gl9767_init_sd_express() function.

----------------- original cover letter from v3 -----------------
These patches support for the GL9767 chipset and add support SD3/SD Express
mode for the GL9767.

Changes in v3 (May. 31, 2023)
* rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch.
* Patch#2: use msleep() to instead mdelay().
* Patch#3: modify the if-else condition and content in
gl9767_init_sd_express() function.
adjust the order of definitions.

----------------- original cover letter from v2 -----------------
These patches support for the GL9767 chipset and add support SD3/SD Express
mode for the GL9767.

Changes in v2 (May. 30, 2023)
* rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch.
* Add set SDR104's clock to 205MHz and enable SSC for GL9767.
* drop export sdhci_check_ro() function.
* Patch#1: add gl9767_vhs_read() and gl9767_vhs_write().
* Patch#3: use mmc->ops->get_ro() to instead sdhci_check_ro().
use msleep() to instead mdelay().
modify the wait time for Power valid to CLKREQ.
drop unused definitions.

----------------- original cover letter from v1 -----------------
These patches support for the GL9767 chipset and add support SD3/SD Express
mode for the GL9767.

Changes in v1 (May. 12, 2023)
* rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch.
* enable MSI interrupt for the GL9767.
* add support SDR mode for the GL9767.
* export sdhci_check_ro() function.
* add support SD Express mode for the GL9767.

Victor Shih (4):
mmc: sdhci-pci-gli: Add Genesys Logic GL9767 support
mmc: sdhci-pci-gli: Set SDR104's clock to 205MHz and enable SSC for
GL9767
mmc: sdhci: Add VDD2 definition for power control register
mmc: sdhci-pci-gli: Add support SD Express card for GL9767

drivers/mmc/host/sdhci-pci-core.c | 1 +
drivers/mmc/host/sdhci-pci-gli.c | 406 ++++++++++++++++++++++++++++++
drivers/mmc/host/sdhci-pci.h | 2 +
drivers/mmc/host/sdhci.h | 7 +
4 files changed, 416 insertions(+)

--
2.25.1