summaryrefslogtreecommitdiff
path: root/include/configs/mx6slevkandroid.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-05-21 02:32:08 -0700
committerYe Li <ye.li@nxp.com>2018-06-13 03:06:47 -0700
commitf15e20eeb42d421d694e75d6f159d908b5606e1f (patch)
tree46dade603558fc57b5a9ce03770f41699c19f32d /include/configs/mx6slevkandroid.h
parent1ae9ecc73f5001b8bd743011c06a7d07861be64e (diff)
MLK-18591-7 android: Add mx6/7 reference board support to enable android fastboot
Add board level support for android fastboot feature. Each board has a android specified header file for defining android related 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/mx6slevkandroid.h')
-rw-r--r--include/configs/mx6slevkandroid.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/configs/mx6slevkandroid.h b/include/configs/mx6slevkandroid.h
new file mode 100644
index 0000000000..9115272c11
--- /dev/null
+++ b/include/configs/mx6slevkandroid.h
@@ -0,0 +1,52 @@
+
+/*
+ * Copyright (C) 2013-2016 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2017 NXP
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef MX6SL_EVK_ANDROID_H
+#define MX6SL_EVK_ANDROID_H
+#include "mx_android_common.h"
+
+#include <asm/mach-imx/mxc_key_defs.h>
+
+#define CONFIG_CMD_FASTBOOT
+#define CONFIG_ANDROID_BOOT_IMAGE
+/* lock/unlock stuff */
+#define CONFIG_FASTBOOT_LOCK
+#define FSL_FASTBOOT_FB_DEV "mmc"
+
+/*keyboard mapping*/
+#define CONFIG_VOL_DOWN_KEY KEY_BACK
+#define CONFIG_POWER_KEY KEY_5
+
+#define CONFIG_MXC_KPD
+#define CONFIG_MXC_KEYMAPPING \
+ { \
+ KEY_SELECT, KEY_BACK, KEY_1, KEY_2, \
+ KEY_3, KEY_4, KEY_5, KEY_MENU, \
+ KEY_6, KEY_7, KEY_8, KEY_9, \
+ KEY_UP, KEY_LEFT, KEY_RIGHT, KEY_DOWN, \
+ }
+#define CONFIG_MXC_KPD_COLMAX 4
+#define CONFIG_MXC_KPD_ROWMAX 4
+
+#define CONFIG_AVB_SUPPORT
+#ifdef CONFIG_AVB_SUPPORT
+#define CONFIG_ANDROID_RECOVERY
+
+#ifdef CONFIG_SYS_CBSIZE
+#undef CONFIG_SYS_CBSIZE
+#define CONFIG_SYS_CBSIZE 2048
+#endif
+
+#ifdef CONFIG_SYS_MALLOC_LEN
+#undef CONFIG_SYS_MALLOC_LEN
+#define CONFIG_SYS_MALLOC_LEN (96 * SZ_1M)
+#endif
+
+#endif /* CONFIG_AVB_SUPPORT */
+
+#endif