1 // SPDX-License-Identifier: GPL-2.0-only
5 void __iomem
*ioremap_prot(phys_addr_t offset
, unsigned long size
,
6 unsigned long prot_val
)
8 unsigned long flags
= prot_val
& _CACHE_MASK
;
9 u64 base
= (flags
== _CACHE_UNCACHED
? IO_BASE
: UNCAC_BASE
);
12 addr
= plat_ioremap(offset
, size
, flags
);
14 addr
= (void __iomem
*)(unsigned long)(base
+ offset
);
17 EXPORT_SYMBOL(ioremap_prot
);
19 void iounmap(const volatile void __iomem
*addr
)
23 EXPORT_SYMBOL(iounmap
);