diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-21 21:07:59 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-22 13:22:06 +0100 |
commit | 7ebafb7ec1a0285af8380623c009576f92583b98 (patch) | |
tree | 9b528c7f1987245db991bb540473bd6f43fb2680 /board/atmel/at91sam9rlek | |
parent | 1332a2a0694c8e10a5bade397cf83645b2c3fd7e (diff) | |
download | u-boot-imx-7ebafb7ec1a0285af8380623c009576f92583b98.zip u-boot-imx-7ebafb7ec1a0285af8380623c009576f92583b98.tar.gz u-boot-imx-7ebafb7ec1a0285af8380623c009576f92583b98.tar.bz2 |
at91sam9/at91cap: move common spi initialisation to cpu
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board/atmel/at91sam9rlek')
-rw-r--r-- | board/atmel/at91sam9rlek/at91sam9rlek.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/board/atmel/at91sam9rlek/at91sam9rlek.c b/board/atmel/at91sam9rlek/at91sam9rlek.c index 26395a2..ce10cdf 100644 --- a/board/atmel/at91sam9rlek/at91sam9rlek.c +++ b/board/atmel/at91sam9rlek/at91sam9rlek.c @@ -86,20 +86,6 @@ static void at91sam9rlek_nand_hw_init(void) } #endif -#ifdef CONFIG_HAS_DATAFLASH -static void at91sam9rlek_spi_hw_init(void) -{ - at91_set_A_periph(AT91_PIN_PA28, 0); /* SPI0_NPCS0 */ - - at91_set_A_periph(AT91_PIN_PA25, 0); /* SPI0_MISO */ - at91_set_A_periph(AT91_PIN_PA26, 0); /* SPI0_MOSI */ - at91_set_A_periph(AT91_PIN_PA27, 0); /* SPI0_SPCK */ - - /* Enable clock */ - at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9RL_ID_SPI); -} -#endif - #ifdef CONFIG_LCD vidinfo_t panel_info = { vl_col: 240, @@ -202,7 +188,7 @@ int board_init(void) at91sam9rlek_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH - at91sam9rlek_spi_hw_init(); + at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_LCD at91sam9rlek_lcd_hw_init(); |