.compatible = "rockchip,rk3368-sdmmc",
.ctrl_type = DW_MCI_TYPE_RK3368,
},
+ {
+ .compatible = "rockchip,rk3228-sdmmc",
+ .ctrl_type = DW_MCI_TYPE_RK3228,
+ },
};
#define syscon_find(np, property) \
if ((priv->ctrl_type == DW_MCI_TYPE_RK3288) ||
(priv->ctrl_type == DW_MCI_TYPE_RK3036) ||
(priv->ctrl_type == DW_MCI_TYPE_RK312X) ||
- (priv->ctrl_type == DW_MCI_TYPE_RK3368))
+ (priv->ctrl_type == DW_MCI_TYPE_RK3368) ||
+ (priv->ctrl_type == DW_MCI_TYPE_RK3228))
host->bus_hz /= (priv->ciu_div + 1);
return 0;
regmap_write(host->grf, 0x43c, (1<<13)<<16 | (0 << 13));
} else if (cpu_is_rk3288()) {
grf_writel(((1 << 12) << 16) | (0 << 12), RK3288_GRF_SOC_CON0);
+ } else if (host->cid == DW_MCI_TYPE_RK3228) {
+ grf_writel(((1 << 8) << 16) | (0 << 8), RK3228_GRF_SOC_CON6);
}
/* We assume only low-level chip use gpio_cd */