@@ -331,6 +331,7 @@ static const u32 rts5227_ms_pull_ctl_disable_tbl[] = {
void rts5227_init_params(struct rtsx_pcr *pcr)
{
pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+ pcr->extra_caps |= EXTRA_CAPS_SDUC;
pcr->num_slots = 2;
pcr->ops = &rts5227_pcr_ops;
@@ -686,6 +686,7 @@ void rts5228_init_params(struct rtsx_pcr *pcr)
struct rtsx_hw_param *hw_param = &pcr->hw_param;
pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+ pcr->extra_caps |= EXTRA_CAPS_SDUC;
pcr->num_slots = 1;
pcr->ops = &rts5228_pcr_ops;
@@ -540,6 +540,7 @@ void rts5249_init_params(struct rtsx_pcr *pcr)
struct rtsx_cr_option *option = &(pcr->option);
pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+ pcr->extra_caps |= EXTRA_CAPS_SDUC;
pcr->num_slots = 2;
pcr->ops = &rts5249_pcr_ops;
@@ -586,6 +586,7 @@ void rts5260_init_params(struct rtsx_pcr *pcr)
struct rtsx_hw_param *hw_param = &pcr->hw_param;
pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+ pcr->extra_caps |= EXTRA_CAPS_SDUC;
pcr->num_slots = 2;
pcr->flags = 0;
@@ -766,6 +766,7 @@ void rts5261_init_params(struct rtsx_pcr *pcr)
u8 val;
pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
+ pcr->extra_caps |= EXTRA_CAPS_SDUC;
rtsx_pci_read_register(pcr, RTS5261_FW_STATUS, &val);
if (!(val & RTS5261_EXPRESS_LINK_FAIL_MASK))
pcr->extra_caps |= EXTRA_CAPS_SD_EXPRESS;
@@ -845,7 +845,7 @@ void rts5264_init_params(struct rtsx_pcr *pcr)
u8 val;
pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104;
- pcr->extra_caps |= EXTRA_CAPS_NO_MMC;
+ pcr->extra_caps |= EXTRA_CAPS_NO_MMC | EXTRA_CAPS_SDUC;
rtsx_pci_read_register(pcr, RTS5264_FW_STATUS, &val);
if (!(val & RTS5264_EXPRESS_LINK_FAIL_MASK))
pcr->extra_caps |= EXTRA_CAPS_SD_EXPRESS;
Realtek Card readers to support SDUC RTS5227/RTS522A/RTS5249/RTS524A/RTS525A/ RTS5260/RTS5261/RTS5228/RTS5264 Signed-off-by: Ricky Wu <ricky_wu@realtek.com> --- drivers/misc/cardreader/rts5227.c | 1 + drivers/misc/cardreader/rts5228.c | 1 + drivers/misc/cardreader/rts5249.c | 1 + drivers/misc/cardreader/rts5260.c | 1 + drivers/misc/cardreader/rts5261.c | 1 + drivers/misc/cardreader/rts5264.c | 2 +- 6 files changed, 6 insertions(+), 1 deletion(-)