Skip to content

Commit

Permalink
add 1-bit mmc profile for t23
Browse files Browse the repository at this point in the history
  • Loading branch information
themactep committed Jul 18, 2024
1 parent a98d1f1 commit 40303cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ isvp_t21_sfcnor mips xburst isvp_t21 ingenic t21 isvp_t21
isvp_t23n_sfcnor mips xburst isvp_t23 ingenic t23 isvp_t23:SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,T23N
isvp_t23n_sfcnor_hp mips xburst isvp_t23 ingenic t23 isvp_t23:SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,T23N,HP
isvp_t23n_sfcnor_lp mips xburst isvp_t23 ingenic t23 isvp_t23:SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,T23N,LP
isvp_t23n_sfcnor_mmc1bit mips xburst isvp_t23 ingenic t23 isvp_t23:SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,T23N,JZ_MMC_1BIT

isvp_t30_sfcnor mips xburst isvp_t30 ingenic t30 isvp_t30:SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0
isvp_t30_sfcnor_ddr128M mips xburst isvp_t30 ingenic t30 isvp_t30:SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,DDR2_128M
Expand Down
4 changes: 4 additions & 0 deletions drivers/mmc/jz_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,13 @@ static void jz_mmc_init_one(int idx, int controller, uintptr_t base, int clock)
#ifndef CONFIG_FPGA
#ifdef CONFIG_JZ_MMC_MSC0_PA_8BIT
mmc->host_caps = MMC_MODE_8BIT | MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
#else
#ifdef CONFIG_JZ_MMC_1BIT
mmc->host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
#else
mmc->host_caps = MMC_MODE_4BIT | MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
#endif
#endif
#else /* CONFIG_FPGA */
mmc->host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
#endif /* CONFIG_FPGA */
Expand Down

0 comments on commit 40303cc

Please sign in to comment.