]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/atstk1000/atstk1000.c
avr32: Clean up the HMATRIX code
[karo-tx-uboot.git] / board / atmel / atstk1000 / atstk1000.c
index d3580a1bc3193133edbf5d4548e7d63d58481cf8..52fec65c19d18bb4c36cd4de2816b66fd1e0aea8 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/sdram.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/gpio.h>
-#include <asm/arch/hmatrix2.h>
+#include <asm/arch/hmatrix.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -67,8 +67,8 @@ static const struct sdram_info sdram = {
 
 int board_early_init_f(void)
 {
-       /* Set the SDRAM_ENABLE bit in the HEBI SFR */
-       hmatrix2_writel(SFR4, 1 << 1);
+       /* Enable SDRAM in the EBI mux */
+       hmatrix_slave_write(EBI, SFR, HMATRIX_BIT(EBI_SDRAM_ENABLE));
 
        gpio_enable_ebi();
        gpio_enable_usart1();