From: Marc Kleine-Budde <mkl@pengutronix.de>
To: James Robinson <jmrobinson3@verizon.net>
Cc: barebox@lists.infradead.org
Subject: Re: WATCHDOG question
Date: Wed, 15 Sep 2010 09:23:52 +0200 [thread overview]
Message-ID: <4C907488.7050806@pengutronix.de> (raw)
In-Reply-To: <4C903D22.6040900@verizon.net>
[-- Attachment #1.1: Type: text/plain, Size: 1495 bytes --]
On 09/15/2010 05:27 AM, James Robinson wrote:
> Hello,
> I have created my own port of our i.MX27 board and it is running great.
> One of the final things I need to get working is my external watchdog
> code. I added the code to my board's wamce.c (my boards main "C" file)
> and CONFIG_WATCHDOG=1 in config.h. I see that it is in-fact getting
> called from the device drivers. But.... when I break into the shell, I
> don't see it being called. I found that the simple shell has a watchdog
> kick in the readline function, but has anyone implemented the watchdog
> with the hush shell?
>
> I have gotten the following to work and would like to thank the group
> for making it REALLY easy to get it working...
> 1) NAND flash
> 2) ethernet.
> 3) i2c - I can see my 2 i2c buses and also talk to my SM buss controller.
> 4) GPIO for fan,leds, and power button.
> 5) HS usb host. (still need to get FS host to work) I can see our hub's
> and touch controller.
I've implemented a generic polling "framework" for barebox. You can
register several functions that should be called.
I'm using it to poll a CAN controller within barebox, but you can add a
(hardware) watchdog, too.
cheers, Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2010-09-15 7:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-15 3:27 WATCHDOG question James Robinson
2010-09-15 7:23 ` Marc Kleine-Budde [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C907488.7050806@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jmrobinson3@verizon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.