Skip to content

Commit

Permalink
Merge pull request #10 from godmar/t23-g2-add-mmc1bit-option
Browse files Browse the repository at this point in the history
add CONFIG_JZMMC_V12_MMC0_1BIT option
  • Loading branch information
gtxaspec authored Jul 18, 2024
2 parents a92ed53 + fc3282c commit a4417fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/xburst/soc-t23/chip-t23/isvp/common/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ struct jzmmc_platform_data tf_pdata = {
.removal = REMOVABLE,
.sdio_clk = 1,
.ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34,
#ifdef CONFIG_JZMMC_V12_MMC0_1BIT
.capacity = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED,
#else
.capacity = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_4_BIT_DATA,
#endif
.pm_flags = 0,
.recovery_info = NULL,
.gpio = &tf_gpio,
Expand Down
9 changes: 9 additions & 0 deletions drivers/mmc/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ config JZMMC_V12_MMC0_PB_4BIT
bool "GPIO B, data with 4 bit"
endchoice

config JZMMC_V12_MMC0_1BIT
bool "Restrict host controller to 1 bit bus width"
default n
help
Some devices (Galayou G2 T23N) apparently do not support 4-bit data transfers.
Enabling this option will restrict the host to using just 1-bit data
transfers.
If unsure, say N.

config MMC0_MAX_FREQ
int "msc0 max frequency"
depends on JZMMC_V12_MMC0
Expand Down

0 comments on commit a4417fd

Please sign in to comment.