Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Jan 15, 2015, at 4:21 AM, Boris Brezillon > wrote: > > Hi Jean-Christophe, > > On Wed, 14 Jan 2015 20:14:12 +0100 > Jean-Christophe PLAGNIOL-VILLARD wrote: > >> On 22:23 Mon 12 Jan , Alexandre Belloni wrote: >>> Store SoC differences in a struct to remove cpu_is_* usage. >>> >>>

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Arnd Bergmann
On Wednesday 14 January 2015 22:07:34 Alexandre Belloni wrote: > Hi, > > (Adding Arnd in Cc) > > On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > > >>> - /* AT91RM9200 SDRAM low-power mode cannot be used with > > >>> self-refresh. */ > > >>> - if

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Alexandre Belloni
Hi, (Adding Arnd in Cc) On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : > >>> - /* AT91RM9200 SDRAM low-power mode cannot be used with self-refresh. */ > >>> - if (cpu_is_at91rm9200()) > >>> + at91_pm_data.memctrl = AT91_MEMCTRL_SDRAMC; > >>> + > >>> + if

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Boris Brezillon
Hi Jean-Christophe, On Wed, 14 Jan 2015 20:14:12 +0100 Jean-Christophe PLAGNIOL-VILLARD wrote: > On 22:23 Mon 12 Jan , Alexandre Belloni wrote: > > Store SoC differences in a struct to remove cpu_is_* usage. > > > > Signed-off-by: Alexandre Belloni > > --- > > arch/arm/mach-at91/pm.c |

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:23 Mon 12 Jan , Alexandre Belloni wrote: > Store SoC differences in a struct to remove cpu_is_* usage. > > Signed-off-by: Alexandre Belloni > --- > arch/arm/mach-at91/pm.c | 54 > ++--- > 1 file changed, 33 insertions(+), 21 deletions(-) >

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:23 Mon 12 Jan , Alexandre Belloni wrote: Store SoC differences in a struct to remove cpu_is_* usage. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm.c | 54 ++--- 1 file changed, 33

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Boris Brezillon
Hi Jean-Christophe, On Wed, 14 Jan 2015 20:14:12 +0100 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 22:23 Mon 12 Jan , Alexandre Belloni wrote: Store SoC differences in a struct to remove cpu_is_* usage. Signed-off-by: Alexandre Belloni

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Alexandre Belloni
Hi, (Adding Arnd in Cc) On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : - /* AT91RM9200 SDRAM low-power mode cannot be used with self-refresh. */ - if (cpu_is_at91rm9200()) + at91_pm_data.memctrl = AT91_MEMCTRL_SDRAMC; + + if

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Arnd Bergmann
On Wednesday 14 January 2015 22:07:34 Alexandre Belloni wrote: Hi, (Adding Arnd in Cc) On 15/01/2015 at 04:37:14 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote : - /* AT91RM9200 SDRAM low-power mode cannot be used with self-refresh. */ - if (cpu_is_at91rm9200()) +

Re: [PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 15, 2015, at 4:21 AM, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Jean-Christophe, On Wed, 14 Jan 2015 20:14:12 +0100 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 22:23 Mon 12 Jan , Alexandre Belloni wrote: Store SoC differences in a

[PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-12 Thread Alexandre Belloni
Store SoC differences in a struct to remove cpu_is_* usage. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 54 ++--- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c

[PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-12 Thread Alexandre Belloni
Store SoC differences in a struct to remove cpu_is_* usage. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm.c | 54 ++--- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git