Re: [U-Boot] [PATCH v3] nios2 : convert altera_pio to driver model

2015-09-30 Thread Thomas Chou
Hi Simon, On 10/01/2015 02:29 AM, Simon Glass wrote: Do we need the ioremap() or can we rely on the 'ranges' handling? Yes, we do need ioremap() at least for mips, nios2 and alike. For these archs, the virtual address that CPU sees is not the same as physical address on bus. The virtual addr

Re: [U-Boot] [PATCH v3] nios2 : convert altera_pio to driver model

2015-09-30 Thread Simon Glass
On 26 September 2015 at 03:07, Thomas Chou wrote: > Convert altera_pio to driver model. > > Signed-off-by: Thomas Chou > --- > v2 > fix ranges of pio in dts > fix coding style as Marek suggested. > > v3 > change gpio_count device tree binding. > > arch/nios2/dts/3c120_devboard.dts

Re: [U-Boot] [PATCH v3] nios2 : convert altera_pio to driver model

2015-09-29 Thread Chin Liang See
Hi Thomas, On Sat, 2015-09-26 at 17:07 +0800, tho...@wytron.com.tw wrote: > Convert altera_pio to driver model. > > Signed-off-by: Thomas Chou > --- > v2 > fix ranges of pio in dts > fix coding style as Marek suggested. > > v3 > change gpio_count device tree binding. > > arch/nios2/dts/

[U-Boot] [PATCH v3] nios2 : convert altera_pio to driver model

2015-09-26 Thread Thomas Chou
Convert altera_pio to driver model. Signed-off-by: Thomas Chou --- v2 fix ranges of pio in dts fix coding style as Marek suggested. v3 change gpio_count device tree binding. arch/nios2/dts/3c120_devboard.dts | 41 arch/nios2/include/asm/gpio.h | 80 +---