Add emmc support for Rockchip RK3399 SoC.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
It missed the phy, so currently this works because u-boot already setup it for us.
sys/dev/sdhci/sdhci_fdt.c | ||
---|---|---|
57 ↗ | (On Diff #57033) | This needs to be undef ifdef EXT_RESOURCES. |
sys/dev/sdhci/sdhci_fdt.c | ||
---|---|---|
289 ↗ | (On Diff #57033) | This should be moved from probe to attach. |
For rockchip there is a clock exposed (via the clock-output-names property) but you don't register it and you try to get it in the emmc-phy review (D20840).
This means that the sdhci driver should first expose the clock, wait for the phy driver with the help of newpass to be attached and then resume the work on sd/emmc detection.
I also think that you should subclass the driver since this will add a lot of rockchip related code.
Added ncells check in rk3399_ofw_map() function according to comment.
Moved rk3399 sdhci init related codes into sdhci_init_rk3399() function so that it looks more clean.