[U-Boot] [PATCH v2 4/7] arm: atmel: sama5d3: early enable PIO peripherals

Bo Shen voice.shen at atmel.com
Tue Nov 5 10:09:54 CET 2013


Hi Andreas,

On 11/1/2013 15:56, Bo Shen wrote:
> Enable the PIO peripherals early than other peripherals.
>
> Signed-off-by: Bo Shen <voice.shen at atmel.com>
>
> ---
> Changes in v2:
>    - None
>
>   board/atmel/sama5d3xek/sama5d3xek.c |    3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c
> index b0965ef..7fa3ae7 100644
> --- a/board/atmel/sama5d3xek/sama5d3xek.c
> +++ b/board/atmel/sama5d3xek/sama5d3xek.c
> @@ -158,6 +158,9 @@ void lcd_show_board_info(void)
>
>   int board_early_init_f(void)
>   {
> +	at91_periph_clk_enable(ATMEL_ID_PIOA | ATMEL_ID_PIOB | ATMEL_ID_PIOC |
> +			       ATMEL_ID_PIOD | ATMEL_ID_PIOE);

This code is wrong, it should be as following:
--->8---
at91_periph_clk_enable(ATMEL_ID_PIOA);
at91_periph_clk_enable(ATMEL_ID_PIOB);
....
at91_periph_clk_enable(ATMEL_ID_PIOE);
---8<---

>   	at91_seriald_hw_init();
>
>   	return 0;

Best Regards,
Bo Shen



More information about the U-Boot mailing list