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

Vignesh R vigneshr at ti.com
Mon May 2 06:11:46 CEST 2016


Hi,

On 05/02/2016 12:25 AM, Simon Glass wrote:
> i Vignesh,
> 
> On 21 April 2016 at 02:42, Vignesh R <vigneshr at 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


More information about the U-Boot mailing list