aw_mmc: Add H616 mmc and emmc config

Reviewed by:	manu
Sponsored by:   The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54909
This commit is contained in:
Tom Jones
2026-02-09 10:05:10 +00:00
parent 063244ff95
commit 998c46ac2a
+14
View File
@@ -115,6 +115,18 @@ static const struct aw_mmc_conf a64_emmc_conf = {
.can_calibrate = true,
};
static const struct aw_mmc_conf h616_mmc_conf = {
.dma_xferlen = 0x10000,
.mask_data0 = true,
.can_calibrate = true,
.new_timing = true,
};
static const struct aw_mmc_conf h616_emmc_conf = {
.dma_xferlen = 0x10000,
.can_calibrate = true,
};
static const struct aw_mmc_conf d1_mmc_conf = {
.dma_xferlen = 0x1000,
.dma_desc_shift = 2,
@@ -131,6 +143,8 @@ static struct ofw_compat_data compat_data[] = {
{"allwinner,sun20i-d1-mmc", (uintptr_t)&d1_mmc_conf},
{"allwinner,sun50i-a64-mmc", (uintptr_t)&a64_mmc_conf},
{"allwinner,sun50i-a64-emmc", (uintptr_t)&a64_emmc_conf},
{"allwinner,sun50i-h616-mmc", (uintptr_t)&h616_mmc_conf},
{"allwinner,sun50i-h616-emmc", (uintptr_t)&h616_emmc_conf},
{NULL, 0}
};