forked from Mirrors/opensbi
lib: utils: Add M-mode {R/W} flags to the MMIO regions
Add the M-mode readable/writable flags to mmio regions of various drivers. Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Tested-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
3e2f573e70
commit
59a08cd7d6
@@ -88,7 +88,10 @@ int aclint_mswi_cold_init(struct aclint_mswi_data *mswi)
|
||||
region_size = ((mswi->size - pos) < ACLINT_MSWI_ALIGN) ?
|
||||
(mswi->size - pos) : ACLINT_MSWI_ALIGN;
|
||||
sbi_domain_memregion_init(mswi->addr + pos, region_size,
|
||||
SBI_DOMAIN_MEMREGION_MMIO, ®);
|
||||
(SBI_DOMAIN_MEMREGION_MMIO |
|
||||
SBI_DOMAIN_MEMREGION_M_READABLE |
|
||||
SBI_DOMAIN_MEMREGION_M_WRITABLE),
|
||||
®);
|
||||
rc = sbi_domain_root_add_memregion(®);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user