From: Bo Shen <voice.shen@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Adding dataflash support for at91sam9m10g45ek
Date: Mon, 14 May 2012 13:26:23 +0800 [thread overview]
Message-ID: <4FB0977F.3000404@gmail.com> (raw)
In-Reply-To: <CAOQSsQNahOtOTf6JSMa_DwXGw2mCF_pWrQYwUeAsrUULS=r+aw@mail.gmail.com>
On 5/12/2012 15:38, Thad Phetteplace wrote:
> Hello all,
>
> I am trying to add dataflash support for the at91sam9m10g45ek to a
> recent version of u-boot (2010.06 or later). I have a patched version
> of u-boot-1.3.4 from linux4sam that works, and a glance at more recent
> code seems to show dataflash supported on other at91 boards in
> versions>= 2010.06. Using the linux4sam code and other atmel boards
> as a reference, I've added dataflash support for the at91sam9m10g45ek.
> It almost works, but I'm getting occasional bad reads leading to CRC
> failures and occasionally the SPI bus stops talking completely. After
> reviewing code, spec sheets, etc... I'm at a loss as why this is
> failing. I am mostly riding on top of the existing Atmel SPI
> dataflash support already in u-boot, basically just adding some board
> specific calls to init the SPI interface. Anyone here have any ideas?
> Any known hardware issues I need to be working around? Patches I
> should be looking at?
I don't know the detail method you implemented this.
Would you please try the following patch and test again
diff --git a/include/configs/at91sam9m10g45ek.h
b/include/configs/at91sam9m10g45ek.h
index 159857d..af0611c 100644
--- a/include/configs/at91sam9m10g45ek.h
+++ b/include/configs/at91sam9m10g45ek.h
@@ -125,6 +125,14 @@
/* No NOR flash */
#define CONFIG_SYS_NO_FLASH
+/* Serial flash */
+#define CONFIG_CMD_SF
+#ifdef CONFIG_CMD_SF
+#define CONFIG_ATMEL_SPI
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_ATMEL
+#endif
+
/* NAND flash */
#ifdef CONFIG_CMD_NAND
#define CONFIG_NAND_ATMEL
> Thanks,
>
> Thad Phetteplace
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
prev parent reply other threads:[~2012-05-14 5:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-12 7:38 [U-Boot] Adding dataflash support for at91sam9m10g45ek Thad Phetteplace
2012-05-14 5:26 ` Bo Shen [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=4FB0977F.3000404@gmail.com \
--to=voice.shen@gmail.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.