diff mbox

[U-Boot,v4,5/7] arm: atmel: sama5d3: early enable PIO peripherals

Message ID 1384485158-24027-6-git-send-email-voice.shen@atmel.com
State Accepted, archived
Delegated to: Andreas Bießmann
Headers show

Commit Message

Bo Shen Nov. 15, 2013, 3:12 a.m. UTC
Enable the PIO peripherals early than other peripherals.

Signed-off-by: Bo Shen <voice.shen@atmel.com>

---
Changes in v4:
  - None
Changes in v3:
  - Correct the clock enable code, the ID can not OR

Changes in v2:
  - None

 board/atmel/sama5d3xek/sama5d3xek.c |    6 ++++++
 1 file changed, 6 insertions(+)

Comments

Andreas Bießmann Dec. 1, 2013, 9:48 p.m. UTC | #1
Dear Bo Shen,

Bo Shen <voice.shen@atmel.com> writes:
>Enable the PIO peripherals early than other peripherals.
>
>Signed-off-by: Bo Shen <voice.shen@atmel.com>
>
>---
>Changes in v4:
>  - None
>Changes in v3:
>  - Correct the clock enable code, the ID can not OR
>
>Changes in v2:
>  - None
>
> board/atmel/sama5d3xek/sama5d3xek.c |    6 ++++++
> 1 file changed, 6 insertions(+)

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann
diff mbox

Patch

diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c
index b0965ef..f245f98 100644
--- a/board/atmel/sama5d3xek/sama5d3xek.c
+++ b/board/atmel/sama5d3xek/sama5d3xek.c
@@ -158,6 +158,12 @@  void lcd_show_board_info(void)
 
 int board_early_init_f(void)
 {
+	at91_periph_clk_enable(ATMEL_ID_PIOA);
+	at91_periph_clk_enable(ATMEL_ID_PIOB);
+	at91_periph_clk_enable(ATMEL_ID_PIOC);
+	at91_periph_clk_enable(ATMEL_ID_PIOD);
+	at91_periph_clk_enable(ATMEL_ID_PIOE);
+
 	at91_seriald_hw_init();
 
 	return 0;