summaryrefslogtreecommitdiff
path: root/board/engicam/isiotmx6ul
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2017-05-06 21:13:14 (GMT)
committerStefano Babic <sbabic@denx.de>2017-05-18 09:23:31 (GMT)
commitac880e774260f5e1988d173d5bf75ea10ee04aeb (patch)
treeb99768e2d38e954e7d7d7ab658bd0c5f7a3bffa7 /board/engicam/isiotmx6ul
parenta81b0fd667e97742ca5a1e3a62213f142645897f (diff)
downloadu-boot-fsl-qoriq-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/isiotmx6ul')
-rw-r--r--board/engicam/isiotmx6ul/isiotmx6ul.c38
1 files changed, 3 insertions, 35 deletions
diff --git a/board/engicam/isiotmx6ul/isiotmx6ul.c b/board/engicam/isiotmx6ul/isiotmx6ul.c
index fa36519..6607b04 100644
--- a/board/engicam/isiotmx6ul/isiotmx6ul.c
+++ b/board/engicam/isiotmx6ul/isiotmx6ul.c
@@ -20,6 +20,8 @@
#include <asm/arch/sys_proto.h>
#include <asm/imx-common/iomux-v3.h>
+#include "../common/board.h"
+
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_NAND_MXS
@@ -47,7 +49,7 @@ static iomux_v3_cfg_t const nand_pads[] = {
IOMUX_PADS(PAD_NAND_READY_B__RAWNAND_READY_B | MUX_PAD_CTRL(GPMI_PAD_CTRL2)),
};
-static void setup_gpmi_nand(void)
+void setup_gpmi_nand(void)
{
struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
@@ -94,22 +96,6 @@ int board_mmc_get_env_dev(int devno)
/* dev 0 for SD/eSD, dev 1 for MMC/eMMC */
return (devno == 0) ? 0 : 1;
}
-
-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)
@@ -144,24 +130,6 @@ int board_late_init(void)
return 0;
}
-int board_init(void)
-{
- /* Address of boot parameters */
- gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
-
-#ifdef CONFIG_NAND_MXS
- setup_gpmi_nand();
-#endif
- return 0;
-}
-
-int dram_init(void)
-{
- gd->ram_size = imx_ddr_size();
-
- return 0;
-}
-
#ifdef CONFIG_SPL_BUILD
#include <spl.h>