public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 20/21] Support AT91CAP9 revC CPUs
Date: Tue, 06 May 2008 21:33:58 +0200	[thread overview]
Message-ID: <20080506193358.89C49247F5@gemini.denx.de> (raw)
In-Reply-To: Your message of "Tue, 06 May 2008 17:33:42 +0200." <1210088022-25757-21-git-send-email-stelian@popies.net>

In message <1210088022-25757-21-git-send-email-stelian@popies.net> you wrote:
> 
> Signed-off-by: Stelian Pop <stelian@popies.net>
> ---
>  board/atmel/at91cap9adk/at91cap9adk.c    |   28 ++++++++++++++++++++++++++++
>  include/asm-arm/arch-at91sam9/at91_pmc.h |    5 +++++
>  include/asm-arm/arch-at91sam9/at91cap9.h |   14 +++++++++++++-
>  3 files changed, 46 insertions(+), 1 deletions(-)
> 
> diff --git a/board/atmel/at91cap9adk/at91cap9adk.c b/board/atmel/at91cap9adk/at91cap9adk.c
> index ee4f26e..b92dd82 100644
> --- a/board/atmel/at91cap9adk/at91cap9adk.c
> +++ b/board/atmel/at91cap9adk/at91cap9adk.c
> @@ -72,6 +72,33 @@ static void at91cap9_serial_hw_init(void)
>  #endif
>  }
>  
> +static void at91cap9_slowclock_hw_init(void)
> +{
> +	/*
> +	 * On AT91CAP9 revC CPUs, the slow clock can be based on an
> +	 * internal impreciseRC oscillator or an external 32kHz oscillator.
> +	 * Switch to the latter.
> +	 */
> +#define ARCH_ID_AT91CAP9_REVB	0x399
> +#define ARCH_ID_AT91CAP9_REVC	0x601
> +	if (at91_sys_read(AT91_PMC_VER) == ARCH_ID_AT91CAP9_REVC) {
> +		unsigned i, tmp = at91_sys_read(AT91_SCKCR);
> +		if ((tmp & AT91CAP9_SCKCR_OSCSEL) == AT91CAP9_SCKCR_OSCSEL_RC) {

Please don't add #defines in the middle of a source file. Either right
at the beginning, or in a header file.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Politics:  A  strife  of  interests  masquerading  as  a  contest  of
principles. The conduct of public affairs for private advantage.
- Ambrose Bierce

  parent reply	other threads:[~2008-05-06 19:33 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06 15:33 [U-Boot-Users] [PATCH ARM/AT91 0/20] AT91SAM/CAP patches for U-Boot 1.3.4 Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 01/21] AT91CAP9ADK: Handle 8 or 16 bit NAND Stelian Pop
2008-05-08 14:08   ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 02/21] AT91CAP9ADK: Normalize SPI timings Stelian Pop
2008-05-06 19:23   ` Ken.Fuchs at bench.com
2008-05-06 19:59     ` Stelian Pop
2008-05-08 14:11   ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 03/21] AT91CAP9ADK: Normalize BOOTARGS Stelian Pop
2008-05-06 19:21   ` Wolfgang Denk
2008-05-06 19:53     ` Stelian Pop
2008-05-08 14:13       ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 04/21] AT91CAP9ADK: Fix dataflash offsets in BOOTCMD Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 05/21] AT91SAM9260EK: Handle 8 or 16 bit NAND Stelian Pop
2008-05-08 14:09   ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 06/21] AT91SAM9260EK: Normalize SPI timings Stelian Pop
2008-05-08 14:09   ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 07/21] AT91SAM9260EK: Normalize BOOTARGS Stelian Pop
2008-05-08 14:09   ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 08/21] AT91SAM9260EK: Fix dataflash offsets in BOOTCMD Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 09/21] AT91SAM9261EK support Stelian Pop
2008-05-06 19:33   ` Wolfgang Denk
2008-05-06 20:18     ` Stelian Pop
2008-05-06 21:14       ` Wolfgang Denk
2008-05-06 21:24         ` Stelian Pop
2008-05-07  8:25           ` Remy Bohmer
2008-05-07  8:32             ` Stelian Pop
2008-05-07  9:11             ` Ulf Samuelsson
2008-05-09 20:54               ` Wolfgang Denk
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 10/21] AT91SAM9263EK support Stelian Pop
2008-05-06 19:41   ` Wolfgang Denk
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 11/21] AT91SAM9RLEK support Stelian Pop
2008-05-06 19:26   ` Wolfgang Denk
2008-05-06 20:04     ` Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 12/21] Make nand_init() return the detected NAND size Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 13/21] Remeber the RAM and NAND detected sizes for later display Stelian Pop
2008-05-06 19:28   ` Wolfgang Denk
2008-05-06 20:10     ` [U-Boot-Users] [PATCH 13/21] Remeber the 0013-Remeber-the-RAM-and-NAND-detected-sizes-for-later-di.patch Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 14/21] Add ATMEL LCD driver Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 15/21] AT91CAP9ADK: hook up the " Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 16/21] AT91SAM9261EK: " Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 17/21] AT91SAM9263EK: " Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 18/21] AT91SAM9RLEK: " Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 19/21] Use custom logo for Atmel boards Stelian Pop
2008-05-06 15:33 ` [U-Boot-Users] [PATCH 20/21] Support AT91CAP9 revC CPUs Stelian Pop
2008-05-06 15:35   ` [U-Boot-Users] [PATCH 21/21] Stelian Pop
2008-05-06 19:33   ` Wolfgang Denk [this message]
2008-05-06 19:34   ` [U-Boot-Users] [PATCH 20/21] Support AT91CAP9 revC CPUs 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=20080506193358.89C49247F5@gemini.denx.de \
    --to=wd@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