]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/atngw100/atngw100.c
avr32: Clean up the HMATRIX code
[karo-tx-uboot.git] / board / atmel / atngw100 / atngw100.c
index 1ccbe2c181752c08e5cb02d671e6b3a5dad72916..3ff6f0feb204922f8ccff4c02b3c8fb3993c4203 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;
 
@@ -47,8 +47,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();