From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] imx233
Date: Sat, 23 Nov 2013 18:11:35 +0100 [thread overview]
Message-ID: <201311231811.35710.marex@denx.de> (raw)
In-Reply-To: <CAP8r_=BZWOOadLvY4yLp9UJaWTJhKR-x+z9A4yj-LxQde-18NA@mail.gmail.com>
Dear Bojan Bui?,
> Hello,
>
> I found Your email address in UBoot code(checkout from git).
>
> I would like enable watchdog on imx233 procesor in uboot.
>
> I try like this :
>
> struct mxs_rtc_regs *rtc_regs =
> (struct mxs_rtc_regs *)MXS_RTC_BASE;
> writel(RTC_CTRL_WATCHDOGEN, &rtc_regs->hw_rtc_ctrl_set);
> while (readl(&rtc_regs->hw_rtc_ctrl) & RTC_CTRL_WATCHDOGEN);
>
> but not work. Can You help me ?
CCing the list.
What problem do you observe exactly? "but not work" is not exactly a description
of the symptoms.
Anyway ...
You need to implement proper driver for the WDT, see
drivers/watchdog/imx_watchdog.c . There is a README, see doc/README.watchdog .
You need to implement hw_watchdog_init() and hw_watchdog_reset() , in the
former, you'd start the WDT by programming the HW_RTC_CTRL and HW_RTC_WATCHDOG
registers, in the latter you'd need to update the HW_RTC_WATCHDOG register so
your board won't keep restarting when the counter runs out.
If you implement the WDT, please submit a patch to the U-Boot ML, thanks.
Best regards,
Marek Vasut
parent reply other threads:[~2013-11-23 17:11 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAP8r_=BZWOOadLvY4yLp9UJaWTJhKR-x+z9A4yj-LxQde-18NA@mail.gmail.com>]
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=201311231811.35710.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox