mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* i.MX23/i.MX28, software reset feature
@ 2012-06-19 10:29 Juergen Beisert
  2012-06-20  7:32 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Beisert @ 2012-06-19 10:29 UTC (permalink / raw)
  To: barebox

Hi list,

currently we use the watchdog to make the "reset" command work on the 
i.XM23/i.MX28 CPUs. This collides if someone wants to use the watchdog in a 
regular manner, as Barebox cannot distinguish if the reset was a result of 
the "reset" command (or "reboot" from Linux) or if something strange happens 
and the watchdog has barked to reboot and try again (maybe in a different 
manner).

The i.XM23/i.MX28 CPUs are coming with a bit in a special register in 
the "clock generation and control" unit to hard reset the whole SoC. This 
could be used instead to make the "reset" command work. But the register 
offsets are different in both SoCs. So:

 - using ifdefs to distinguish both SoCs in "arch/arm/mach-mxs/reset-imx.c"
 - or moving the reset_cpu() function into "arch/arm/mach-mxs/speed-imx*.c"
   where all the required symbols and correct offset are already defined on a
   per SoC base?

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: i.MX23/i.MX28, software reset feature
  2012-06-19 10:29 i.MX23/i.MX28, software reset feature Juergen Beisert
@ 2012-06-20  7:32 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-06-20  7:32 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: barebox

On Tue, Jun 19, 2012 at 12:29:28PM +0200, Juergen Beisert wrote:
> Hi list,
> 
> currently we use the watchdog to make the "reset" command work on the 
> i.XM23/i.MX28 CPUs. This collides if someone wants to use the watchdog in a 
> regular manner, as Barebox cannot distinguish if the reset was a result of 
> the "reset" command (or "reboot" from Linux) or if something strange happens 
> and the watchdog has barked to reboot and try again (maybe in a different 
> manner).
> 
> The i.XM23/i.MX28 CPUs are coming with a bit in a special register in 
> the "clock generation and control" unit to hard reset the whole SoC. This 
> could be used instead to make the "reset" command work. But the register 
> offsets are different in both SoCs. So:
> 
>  - using ifdefs to distinguish both SoCs in "arch/arm/mach-mxs/reset-imx.c"
>  - or moving the reset_cpu() function into "arch/arm/mach-mxs/speed-imx*.c"
>    where all the required symbols and correct offset are already defined on a
>    per SoC base?

Or add a imx23.c and imx28.c where we could collect the SoC specific
code.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-20  7:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19 10:29 i.MX23/i.MX28, software reset feature Juergen Beisert
2012-06-20  7:32 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox