Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-19 Thread Stefano Babic
On 18/01/2012 21:05, Eric Nelson wrote: >> >> Yes, you're right - of course, I am open also to other solutions if they >> are proofed to be better ;-). >> > > I think this is about as good as things get with the current code base. > I would argue that the driver would be better if it explicitly s

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-18 Thread Eric Nelson
On 01/18/2012 01:39 AM, Stefano Babic wrote: On 18/01/2012 02:44, Eric Nelson wrote: I'll defer to Stefano on this one, since I did this in response to his request: Yes, I admit I am guilty about this ! The layout of the CSPI registers is not exactly the same for all SOCs. For example, the MX

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-18 Thread Stefano Babic
On 18/01/2012 17:08, Marek Vasut wrote: > Ok guys, I see ... Stefano, you're ok with putting the reg structures into > these > header files? The reg structures are already into these header files - the patch moves only the bit meaning inside the imx-regs.h files. We can discuss if we should mov

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-18 Thread Marek Vasut
> On 18/01/2012 02:44, Eric Nelson wrote: > > On 01/17/2012 06:27 PM, Marek Vasut wrote: > >>> On 01/17/2012 04:19 PM, Marek Vasut wrote: > > Signed-off-by: Eric Nelson > > +/* ECSPI registers */ > > +struct cspi_regs { > > +u32 rxdata; > > +u32 txdata; > > +u32

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-18 Thread Stefano Babic
On 18/01/2012 02:44, Eric Nelson wrote: > On 01/17/2012 06:27 PM, Marek Vasut wrote: >>> On 01/17/2012 04:19 PM, Marek Vasut wrote: > Signed-off-by: Eric Nelson > +/* ECSPI registers */ > +struct cspi_regs { > +u32 rxdata; > +u32 txdata; > +u32 ctrl; > +u

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
On 01/17/2012 06:47 PM, Marek Vasut wrote: On 01/17/2012 06:27 PM, Marek Vasut wrote: I'll defer to Stefano on this one, since I did this in response to his request: >> Right - and we already discussed in the past how to avoid to put specific SOC code inside the driver. In fact, the cspi_regs

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Marek Vasut
> On 01/17/2012 06:27 PM, Marek Vasut wrote: > >> On 01/17/2012 04:19 PM, Marek Vasut wrote: > Signed-off-by: Eric Nelson > +/* ECSPI registers */ > +struct cspi_regs { > +u32 rxdata; > +u32 txdata; > +u32 ctrl; > +u32 cfg; > +

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
On 01/17/2012 06:27 PM, Marek Vasut wrote: On 01/17/2012 04:19 PM, Marek Vasut wrote: Signed-off-by: Eric Nelson +/* ECSPI registers */ +struct cspi_regs { + u32 rxdata; + u32 txdata; + u32 ctrl; + u32 cfg; + u32 intr; + u32 dma; + u32 stat; + u32

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Marek Vasut
> On 01/17/2012 04:19 PM, Marek Vasut wrote: > >> Signed-off-by: Eric Nelson > >> --- > >> > >> arch/arm/include/asm/arch-mx6/imx-regs.h | 44 > >> > >> ++ 1 files changed, 44 insertions(+), 0 > >> deletions(-) > >> > >> diff --git a/arch/arm/include/asm/arch-mx6/i

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
On 01/17/2012 04:19 PM, Marek Vasut wrote: Signed-off-by: Eric Nelson --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-r

Re: [U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Marek Vasut
> Signed-off-by: Eric Nelson > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 44 > ++ 1 files changed, 44 insertions(+), 0 > deletions(-) > > diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h > b/arch/arm/include/asm/arch-mx6/imx-regs.h index 7650cb9..00040c4

[U-Boot] [PATCH 2/6] mx6q: Add support for ECSPI through mxc_spi driver

2012-01-17 Thread Eric Nelson
Signed-off-by: Eric Nelson --- arch/arm/include/asm/arch-mx6/imx-regs.h | 44 ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h index 7650cb9..00040c4 100644 --- a/a