[U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

Vignesh R
2016-05-02T04:11:46Z

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 at lists.denx.de/msg210771.html

--
Regards
Vignesh