lkml.org 
[lkml]   [2015]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 4/9] power: reset: Add AT91RM9200 reset driver
On 04/03/2015 at 18:17:58 +0100, Sebastian Reichel wrote :
> Hi,
>
> On Wed, Mar 04, 2015 at 03:21:32PM +0100, Alexandre Belloni wrote:
> > AT91RM9200 uses the watchdog from the system timer to reset.
> > [...]
> > + regmap_write(regmap_st, AT91_ST_WDMR,
> > + AT91_ST_RSTEN | AT91_ST_EXTEN | 1);
> > + regmap_write(regmap_st, AT91_ST_CR, AT91_ST_WDRST);
> > +
> > + mdelay(2000);
>
> At pity that you have to write into two registers, otherwise you
> could have used the syscon-reboot driver.
>

Exactly what I was thinking :)

> > [...]
> > +module_platform_driver(at91rm9200_reset_driver);
>
> Apart from missing module metadata (MODULE_AUTHOR(),
> MODULE_LICENSE(), ...) the driver looks fine to me.
>

I'll add those.

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


\
 
 \ /
  Last update: 2015-03-05 16:21    [W:0.074 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site