[U-Boot] [PATCH 2/3] arm : at91sam9x5 : enable serial flash boot
Andreas Bießmann
andreas.devel at googlemail.com
Thu Aug 16 09:36:23 CEST 2012
Dear Bo Shen,
On 16.08.2012 06:44, Bo Shen wrote:
> enable at91sam9x5 boot from serial flash
>
> Use at91sam9x5_dataflash to configure the u-boot
>
> Signed-off-by: Bo Shen <voice.shen at atmel.com>
> ---
> arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c | 4 ++--
> boards.cfg | 1 +
> include/configs/at91sam9x5ek.h | 18 ++++++++++++++----
> 3 files changed, 17 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c
> index 7558ca2..6d77219 100644
> --- a/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c
> +++ b/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c
> @@ -121,7 +121,7 @@ void at91_serial2_hw_init(void)
> #ifdef CONFIG_ATMEL_SPI
> void at91_spi0_hw_init(unsigned long cs_mask)
> {
> - at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_PMC_BASE;
> + at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC;
>
> at91_set_a_periph(AT91_PIO_PORTA, 11, 0); /* SPI0_MISO */
> at91_set_a_periph(AT91_PIO_PORTA, 12, 0); /* SPI0_MOSI */
> @@ -150,7 +150,7 @@ void at91_spi0_hw_init(unsigned long cs_mask)
>
> void at91_spi1_hw_init(unsigned long cs_mask)
> {
> - at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_PMC_BASE;
> + at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC;
>
> at91_set_b_periph(AT91_PIO_PORTA, 21, 0); /* SPI1_MISO */
> at91_set_b_periph(AT91_PIO_PORTA, 22, 0); /* SPI1_MOSI */
I would like to see these two fixes in a separate patch 'fix spi access'
or something else.
rest of this patch looks sane to me.
Best regards
Andreas Bießmann
More information about the U-Boot
mailing list