@@ -125,6 +125,22 @@ static const struct renesas_sdhi_of_data of_data_rcar_gen3 = {
125
125
/* DMAC can handle 32bit blk count but only 1 segment */
126
126
.max_blk_count = UINT_MAX / TMIO_MAX_BLK_SIZE ,
127
127
.max_segs = 1 ,
128
+ .sdhi_flags = SDHI_FLAG_NEED_CLKH_FALLBACK ,
129
+ };
130
+
131
+ static const struct renesas_sdhi_of_data of_data_rcar_gen3_no_fallback = {
132
+ .tmio_flags = TMIO_MMC_HAS_IDLE_WAIT | TMIO_MMC_CLK_ACTUAL |
133
+ TMIO_MMC_HAVE_CBSY | TMIO_MMC_MIN_RCAR2 ,
134
+ .capabilities = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
135
+ MMC_CAP_CMD23 | MMC_CAP_WAIT_WHILE_BUSY ,
136
+ .capabilities2 = MMC_CAP2_NO_WRITE_PROTECT | MMC_CAP2_MERGE_CAPABLE ,
137
+ .bus_shift = 2 ,
138
+ .scc_offset = 0x1000 ,
139
+ .taps = rcar_gen3_scc_taps ,
140
+ .taps_num = ARRAY_SIZE (rcar_gen3_scc_taps ),
141
+ /* DMAC can handle 32bit blk count but only 1 segment */
142
+ .max_blk_count = UINT_MAX / TMIO_MAX_BLK_SIZE ,
143
+ .max_segs = 1 ,
128
144
};
129
145
130
146
static const u8 r8a7796_es13_calib_table [2 ][SDHI_CALIB_TABLE_MAX ] = {
@@ -214,6 +230,10 @@ static const struct renesas_sdhi_of_data_with_quirks of_r8a77965_compatible = {
214
230
.quirks = & sdhi_quirks_r8a77965 ,
215
231
};
216
232
233
+ static const struct renesas_sdhi_of_data_with_quirks of_r8a77970_compatible = {
234
+ .of_data = & of_data_rcar_gen3_no_fallback ,
235
+ };
236
+
217
237
static const struct renesas_sdhi_of_data_with_quirks of_r8a77980_compatible = {
218
238
.of_data = & of_data_rcar_gen3 ,
219
239
.quirks = & sdhi_quirks_nohs400 ,
@@ -235,6 +255,7 @@ static const struct of_device_id renesas_sdhi_internal_dmac_of_match[] = {
235
255
{ .compatible = "renesas,sdhi-r8a7796" , .data = & of_rcar_gen3_compatible , },
236
256
{ .compatible = "renesas,sdhi-r8a77961" , .data = & of_r8a77961_compatible , },
237
257
{ .compatible = "renesas,sdhi-r8a77965" , .data = & of_r8a77965_compatible , },
258
+ { .compatible = "renesas,sdhi-r8a77970" , .data = & of_r8a77970_compatible , },
238
259
{ .compatible = "renesas,sdhi-r8a77980" , .data = & of_r8a77980_compatible , },
239
260
{ .compatible = "renesas,sdhi-r8a77990" , .data = & of_r8a77990_compatible , },
240
261
{ .compatible = "renesas,rcar-gen3-sdhi" , .data = & of_rcar_gen3_compatible , },
0 commit comments