
2 May
2016
2 May
'16
6:11 a.m.
Hi,
On 05/02/2016 12:25 AM, Simon Glass wrote:
i Vignesh,
On 21 April 2016 at 02:42, Vignesh R vigneshr@ti.com wrote:
[...]
+static int davinci_ofdata_to_platadata(struct udevice *bus) +{
struct davinci_spi_slave *ds = dev_get_priv(bus);
const void *blob = gd->fdt_blob;
int node = bus->of_offset;
ds->regs = map_physmem(dev_get_addr(bus),
sizeof(struct davinci_spi_regs), MAP_NOCACHE);
Can you add a dev_map_physmem() to do this in one step?
Sure, where would you like dev_map_physmem() to reside? In drivers/core/device.c?
Yes please.
I already posted v2 with this change: https://www.mail-archive.com/u-boot@lists.denx.de/msg210771.html
--
Regards
Vignesh