Commit 40f16f0
mmc: brcmstb: add support for BCM2712
BCM2712 uses the SDIO CFG register block present on other STB chips.
Add plumbing for the BCM2712-specific functions.
mmc: brcmstb: override card presence if broken-cd is set
Not just if the card is declared as nonremovable.
mmc: sdhci-brcmstb: only use the delay line PHY for tuneable speeds
The MMC core has a 200MHz core clock which allows the use of DDR50 and
below without incremental phase tuning. SDR50/SDR104 and the EMMC HS200
speeds require tuning.
Signed-off-by: Jonathan Bell <[email protected]>
drivers: mmc: sdhci-brcmstb: fix usage of SD_PIN_SEL on BCM2712
The SDIO_CFG register SD_PIN_SEL conflates two settings - whether eMMC
HS or SD UHS timings are applied to the interface, and whether or not
the card-detect line is functional. SD_PIN_SEL can only be changed when
the SD clock isn't running, so add a bcm2712-specific clock setup.
Toggling SD_PIN_SEL at runtime means the integrated card-detect feature
can't be used, so this controller needs a cd-gpios property.
Also fix conditionals for usage of the delay-line PHY - no-1-8-v will
imply no bits set in hsemmc_mask or uhs_mask, so remove it.
Signed-off-by: Jonathan Bell <[email protected]>
drivers: sdhci-brcmstb: set CQE timer clock frequency
CQHCI keeps track of tags in flight with internal timers, so the clock
frequency driving the timer needs to be specified. The config registers
default to 0 (100kHz) which means timeouts will be significantly shorter
than they should be. Assume the timer clock comes from the controller
base clock.
Signed-off-by: Jonathan Bell <[email protected]>1 parent 85a3b63 commit 40f16f0
1 file changed
+67
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
225 | 265 | | |
226 | 266 | | |
227 | 267 | | |
| |||
237 | 277 | | |
238 | 278 | | |
239 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
240 | 291 | | |
241 | 292 | | |
242 | 293 | | |
| |||
285 | 336 | | |
286 | 337 | | |
287 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
288 | 343 | | |
289 | 344 | | |
290 | 345 | | |
291 | 346 | | |
292 | 347 | | |
293 | | - | |
| 348 | + | |
294 | 349 | | |
295 | 350 | | |
296 | 351 | | |
| |||
307 | 362 | | |
308 | 363 | | |
309 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
310 | 370 | | |
311 | 371 | | |
312 | 372 | | |
| |||
374 | 434 | | |
375 | 435 | | |
376 | 436 | | |
377 | | - | |
378 | | - | |
| 437 | + | |
| 438 | + | |
379 | 439 | | |
380 | 440 | | |
381 | 441 | | |
| |||
403 | 463 | | |
404 | 464 | | |
405 | 465 | | |
| 466 | + | |
| 467 | + | |
406 | 468 | | |
407 | 469 | | |
408 | 470 | | |
| |||
546 | 608 | | |
547 | 609 | | |
548 | 610 | | |
| 611 | + | |
| 612 | + | |
549 | 613 | | |
550 | 614 | | |
551 | 615 | | |
| |||
643 | 707 | | |
644 | 708 | | |
645 | 709 | | |
646 | | - | |
647 | 710 | | |
648 | 711 | | |
649 | 712 | | |
| |||
0 commit comments