RE: [PATCH 2/4] xilinx_spi: Switch to iomem functions and support little endian.

2009-11-11 Thread John Linn
Linn; > grant.lik...@secretlab.ca > Subject: [PATCH 2/4] xilinx_spi: Switch to iomem functions and support little > endian. > > This patch changes the out_(be)(8|16|32) and in_(be)(8|16|32) calls to > iowrite(8|16|32) > and ioread(8|16|32). This to be able to build on platforms n

Re: [PATCH 2/4] xilinx_spi: Switch to iomem functions and support little endian.

2009-11-11 Thread Grant Likely
On Wed, Nov 11, 2009 at 3:19 PM, John Linn wrote: >> -Original Message- >> From: Richard Röjfors [mailto:richard.rojf...@mocean-labs.com] >> Sent: Wednesday, November 11, 2009 7:39 AM [...] >> -static void xspi_init_hw(void __iomem *regs_base) >> +/* to follow are some functions that does

Re: [PATCH 2/4] xilinx_spi: Switch to iomem functions and support little endian.

2009-11-11 Thread Grant Likely
On Wed, Nov 11, 2009 at 7:38 AM, Richard Röjfors wrote: > This patch changes the out_(be)(8|16|32) and in_(be)(8|16|32) calls to > iowrite(8|16|32) > and ioread(8|16|32). This to be able to build on platforms not supporting the > in/out calls > for instance x86. As discussed previously, I'd rat

Re: [PATCH 2/4] xilinx_spi: Switch to iomem functions and support little endian.

2009-11-11 Thread Richard Röjfors
Josh Boyer wrote: > On Wed, Nov 11, 2009 at 03:38:34PM +0100, Richard Röjfors wrote: >> This patch changes the out_(be)(8|16|32) and in_(be)(8|16|32) calls to >> iowrite(8|16|32) >> and ioread(8|16|32). This to be able to build on platforms not supporting >> the in/out calls >> for instance x86.

Re: [PATCH 2/4] xilinx_spi: Switch to iomem functions and support little endian.

2009-11-11 Thread Josh Boyer
On Wed, Nov 11, 2009 at 03:38:34PM +0100, Richard Röjfors wrote: >This patch changes the out_(be)(8|16|32) and in_(be)(8|16|32) calls to >iowrite(8|16|32) >and ioread(8|16|32). This to be able to build on platforms not supporting the >in/out calls >for instance x86. > >Support is also added for l

[PATCH 2/4] xilinx_spi: Switch to iomem functions and support little endian.

2009-11-11 Thread Richard Röjfors
This patch changes the out_(be)(8|16|32) and in_(be)(8|16|32) calls to iowrite(8|16|32) and ioread(8|16|32). This to be able to build on platforms not supporting the in/out calls for instance x86. Support is also added for little endian writes. In some systems the registers should be accessed l