From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] c6x: Add suport build davinci SOC with c674x CPUs
Date: Fri, 22 Jun 2012 14:57:51 -0700 [thread overview]
Message-ID: <4FE4EA5F.2000902@ti.com> (raw)
In-Reply-To: <1340394370-1550-4-git-send-email-bond@inmys.ru>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/22/2012 12:46 PM, Dmitry Bondar wrote:
> C674x CPUs has same peripherals(uart,emac,nand contoller) like
> sitara processors (am1705/am1707/omapl137/omapl138). In u-boot
> this peripheral known as davinci SOC, and placed in
> arch/arm/cpu/arm926ejs/davinci This patch allow compile davinci
> SOC code whith c674x CPU.
>
> Reset code rewritten in C for compile not only for arm.
Please cc me on all of the v2 as this will go in via u-boot-ti, thanks.
[snip]
> diff --git a/arch/arm/cpu/arm926ejs/davinci/reset_c.c
> b/arch/arm/cpu/arm926ejs/davinci/reset_c.c new file mode 100644
> index 0000000..201eb6d --- /dev/null +++
> b/arch/arm/cpu/arm926ejs/davinci/reset_c.c @@ -0,0 +1,33 @@
> +#include <stdint.h> +#include <asm/arch/hardware.h> + +void
> reset_cpu(unsigned long a) +{ + volatile uint32_t *WDT_TGCR; +
> volatile uint32_t *WDT_TIM12; + volatile uint32_t *WDT_TIM34; +
> volatile uint32_t *WDT_PRD12; + volatile uint32_t *WDT_PRD34; +
> volatile uint32_t *WDT_TCR; + volatile uint32_t *WDT_WDTCR; +
> WDT_TGCR = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x24); +
> WDT_TIM12 = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x10); +
> WDT_TIM34 = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x14); +
> WDT_PRD12 = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x18); +
> WDT_PRD34 = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x1c); +
> WDT_TCR = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x20); +
> WDT_WDTCR = (volatile uint32_t *)(DAVINCI_TIMER1_BASE + 0x28); + +
> *WDT_TGCR = 0x08; + *WDT_TGCR |= 0x3; + *WDT_TIM12 = 0; +
> *WDT_TIM34 = 0; + *WDT_PRD12 = 0; + *WDT_PRD34 = 0; + *WDT_TCR |=
> 0x40; + *WDT_WDTCR |= 0x4000; + *WDT_WDTCR = 0xa5c64000; +
> *WDT_WDTCR = 0xda7e4000; + *WDT_WDTCR = 0x4000; + /*while(1);*/ +}
This should be readl/writel and then if possible, just re-used on
davinci as well (which would need to be tested).
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJP5OpfAAoJENk4IS6UOR1WiykP/jIXgJhE+BUXapXdDX2HI5eW
JbLNBX5HA/QKSZ2tQJeFlAgzKxPLWHrVkFXKLG3ArioDF2BVWrEYoa0HAh8q1OrG
366BSDNglkpEAYvWxioBXpY7YO8eULgyw1OHFUQohTmUZHIhBjZeSPrOuDulgAEt
u12gYAe58U1zj5z4S2Iguru91u1ltOLQfCP3u0If0X7I9eUJrPQLZKTD6wXK8bG/
LVfkkLnQNl+uNUo7yJH0i9OVENiOmOr3fSZXxo6ofSmCsS69O2geVSU2t6FsRaJf
3H1P3ZqpFOSRwEJ9r1vmpKCsf0bjK8/AZJDYP+F1SOq26trk+7843jnXpRRk4rw7
O5AlwDxhR41XRHtBXRqIdSIAUMGMB9vCWzJCAR6tKra4CZecbgxNYasgCENeXjiM
ewKzHVP8okrEHlG6eoV2wKehJ65ox6Tt4Gtjt+u1KimvwkReklrX8QiyNYgKYGgc
GrJ/BnP5CgC+vk2RZF5UZ9inYMpdYgHyr9YTAhsPzRJf403r/dfjQLXEESGjjbIE
vNjQpmAfZk+ZrvwzisAqKdJIWfyBl8tzLINRfFdXT7PY4WOUBTOXDH0ShDzlPSOq
3JhjUOHi2p6q13oqnWeQVhiCUk/1uSs66dfqmNzjRwWlk9q6q02i+HnYWGmmQU/V
LVA0pTJDtN/WmmYWHnE2
=/ozC
-----END PGP SIGNATURE-----
next parent reply other threads:[~2012-06-22 21:57 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <add_c6x_arch>
[not found] ` <1340394370-1550-4-git-send-email-bond@inmys.ru>
2012-06-22 21:57 ` Tom Rini [this message]
2012-06-23 11:11 ` [U-Boot] [PATCH v2 0/4] Add support new arch: c6x Dmitry Bondar
2012-06-23 12:33 ` Wolfgang Denk
2012-06-24 11:40 ` bond at inmys.ru
2012-06-24 13:50 ` Wolfgang Denk
2012-06-23 11:11 ` [U-Boot] [PATCH v2 1/4] " Dmitry Bondar
2012-06-23 11:11 ` [U-Boot] [PATCH v2 2/4] c6x: Add support c674x CPUs Dmitry Bondar
2012-06-23 11:11 ` [U-Boot] [PATCH v2 3/4] c6x: Add suport build davinci SOC with " Dmitry Bondar
2012-06-23 11:11 ` [U-Boot] [PATCH v2 4/4] c6x: Add support c6745-som board Dmitry Bondar
2012-06-25 18:02 ` [U-Boot] [PATCH v3 0/4] Add support new arch: c6x Dmitry Bondar
2012-06-25 22:31 ` Tom Rini
2012-06-28 17:43 ` Dmitry Bondar
2012-06-28 18:02 ` Tom Rini
2012-06-25 18:02 ` [U-Boot] [PATCH v3 1/4] " Dmitry Bondar
2012-06-25 22:04 ` Tom Rini
2012-06-27 20:36 ` bond at inmys.ru
2012-06-27 20:55 ` Tom Rini
2012-06-27 22:16 ` Wolfgang Denk
2012-07-19 3:53 ` Mike Frysinger
2012-06-25 18:02 ` [U-Boot] [PATCH v3 2/4] c6x: Add support c674x CPUs Dmitry Bondar
2012-06-25 22:44 ` Tom Rini
2012-07-19 3:59 ` Mike Frysinger
2012-06-25 18:02 ` [U-Boot] [PATCH v3 3/4] c6x: Add suport build davinci SOC with " Dmitry Bondar
2012-06-25 22:46 ` Tom Rini
2012-06-27 15:27 ` [U-Boot] [PATCH] davinci, c6x: Always use C version of reset code Tom Rini
2012-06-27 15:28 ` Tom Rini
2012-07-19 4:00 ` [U-Boot] [PATCH v3 3/4] c6x: Add suport build davinci SOC with c674x CPUs Mike Frysinger
2012-06-25 18:02 ` [U-Boot] [PATCH v3 4/4] c6x: Add support c6745-som board Dmitry Bondar
2012-06-25 22:42 ` Tom Rini
2012-07-19 4:05 ` Mike Frysinger
2012-08-10 20:53 ` Wolfgang Denk
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=4FE4EA5F.2000902@ti.com \
--to=trini@ti.com \
--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