]> git.sur5r.net Git - u-boot/commitdiff
atmel: at91sam9x5: fix name error for spi
authorBo Shen <voice.shen@atmel.com>
Sun, 19 Aug 2012 20:32:23 +0000 (20:32 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 15:06:14 +0000 (17:06 +0200)
Fix the name error

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c

index 7558ca27b753850bdfb8630e1f0d68777153d089..6d77219d0daeca8bb75fcd59a363a260a1b86faa 100644 (file)
@@ -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 */