|
@@ -533,7 +533,7 @@ static int mtk_iommu_hw_init(const struct mtk_iommu_data *data)
|
|
|
|
|
|
writel_relaxed(F_MMU_IVRP_PA_SET(data->protect_base, data->enable_4GB),
|
|
|
data->base + REG_MMU_IVRP_PADDR);
|
|
|
- if (data->enable_4GB && data->m4u_type != M4U_MT8173) {
|
|
|
+ if (data->enable_4GB && data->m4u_plat != M4U_MT8173) {
|
|
|
/*
|
|
|
* If 4GB mode is enabled, the validate PA range is from
|
|
|
* 0x1_0000_0000 to 0x1_ffff_ffff. here record bit[32:30].
|