Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2013-01-17 Thread Arnd Bergmann
On Thursday 17 January 2013, Vineet Gupta wrote: > So my strategy for v2 series (based off 3.8-rcx) is to introduce devicetree, > multi-platform-image support (and other key fixes such as syscall restart > issues) > as slap-on patches on top of old code. This is not to avoid any chop-n-dice of > f

Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2013-01-16 Thread Vineet Gupta
On Wednesday 07 November 2012 07:46 PM, Arnd Bergmann wrote: > On Wednesday 07 November 2012, Vineet Gupta wrote: >> +static struct platform_device arc_uart##n##_dev = {\ >> + .name = "arc-uart", \ >> + .id = n,\ >>

Re: early init dt for earlyprintk (was Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART)

2013-01-14 Thread Arnd Bergmann
On Monday 14 January 2013, Vineet Gupta wrote: > > On Wednesday 07 November 2012 07:46 PM, Arnd Bergmann wrote: > > OK, I have DeviceTree infrastructure in place. After wrapping my head around > irq-domains, the whole thing indeed seems like a nice abstraction. ARC Port > converted to it and pat

Re: early init dt for earlyprintk (was Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART)

2013-01-14 Thread Vineet Gupta
On Monday 14 January 2013 03:18 PM, James Hogan wrote: > Hi Vineet > > On 14/01/13 07:35, Vineet Gupta wrote: >> 2. We really need a Documentation/dt-for-new-linux-arches.txt, as the >> existing >> refs - while very helpful - fail to mention subtleties such as you >> absolutely need >> a intc in

Re: early init dt for earlyprintk (was Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART)

2013-01-14 Thread James Hogan
Hi Vineet On 14/01/13 07:35, Vineet Gupta wrote: > 2. We really need a Documentation/dt-for-new-linux-arches.txt, as the existing > refs - while very helpful - fail to mention subtleties such as you absolutely > need > a intc instance and a default irq domain . before the driver can start >

early init dt for earlyprintk (was Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART)

2013-01-13 Thread Vineet Gupta
Hi Arnd, On Wednesday 07 November 2012 07:46 PM, Arnd Bergmann wrote: > On Wednesday 07 November 2012, Vineet Gupta wrote: >> +static struct platform_device arc_uart##n##_dev = {\ >> + .name = "arc-uart", \ >> + .id = n,

Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2013-01-07 Thread Arnd Bergmann
On Monday 07 January 2013 19:34:35 Vineet Gupta wrote: > On Monday 07 January 2013 07:16 PM, Arnd Bergmann wrote: > >> static struct of_dev_auxdata arcuart_auxdata_lookup[] __initdata = { > >>OF_DEV_AUXDATA("snps,arc-uart", UART0_BASE, "arc-uart", arc_uart_info), > >>{} > >> }; > > It shou

Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2013-01-07 Thread Vineet Gupta
On Monday 07 January 2013 07:16 PM, Arnd Bergmann wrote: > On Monday 07 January 2013, Vineet Gupta wrote: >> On Wednesday 07 November 2012 07:46 PM, Arnd Bergmann wrote: >>> On Wednesday 07 November 2012, Vineet Gupta wrote: >> (1) Although I don't need the container "fpga" I'm forced to - because

Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2013-01-07 Thread Arnd Bergmann
On Monday 07 January 2013, Vineet Gupta wrote: > On Wednesday 07 November 2012 07:46 PM, Arnd Bergmann wrote: > > On Wednesday 07 November 2012, Vineet Gupta wrote: > > (1) Although I don't need the container "fpga" I'm forced to - because > of_platform_populate( ) -> of_match_node( ) expects the @

Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2013-01-07 Thread Vineet Gupta
On Wednesday 07 November 2012 07:46 PM, Arnd Bergmann wrote: > On Wednesday 07 November 2012, Vineet Gupta wrote: >> +static struct platform_device arc_uart##n##_dev = {\ >> + .name = "arc-uart", \ >> + .id = n,\ >>

Re: [RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2012-11-07 Thread Arnd Bergmann
On Wednesday 07 November 2012, Vineet Gupta wrote: > +static struct platform_device arc_uart##n##_dev = {\ > + .name = "arc-uart", \ > + .id = n,\ > + .num_resources = ARRAY_SIZE(arc_uart##n##_res), \ > +

[RFC PATCH v1 25/31] ARC: [plat-arcfpga] Hooking up platform to ARC UART

2012-11-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/irq.h |1 + arch/arc/plat-arcfpga/include/plat/irq.h| 27 +++ arch/arc/plat-arcfpga/include/plat/memmap.h | 31 arch/arc/plat-arcfpga/platform.c| 105 +++ 4 files ch