All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Stile <john@stilen.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] support all dataflash for at91sam9g20ek_2mmc
Date: Thu, 14 Feb 2013 10:16:52 -0800	[thread overview]
Message-ID: <1360865812.13529.244.camel@genx> (raw)
In-Reply-To: <1360855205.13529.227.camel@genx>

On Thu, 2013-02-14 at 07:20 -0800, John Stile wrote:
> I am using uboot-2013.01, with at91sam9g20ek_2mmc and I am trying to
> build for dataflash, using at91bootstrap-1.16, and buildroot-2011.11
> 
> Initially I built for nand flash, with a patch to boards.cfg and
> at91sam9260ek.c
> 
> This was fine if I used the reset button, but from a cold boot, startup
> stopped after after at91bootstrap-1.16, and uboot never starts.
> 
> Now I am trying to build uboot for all dataflash, but I still see the
> same behavior with uboot.
> 
> Uboot worked from dataflash when using uboot-1.3.6 (and patches from
> atmel), but much has changed since then, so it is hard to figure out if
> something from those patches is lost in the current uboot.  
> 
> What can I try next.
> 
I have gone over the patch list for uboot-1.3.6, and tracked down where
they are moved to in uboot-2013.01, and nothing is jumping out at me
yet, except these different:

uboot-1.3.6:
#define AT91_SLOW_CLOCK		32768	        /* slow clock */
#define AT91_MAIN_CLOCK		198656000	/* from 18.432 MHz crystal */
#define AT91_MASTER_CLOCK	99328000	/* peripheral = main / 2 */
#define CFG_HZ			1000000		/* 1us resolution */
#define CONFIG_SYS_SPI_WRITE_TOUT           (5*CONFIG_SYS_HZ)

uboot-2013.01:
#define CONFIG_SYS_AT91_SLOW_CLOCK	32768		/* slow clock xtal */
#define CONFIG_SYS_AT91_MAIN_CLOCK	18432000	/* main clock xtal */
#define CONFIG_SYS_HZ			1000
Though include/configs/cpuat91.h
#define AT91C_MASTER_CLOCK         (AT91C_MAIN_CLOCK / 3)
#define CFG_SPI_WRITE_TOUT           (5*CFG_HZ)


Q1: should I change Hz from 1000 to 1000000?
Q2: should I change MAIN_CLOCK from 18432000 to 198656000?
Q3: why is MASTER_CLOCK in old using divisor of 2, where new is using a
divisor of 3?

      reply	other threads:[~2013-02-14 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 15:20 [U-Boot] support all dataflash for at91sam9g20ek_2mmc John Stile
2013-02-14 18:16 ` John Stile [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=1360865812.13529.244.camel@genx \
    --to=john@stilen.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 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.