]> git.sur5r.net Git - u-boot/blobdiff - board/aries/ma5d4evk/ma5d4evk.c
Merge git://git.denx.de/u-boot-imx
[u-boot] / board / aries / ma5d4evk / ma5d4evk.c
index b9294fc881bec328e6fd2ecacbc40ef9001bdf85..9f8b8dc1543fcf7a4a8617cf72dd0f9715230f7a 100644 (file)
@@ -30,7 +30,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static u8 boot_mode_sf;
 
-#ifdef CONFIG_ATMEL_SPI
+/* FIXME gpio code here need to handle through DM_GPIO */
+#ifndef CONFIG_DM_SPI
 int spi_cs_is_valid(unsigned int bus, unsigned int cs)
 {
        return bus == 0 && cs == 0;
@@ -57,7 +58,7 @@ static void ma5d4evk_spi0_hw_init(void)
        /* Enable clock */
        at91_periph_clk_enable(ATMEL_ID_SPI0);
 }
-#endif /* CONFIG_ATMEL_SPI */
+#endif /* CONFIG_DM_SPI */
 
 #ifdef CONFIG_CMD_USB
 static void ma5d4evk_usb_hw_init(void)
@@ -292,7 +293,7 @@ int board_init(void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
 
-#ifdef CONFIG_ATMEL_SPI
+#ifndef CONFIG_DM_SPI
        ma5d4evk_spi0_hw_init();
 #endif
 #ifdef CONFIG_GENERIC_ATMEL_MCI
@@ -325,7 +326,7 @@ int board_init(void)
 
 int board_late_init(void)
 {
-       setenv("bootmode", boot_mode_sf ? "sf" : "emmc");
+       env_set("bootmode", boot_mode_sf ? "sf" : "emmc");
        return 0;
 }
 
@@ -358,7 +359,7 @@ int board_eth_init(bd_t *bis)
 #ifdef CONFIG_SPL_BUILD
 void spl_board_init(void)
 {
-#ifdef CONFIG_ATMEL_SPI
+#ifndef CONFIG_DM_SPI
        ma5d4evk_spi0_hw_init();
 #endif
 #ifdef CONFIG_GENERIC_ATMEL_MCI