]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/engicam/icorem6_rqs/icorem6_rqs.c
engicam: common: Move common board code
[people/ms/u-boot.git] / board / engicam / icorem6_rqs / icorem6_rqs.c
index 854a34ed235b29554644e0b06c69be87d9e9bbc8..bdd9e0e3c38126d698207ea1f437b0d183aed640 100644 (file)
 #include <asm/arch/sys_proto.h>
 #include <asm/imx-common/iomux-v3.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
-int board_init(void)
-{
-       /* Address of boot parameters */
-       gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
+#include "../common/board.h"
 
-       return 0;
-}
+DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_ENV_IS_IN_MMC
 int board_mmc_get_env_dev(int devno)
@@ -36,22 +30,6 @@ int board_mmc_get_env_dev(int devno)
        /* dev 0 for SD/eSD, dev 1 for MMC/eMMC */
        return (devno == 3) ? 1 : 0;
 }
-
-static void mmc_late_init(void)
-{
-       char cmd[32];
-       char mmcblk[32];
-       u32 dev_no = mmc_get_env_dev();
-
-       setenv_ulong("mmcdev", dev_no);
-
-       /* Set mmcblk env */
-       sprintf(mmcblk, "/dev/mmcblk%dp2 rootwait rw", dev_no);
-       setenv("mmcroot", mmcblk);
-
-       sprintf(cmd, "mmc dev %d", dev_no);
-       run_command(cmd, 0);
-}
 #endif
 
 int board_late_init(void)
@@ -80,13 +58,6 @@ int board_late_init(void)
        return 0;
 }
 
-int dram_init(void)
-{
-       gd->ram_size = imx_ddr_size();
-
-       return 0;
-}
-
 #ifdef CONFIG_SPL_BUILD
 #include <spl.h>