Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-16 Thread Arnd Bergmann
On Thursday 16 May 2013 15:37:16 Jonas Jensen wrote: > On 15 May 2013 15:16, Arnd Bergmann wrote: > > The part that I don't understand at all is the "timer0" part. Is that a > > string > > from the data sheet? > > I have next to no data sheets or documentation on the SoC itself. What > I know is

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-16 Thread Jonas Jensen
On 16 May 2013 00:54, Arnd Bergmann wrote: > Ah, I see. I also read the mach-gemini version of the idle code, > which is apparently the same thing as the code that was commented > out here, so that has the wakeup race. The empty moxart_idle is the only way I get a successful boot to init. It stal

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-16 Thread Jonas Jensen
On 15 May 2013 15:16, Arnd Bergmann wrote: > The part that I don't understand at all is the "timer0" part. Is that a string > from the data sheet? I have next to no data sheets or documentation on the SoC itself. What I know is from looking at old sources, which suggest there are more than one ti

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-16 Thread Arnd Bergmann
On Thursday 16 May 2013, Russell King - ARM Linux wrote: > Well, if its a CPU core thing, then it's even easier - the proc-*.S > file can handle it just fine (because that's where the WFI code is.) > Just delete the contents of the processor specific idle function, IOW: > > /* > * cpu_fa526_do_id

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-16 Thread Russell King - ARM Linux
On Thu, May 16, 2013 at 12:54:20AM +0200, Arnd Bergmann wrote: > Ah, I see. I also read the mach-gemini version of the idle code, > which is apparently the same thing as the code that was commented > out here, so that has the wakeup race. > > Since it seems that WFI is broken on all fa526 cores, o

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-15 Thread Arnd Bergmann
On Wednesday 15 May 2013, Russell King - ARM Linux wrote: > Actually, that's probably the whole point of this - to do nothing. > This changes the behaviour of the idle loop from using the WFI to > just spinning instead with no wait-for-interrupt or anything else. > We just keep reading the need_res

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-15 Thread Russell King - ARM Linux
On Wed, May 15, 2013 at 03:16:52PM +0200, Arnd Bergmann wrote: > > +static void moxart_idle(void) > > +{ > > + /* > > +* Because of broken hardware we have to enable interrupts or the CPU > > +* will never wakeup... Acctualy it is not very good to enable > > +* interrupts first since

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-15 Thread Arnd Bergmann
On Wednesday 15 May 2013, Jonas Jensen wrote: > diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug > index 29f7623..d534fce 100644 > --- a/arch/arm/Kconfig.debug > +++ b/arch/arm/Kconfig.debug > @@ -429,6 +429,15 @@ choice > Say Y here if you want kernel low-level debuggin

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-05-15 Thread Jonas Jensen
Hi, .. it's been a while .. This is now rebased for 3.10 and DT thanks to help from #armlinux on Freenode. It should tick the boxes in the list from Arnd. I'm only posting changes in arch/arm/* and will continue submitting drivers separately as requested, this applies to next-20130515. The full

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-03-18 Thread Arnd Bergmann
On Sunday 17 March 2013, Jonas Jensen wrote: > Thank you for the feedback. > > Some of the changes are sure to be a challenge for me, but I want to > move this forward, and having a list helps. > > 3.2.40 is as far as it'll go right now, nothing prints to UART > starting with 3.3.8 (last tested,

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-03-17 Thread Jonas Jensen
Thank you for the feedback. Some of the changes are sure to be a challenge for me, but I want to move this forward, and having a list helps. 3.2.40 is as far as it'll go right now, nothing prints to UART starting with 3.3.8 (last tested, it's somewhere around there). I have been advised to enabl

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-03-15 Thread Arnd Bergmann
On Wednesday 13 March 2013, Daniel Mack wrote: > On 13.03.2013 16:37, Jonas Jensen wrote: > > I ask for feedback and to submit (if possible) a new ARM SoC platform > > port. This is now near complete (I think) (tested on UC-7112-LX Plus) > > and applies to 2.6.34.14. > > First of all - thanks for

Re: [PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-03-13 Thread Daniel Mack
Hi Jonas, On 13.03.2013 16:37, Jonas Jensen wrote: > I ask for feedback and to submit (if possible) a new ARM SoC platform > port. This is now near complete (I think) (tested on UC-7112-LX Plus) > and applies to 2.6.34.14. First of all - thanks for submitting to the upstream kernel! However, you

[PATCH] ARM: mach-moxart: platform port for MOXA ART SoC

2013-03-13 Thread Jonas Jensen
Hi, I ask for feedback and to submit (if possible) a new ARM SoC platform port. This is now near complete (I think) (tested on UC-7112-LX Plus) and applies to 2.6.34.14. The patch contains the following drivers and platform specific implementations: * ARCH_MOXART (FA526 processor) * 100Hz interr