From: Stelian Pop Date: Tue, 06 May 2008 21:59:11 +0200 Subject: [U-Boot-Users] [PATCH 02/21] AT91CAP9ADK: Normalize SPI timings In-Reply-To: References: Message-ID: <1210103951.25356.42.camel@galileo> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le mardi 06 mai 2008 ? 14:23 -0500, Ken.Fuchs at bench.com a ?crit : > Stelian Pop's patch: > > > diff --git a/include/configs/at91cap9adk.h > > > -#define AT91_SPI_CLK 20000000 > > -#define DATAFLASH_TCSS (0xFA << 16) > > -#define DATAFLASH_TCHS (0x8 << 24) > > +#define AT91_SPI_CLK 15000000 > > +#define DATAFLASH_TCSS (0x1a << 16) > > +#define DATAFLASH_TCHS (0x1 << 24) > > What do you mean by "Normalize SPI timings"? > > Why are you replacing 20000000 Hz with 15000000 Hz? > Faster would be better as long as the SPI bus > operates reliably, right? I used here what the kernel people use. I tend to be more confident in the values used in the kernel (where the code is used by many) than in some random speed picked up from Atmel's example files. As for TCSS/TCHS, the values comes from Atmel's bootstrap project. -- Stelian Pop