From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vignesh R Date: Mon, 2 May 2016 09:41:46 +0530 Subject: [U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM In-Reply-To: References: <1460460807-4461-1-git-send-email-vigneshr@ti.com> <1460460807-4461-2-git-send-email-vigneshr@ti.com> <57189289.9040804@ti.com> Message-ID: <5726D382.8040804@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 05/02/2016 12:25 AM, Simon Glass wrote: > i Vignesh, > > On 21 April 2016 at 02:42, Vignesh R 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