diff --git a/lib/utils/regmap/fdt_regmap_syscon.c b/lib/utils/regmap/fdt_regmap_syscon.c index 29263ddd..d87b6e09 100644 --- a/lib/utils/regmap/fdt_regmap_syscon.c +++ b/lib/utils/regmap/fdt_regmap_syscon.c @@ -8,6 +8,7 @@ */ #include +#include #include #include #include @@ -240,6 +241,12 @@ static int regmap_syscon_init(void *fdt, int nodeoff, u32 phandle, goto fail_free_syscon; } + rc = sbi_domain_root_add_memrange(addr, size, PAGE_SIZE, + (SBI_DOMAIN_MEMREGION_MMIO | + SBI_DOMAIN_MEMREGION_SHARED_SURW_MRW)); + if (rc) + goto fail_free_syscon; + rc = regmap_add(&srm->rmap); if (rc) goto fail_free_syscon;