Skip to content
Snippets Groups Projects
Commit 505e899c authored by Adrian Alonso's avatar Adrian Alonso
Browse files

MLK-13131: mx6qarm2: add fastboot and recovery support


Add fastboot and recovery mode support for mx6qarm

Signed-off-by: default avatarAdrian Alonso <adrian.alonso@nxp.com>
parent 6356f2b4
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#include <asm/errno.h>
#include <asm/gpio.h>
#include <asm/imx-common/iomux-v3.h>
#include <asm/imx-common/boot_mode.h>
#include <mmc.h>
#include <fsl_esdhc.h>
#include <miiphy.h>
......@@ -19,6 +20,13 @@
#include <usb.h>
#include <asm/arch/sys_proto.h>
#ifdef CONFIG_FSL_FASTBOOT
#include <fsl_fastboot.h>
#ifdef CONFIG_ANDROID_RECOVERY
#include <recovery.h>
#endif
#endif /*CONFIG_FSL_FASTBOOT*/
DECLARE_GLOBAL_DATA_PTR;
#define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \
......@@ -328,3 +336,28 @@ void ldo_mode_set(int ldo_bypass)
return;
}
#endif
#ifdef CONFIG_FSL_FASTBOOT
void board_fastboot_setup(void)
{
if (!getenv("fastboot_dev"))
setenv("fastboot_dev", "mmc0");
if (!getenv("bootcmd"))
setenv("bootcmd", "boota mmc0");
}
#ifdef CONFIG_ANDROID_RECOVERY
int check_recovery_cmd_file(void) {
return 0;
}
void board_recovery_setup(void)
{
if (!getenv("bootcmd_android_recovery"))
setenv("bootcmd_android_recovery", "boota mmc0 recovery");
printf("setup env for recovery..\n");
setenv("bootcmd", "run bootcmd_android_recovery");
}
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment