nios2: zap ioremap
Zap ioremap(), as it is replaced by map_physmem(,,MAP_NOCACHE). Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
7be35ddd20
commit
f5b76de440
|
@ -47,12 +47,6 @@ static inline phys_addr_t virt_to_phys(void * vaddr)
|
||||||
return (phys_addr_t)vaddr & gd->arch.physaddr_mask;
|
return (phys_addr_t)vaddr & gd->arch.physaddr_mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void *ioremap(unsigned long physaddr, unsigned long size)
|
|
||||||
{
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
return (void *)(gd->arch.io_region_base | physaddr);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define __raw_writeb(v,a) (*(volatile unsigned char *)(a) = (v))
|
#define __raw_writeb(v,a) (*(volatile unsigned char *)(a) = (v))
|
||||||
#define __raw_writew(v,a) (*(volatile unsigned short *)(a) = (v))
|
#define __raw_writew(v,a) (*(volatile unsigned short *)(a) = (v))
|
||||||
#define __raw_writel(v,a) (*(volatile unsigned int *)(a) = (v))
|
#define __raw_writel(v,a) (*(volatile unsigned int *)(a) = (v))
|
||||||
|
|
Loading…
Reference in New Issue