diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2017-05-07 00:13:14 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-05-18 12:23:31 +0300 |
commit | ac880e774260f5e1988d173d5bf75ea10ee04aeb (patch) | |
tree | b99768e2d38e954e7d7d7ab658bd0c5f7a3bffa7 /board/engicam/icorem6_rqs | |
parent | a81b0fd667e97742ca5a1e3a62213f142645897f (diff) | |
download | u-boot-ac880e774260f5e1988d173d5bf75ea10ee04aeb.tar.xz |
engicam: common: Move common board code
Move possible common board code into common area
from supported boards.
Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'board/engicam/icorem6_rqs')
-rw-r--r-- | board/engicam/icorem6_rqs/icorem6_rqs.c | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c index 854a34ed23..bdd9e0e3c3 100644 --- a/board/engicam/icorem6_rqs/icorem6_rqs.c +++ b/board/engicam/icorem6_rqs/icorem6_rqs.c @@ -20,15 +20,9 @@ #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> |