summaryrefslogtreecommitdiff
path: root/include/configs/imx8mm_evk_android.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-06-07 07:19:57 -0700
committerYe Li <ye.li@nxp.com>2018-06-13 03:06:47 -0700
commit1c7f8ef978cfcff14a153996186f89672538699c (patch)
treecdaa9a5f2df4516b8a11cbd2c5a470401ebf21ed /include/configs/imx8mm_evk_android.h
parentf15e20eeb42d421d694e75d6f159d908b5606e1f (diff)
MLK-18591-8 android: Add imx8/imx8m reference boards support
Add board level support for android and android auto. Each board has android/andriod_auto specified header file for defining relevant configuraitons. And add build targets for their android uboot images building. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/configs/imx8mm_evk_android.h')
-rw-r--r--include/configs/imx8mm_evk_android.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/include/configs/imx8mm_evk_android.h b/include/configs/imx8mm_evk_android.h
new file mode 100644
index 0000000000..c1f9fe1a40
--- /dev/null
+++ b/include/configs/imx8mm_evk_android.h
@@ -0,0 +1,61 @@
+/*
+ * opyright 2018 NXP
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef IMX8MM_EVK_ANDROID_H
+#define IMX8MM_EVK_ANDROID_H
+
+#define CONFIG_BOOTLOADER_OFFSET_33K
+#define CONFIG_BCB_SUPPORT
+#define CONFIG_CMD_READ
+
+#define CONFIG_ANDROID_AB_SUPPORT
+#define CONFIG_AVB_SUPPORT
+#define CONFIG_SUPPORT_EMMC_RPMB
+#define CONFIG_SYSTEM_RAMDISK_SUPPORT
+#define CONFIG_AVB_FUSE_BANK_SIZEW 0
+#define CONFIG_AVB_FUSE_BANK_START 0
+#define CONFIG_AVB_FUSE_BANK_END 0
+#define CONFIG_FASTBOOT_LOCK
+#define FSL_FASTBOOT_FB_DEV "mmc"
+
+#ifdef CONFIG_SYS_MALLOC_LEN
+#undef CONFIG_SYS_MALLOC_LEN
+#define CONFIG_SYS_MALLOC_LEN (96 * SZ_1M)
+#endif
+
+#define CONFIG_USB_FUNCTION_FASTBOOT
+#define CONFIG_CMD_FASTBOOT
+#define CONFIG_ANDROID_BOOT_IMAGE
+#define CONFIG_FASTBOOT_FLASH
+#define CONFIG_FASTBOOT_STORAGE_MMC
+
+#define CONFIG_FSL_FASTBOOT
+#define CONFIG_ANDROID_RECOVERY
+
+#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR
+#define CONFIG_FASTBOOT_BUF_SIZE 0x19000000
+
+#define CONFIG_CMD_BOOTA
+#define CONFIG_SUPPORT_RAW_INITRD
+#define CONFIG_SERIAL_TAG
+
+#undef CONFIG_EXTRA_ENV_SETTINGS
+#undef CONFIG_BOOTCOMMAND
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "splashpos=m,m\0" \
+ "fdt_high=0xffffffffffffffff\0" \
+ "initrd_high=0xffffffffffffffff\0" \
+
+/* Enable mcu firmware flash */
+#ifdef CONFIG_FLASH_MCUFIRMWARE_SUPPORT
+#define ANDROID_MCU_FRIMWARE_DEV_TYPE DEV_MMC
+#define ANDROID_MCU_FIRMWARE_START 0x500000
+#define ANDROID_MCU_FIRMWARE_SIZE 0x40000
+#define ANDROID_MCU_FIRMWARE_HEADER_STACK 0x20020000
+#endif
+
+#endif /* IMX8MM_EVK_ANDROID_H */