mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
altera_qspi: change ioremap to map_physmem
Change ioremap() to map_physmem(), as it is more used in u-boot. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
e2b259f70e
commit
8ed38fa50c
@ -243,7 +243,7 @@ static int altera_qspi_ofdata_to_platdata(struct udevice *dev)
|
||||
addr = fdt_translate_address((void *)blob,
|
||||
node, cell + idx);
|
||||
size = fdt_addr_to_cpu(cell[idx + addrc]);
|
||||
base = ioremap(addr, size);
|
||||
base = map_physmem(addr, size, MAP_NOCACHE);
|
||||
len = strlen(list);
|
||||
if (strcmp(list, "avl_csr") == 0) {
|
||||
pdata->regs = base;
|
||||
|
Loading…
Reference in New Issue
Block a user