From: Ian Campbell <ijc@hellion.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] ARM: sunxi: Add sun6i/sun8i timer block register definition
Date: Sat, 11 Oct 2014 16:31:24 +0100 [thread overview]
Message-ID: <1413041484.11505.24.camel@hellion.org.uk> (raw)
In-Reply-To: <1412426248-20050-3-git-send-email-wens@csie.org>
On Sat, 2014-10-04 at 20:37 +0800, Chen-Yu Tsai wrote:
> The RTC hardware has been moved out of the timer block on sun6i/sun8i.
> In addition, there are more watchdogs available.
>
> Also note that the timer block definition is not completely accurate
> for sun5i/sun7i. Various blocks are missing or have been moved out.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
> ---
> arch/arm/include/asm/arch-sunxi/timer.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-sunxi/timer.h b/arch/arm/include/asm/arch-sunxi/timer.h
> index 8ed383e..03a0684 100644
> --- a/arch/arm/include/asm/arch-sunxi/timer.h
> +++ b/arch/arm/include/asm/arch-sunxi/timer.h
> @@ -67,7 +67,9 @@ struct sunxi_timer_reg {
> struct sunxi_timer timer[6]; /* We have 6 timers */
> u8 res2[16];
> struct sunxi_avs avs;
> +#if defined(CONFIG_SUN4I) || defined(CONFIG_SUN5I) || defined(CONFIG_SUN7I)
> struct sunxi_wdog wdog; /* 0x90 */
> + /* XXX the following is not accurate for sun5i/sun7i */
> struct sunxi_64cnt cnt64; /* 0xa0 */
> u8 res4[0x58];
> struct sunxi_rtc rtc;
> @@ -75,6 +77,10 @@ struct sunxi_timer_reg {
> struct sunxi_tgp tgp[4];
> u8 res5[8];
> u32 cpu_cfg;
> +#else /* CONFIG_SUN6I || CONFIG_SUN8I || ... */
> + u8 res3[16];
> + struct sunxi_wdog wdog[5]; /* We have 5 watchdogs */
> +#endif
> };
>
> #endif /* __ASSEMBLY__ */
next prev parent reply other threads:[~2014-10-11 15:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-04 12:37 [U-Boot] [PATCH 0/3] ARM: sunxi: Fix reset support on sun6i/sun8i Chen-Yu Tsai
2014-10-04 12:37 ` [U-Boot] [PATCH 1/3] ARM: sunxi: Move watchdog register definitions to separate file Chen-Yu Tsai
2014-10-11 15:30 ` Ian Campbell
2014-10-04 12:37 ` [U-Boot] [PATCH 2/3] ARM: sunxi: Add sun6i/sun8i timer block register definition Chen-Yu Tsai
2014-10-11 15:31 ` Ian Campbell [this message]
2014-10-04 12:37 ` [U-Boot] [PATCH 3/3] ARM: sunxi: Fix reset command on sun6i/sun8i Chen-Yu Tsai
2014-10-11 15:33 ` Ian Campbell
2014-10-12 2:40 ` Chen-Yu Tsai
2014-10-21 18:51 ` Ian Campbell
2014-10-04 15:02 ` [U-Boot] [linux-sunxi] [PATCH 0/3] ARM: sunxi: Fix reset support " Julian Calaby
2014-10-04 15:12 ` Chen-Yu Tsai
2014-10-05 1:14 ` Julian Calaby
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=1413041484.11505.24.camel@hellion.org.uk \
--to=ijc@hellion.org.uk \
--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