diff options
author | Bo Shen <voice.shen@atmel.com> | 2015-03-27 14:23:35 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2015-04-01 01:04:31 +0200 |
commit | d85e8914b379eb3c4d66be241fee29da50166aa2 (patch) | |
tree | 6c7e317753152fe4e8c9dbaf8a0e3566124494de /arch/arm/mach-at91/spl_at91.c | |
parent | 41d41a93fb5600b0cbfdbfae88b0d8403bd650b7 (diff) | |
download | u-boot-d85e8914b379eb3c4d66be241fee29da50166aa2.tar.gz u-boot-d85e8914b379eb3c4d66be241fee29da50166aa2.tar.bz2 u-boot-d85e8914b379eb3c4d66be241fee29da50166aa2.zip |
ARM: atmel: at91sam9x5ek: enable spl support
Enable SPL support for at91sam9x5ek board. Now, it supports
boot up from NAND flash and SPI flash.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/spl_at91.c')
-rw-r--r-- | arch/arm/mach-at91/spl_at91.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/arm/mach-at91/spl_at91.c index af6fc0d4c6..e28e568d9d 100644 --- a/arch/arm/mach-at91/spl_at91.c +++ b/arch/arm/mach-at91/spl_at91.c @@ -115,9 +115,14 @@ void board_init_f(ulong dummy) timer_init(); /* enable clocks for all PIOs */ +#ifdef CONFIG_AT91SAM9X5 + at91_periph_clk_enable(ATMEL_ID_PIOAB); + at91_periph_clk_enable(ATMEL_ID_PIOCD); +#else at91_periph_clk_enable(ATMEL_ID_PIOA); at91_periph_clk_enable(ATMEL_ID_PIOB); at91_periph_clk_enable(ATMEL_ID_PIOC); +#endif /* init console */ at91_seriald_hw_init(); preloader_console_init(); |