raspberrypi / windows-drivers

Windows IOT drivers
MIT License
120 stars 33 forks source link

bcm2836sdhc: Fix host controller capabilities #13

Closed mariobalanica closed 3 years ago

mariobalanica commented 3 years ago

The Arasan SD controller has a broken capabilities register, so the capabilities need to be hardcoded in the driver. This updates the capabilities with the ones from the official Linux in-kernel driver.

Also apply a bugfix to SetHighSpeed - apparently it's some timing issue. Not sure if it actually applies to the Arasan, since the commit message only mentions iProc Cygnus, but the Linux driver applies the fix for Arasan too.

With this, the Arasan's transfer rate should double to 25MB/s.

From: https://github.com/driver1998/bsp/commit/c845d766e6fa2c60c230cc37a3374582761cc96a