Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-11-01 Thread Simon Glass
Hi Stefan, On 31 October 2014 02:01, Stefan Roese wrote: > Hi Simon, > > On 31.10.2014 02:30, Simon Glass wrote: But first let's make sure that you really do have the platform that doesn't use device tree... If it is ARM my understanding is that it should. >>> >>> >>> >>> It d

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-31 Thread Stefan Roese
Hi Simon, On 31.10.2014 02:30, Simon Glass wrote: But first let's make sure that you really do have the platform that doesn't use device tree... If it is ARM my understanding is that it should. It does. In the kernel. I think I'll dive into adding DT support for SoCFPGA for a few hours. Perha

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-30 Thread Simon Glass
Hi Stefan, On 29 October 2014 22:38, Stefan Roese wrote: > Hi Simon, > > On 30.10.2014 02:43, Simon Glass wrote: >>> >>> In my case I'm implementing the Designware master SPI driver for the >>> SoCFPGA. And since its a new driver it really makes sense to use DM >>> directly. I'm starting to get a

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Stefan Roese
Hi Simon, On 30.10.2014 02:43, Simon Glass wrote: In my case I'm implementing the Designware master SPI driver for the SoCFPGA. And since its a new driver it really makes sense to use DM directly. I'm starting to get an overview now. One thing though that I noticed is, that the SPI DM implementa

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Simon Glass
Hi Stefan, On 29 October 2014 07:02, Stefan Roese wrote: > Hi Simon! > > On 14.10.2014 07:41, Simon Glass wrote: >> >> Add a uclass which provides access to SPI buses and includes operations >> required by SPI. >> >> For a time driver model will need to co-exist with the legacy SPI >> interface >

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Stefan Roese
Hi Jagan! On 29.10.2014 16:39, Jagan Teki wrote: diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c +int spi_post_bind(struct udevice *dev) +{ + /* Scan the bus for devices */ + return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); +} SoCFPGA curren

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Jagan Teki
Hi Stefan, On 29 October 2014 18:32, Stefan Roese wrote: > Hi Simon! > > On 14.10.2014 07:41, Simon Glass wrote: >> >> Add a uclass which provides access to SPI buses and includes operations >> required by SPI. >> >> For a time driver model will need to co-exist with the legacy SPI >> interface >

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-29 Thread Stefan Roese
Hi Simon! On 14.10.2014 07:41, Simon Glass wrote: Add a uclass which provides access to SPI buses and includes operations required by SPI. For a time driver model will need to co-exist with the legacy SPI interface so some parts of the header file are changed depending on which is in use. The e

Re: [U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-22 Thread Simon Glass
On 13 October 2014 23:41, Simon Glass wrote: > Add a uclass which provides access to SPI buses and includes operations > required by SPI. > > For a time driver model will need to co-exist with the legacy SPI interface > so some parts of the header file are changed depending on which is in use. > T

[U-Boot] [PATCH v4 05/29] dm: spi: Add a uclass for SPI

2014-10-13 Thread Simon Glass
Add a uclass which provides access to SPI buses and includes operations required by SPI. For a time driver model will need to co-exist with the legacy SPI interface so some parts of the header file are changed depending on which is in use. The exports are adjusted also since some functions are not