#ifdef CONFIG_ENV_IS_IN_MMC
__weak int board_mmc_get_env_dev(int devno)
{
- return CONFIG_SYS_MMC_ENV_DEV;
+ return devno;
}
int mmc_get_env_dev(void)
__weak int board_mmc_get_env_dev(int devno)
{
- return CONFIG_SYS_MMC_ENV_DEV;
+ return devno;
}
int mmc_get_env_dev(void)
#ifdef CONFIG_ENV_IS_IN_MMC
__weak int board_mmc_get_env_dev(int devno)
{
- return CONFIG_SYS_MMC_ENV_DEV;
+ return devno;
}
static int mmc_get_boot_dev(void)
#ifdef CONFIG_ENV_IS_IN_MMC
__weak int board_mmc_get_env_dev(int devno)
{
- return CONFIG_SYS_MMC_ENV_DEV;
+ return devno;
}
int mmc_get_env_dev(void)
return 0;
}
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
-
#ifdef CONFIG_VIDEO_MXS
#define ADV7535_MAIN 0x3d
int board_late_init(void)
{
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
return 0;
}
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
-
int board_late_init(void)
{
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
return 0;
}
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_rev", "iMX8MQ");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
return 0;
}
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_rev", "iMX8MQ");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
}
#endif
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("sec_boot", "yes");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
}
#endif
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
int board_late_init(void)
{
char *fdt_file;
env_set("fdt_file", "fsl-imx8qm-mek.dtb");
}
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
return 0;
}
}
#endif
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
int board_late_init(void)
{
env_set("sec_boot", "yes");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
}
#endif
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
int board_late_init(void)
{
char *fdt_file;
env_set("fdt_file", "fsl-imx8qxp-mek.dtb");
}
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
env_set("board_rev", "MX6DL");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
env_set("board_rev", "MX6DL");
#endif
+#ifdef CONFIG_ENV_IS_IN_MMC
+ board_late_mmc_env_init();
+#endif
+
return 0;
}
udelay(15000);
}
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
#ifdef CONFIG_SYS_I2C
#define PC MUX_PAD_CTRL(I2C_PAD_CTRL)
/* I2C1 for PMIC */
puts("Board: MX6SLL EVK\n");
return 0;
-}
-
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
-int mmc_map_to_kernel_blk(int devno)
-{
- return devno;
-}
+}
\ No newline at end of file
return 0;
}
-int board_mmc_get_env_dev(int devno)
-{
- /*
- * need subtract 2 to map to the mmc device id
- * see the comments in board_mmc_init function
- */
- return devno - 2;
-}
-
-int mmc_map_to_kernel_blk(int devno)
-{
- return devno + 2;
-}
-
#ifdef CONFIG_VIDEO_MXS
static iomux_v3_cfg_t const lvds_ctrl_pads[] = {
/* Use GPIO for Brightness adjustment, duty cycle = period */
#define USDHC3_PWR_GPIO IMX_GPIO_NR(2, 11)
#define USDHC4_CD_GPIO IMX_GPIO_NR(6, 21)
-int board_mmc_get_env_dev(int devno)
-{
- return devno - 1;
-}
-
-int mmc_map_to_kernel_blk(int dev_no)
-{
- return dev_no + 1;
-}
-
int board_mmc_getcd(struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
#define USDHC2_CD_GPIO IMX_GPIO_NR(4, 5)
#define USDHC2_PWR_GPIO IMX_GPIO_NR(4, 10)
-int board_mmc_get_env_dev(int devno)
-{
- if (devno == 1 && mx6_esdhc_fused(USDHC1_BASE_ADDR))
- devno = 0;
-
- return devno;
-}
-
-int mmc_map_to_kernel_blk(int devno)
-{
- if (devno == 0 && mx6_esdhc_fused(USDHC1_BASE_ADDR))
- devno = 1;
-
- return devno;
-}
-
int board_mmc_getcd(struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
}
#endif
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
-int mmc_map_to_kernel_blk(int devno)
-{
- return devno;
-}
-
#ifdef CONFIG_VIDEO_MXS
static iomux_v3_cfg_t const lcd_pads[] = {
MX6_PAD_LCD_CLK__LCDIF_CLK | MUX_PAD_CTRL(LCD_PAD_CTRL),
imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));
}
-int board_mmc_get_env_dev(int devno)
-{
- if (devno == 2)
- devno--;
-
- return devno;
-}
-
-int mmc_map_to_kernel_blk(int dev_no)
-{
- if (dev_no == 1)
- dev_no++;
-
- return dev_no;
-}
-
#ifdef CONFIG_FEC_MXC
static int setup_fec(int fec_id)
{
return 0;
}
-int board_mmc_get_env_dev(int devno)
-{
- return devno;
-}
-
int board_late_init(void)
{
env_set("tee", "no");