Commit 17a30851ad9dec60a27481bd695e09d1f38fe685
1 parent
ffc7bc56e7
Exists in
smarc-rel_imx_4.1.15_2.0.0_ga
MLK-13130: configs: mx6qarm2: android lpddr2 pop support
Add Android support for mx6qarm2 lpddr2 pop target Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com> (Cherry picked from commit 6356f2b420f3571493755f6b3a307a66a539b60c)
Showing 3 changed files with 94 additions and 1 deletions Side-by-side Diff
configs/mx6qarm2android_pop_lpddr2_revb_defconfig
include/configs/mx6qarm2.h
include/configs/mx6qarm2_android.h
1 | +/* | |
2 | + * Copyright (C) 2013-2016 Freescale Semiconductor, Inc. All Rights Reserved. | |
3 | + * | |
4 | + * SPDX-License-Identifier: GPL-2.0+ | |
5 | + */ | |
6 | + | |
7 | +#ifndef IMX6Q_ARM2_ANDROID_H | |
8 | +#define IMX6Q_ARM2_ANDROID_H | |
9 | + | |
10 | +#define CONFIG_CI_UDC | |
11 | +#define CONFIG_USBD_HS | |
12 | +#define CONFIG_USB_GADGET_DUALSPEED | |
13 | + | |
14 | +#define CONFIG_USB_GADGET | |
15 | +#define CONFIG_CMD_USB_MASS_STORAGE | |
16 | +#define CONFIG_USB_FUNCTION_MASS_STORAGE | |
17 | +#define CONFIG_USB_GADGET_DOWNLOAD | |
18 | +#define CONFIG_USB_GADGET_VBUS_DRAW 2 | |
19 | + | |
20 | +#define CONFIG_G_DNL_VENDOR_NUM 0x18d1 | |
21 | +#define CONFIG_G_DNL_PRODUCT_NUM 0x0d02 | |
22 | +#define CONFIG_G_DNL_MANUFACTURER "FSL" | |
23 | + | |
24 | +#define CONFIG_USB_FUNCTION_FASTBOOT | |
25 | +#define CONFIG_CMD_FASTBOOT | |
26 | +#define CONFIG_CMD_READ | |
27 | +#define CONFIG_BCB_SUPPORT | |
28 | +#define CONFIG_ANDROID_BOOT_IMAGE | |
29 | +#define CONFIG_FASTBOOT_FLASH | |
30 | + | |
31 | +/* For NAND we don't support lock/unlock */ | |
32 | +#ifndef CONFIG_SYS_BOOT_NAND | |
33 | +#define CONFIG_FASTBOOT_LOCK | |
34 | +#endif | |
35 | + | |
36 | +#define FSL_FASTBOOT_FB_DEV "mmc" | |
37 | +#define FSL_FASTBOOT_DATA_PART_NUM 4 | |
38 | +#define FSL_FASTBOOT_FB_PART_NUM 11 | |
39 | +#define FSL_FASTBOOT_PR_DATA_PART_NUM 12 | |
40 | + | |
41 | +#define CONFIG_FSL_CAAM_KB | |
42 | +#define CONFIG_CMD_FSL_CAAM_KB | |
43 | +#define CONFIG_SHA1 | |
44 | +#define CONFIG_SHA256 | |
45 | + | |
46 | +#define CONFIG_FSL_FASTBOOT | |
47 | +#define CONFIG_ANDROID_RECOVERY | |
48 | + | |
49 | +#if defined CONFIG_SYS_BOOT_NAND | |
50 | +#define CONFIG_FASTBOOT_STORAGE_NAND | |
51 | +#elif defined CONFIG_SYS_BOOT_SATA | |
52 | +#define CONFIG_FASTBOOT_STORAGE_SATA | |
53 | +#else | |
54 | +#define CONFIG_FASTBOOT_STORAGE_MMC | |
55 | +#endif | |
56 | + | |
57 | +#define CONFIG_ANDROID_MAIN_MMC_BUS 2 | |
58 | +#define CONFIG_ANDROID_BOOT_PARTITION_MMC 1 | |
59 | +#define CONFIG_ANDROID_SYSTEM_PARTITION_MMC 5 | |
60 | +#define CONFIG_ANDROID_RECOVERY_PARTITION_MMC 2 | |
61 | +#define CONFIG_ANDROID_CACHE_PARTITION_MMC 6 | |
62 | +#define CONFIG_ANDROID_DATA_PARTITION_MMC 4 | |
63 | +#define CONFIG_ANDROID_MISC_PARTITION_MMC 8 | |
64 | + | |
65 | +#if defined(CONFIG_FASTBOOT_STORAGE_NAND) | |
66 | +#define ANDROID_FASTBOOT_NAND_PARTS "16m@64m(boot) 16m@80m(recovery) 810m@96m(android_root)ubifs" | |
67 | +#endif | |
68 | + | |
69 | +#define CONFIG_CMD_BOOTA | |
70 | +#define CONFIG_SUPPORT_RAW_INITRD | |
71 | +#define CONFIG_SERIAL_TAG | |
72 | + | |
73 | +#undef CONFIG_EXTRA_ENV_SETTINGS | |
74 | +#undef CONFIG_BOOTCOMMAND | |
75 | + | |
76 | +#define CONFIG_EXTRA_ENV_SETTINGS \ | |
77 | + "splashpos=m,m\0" \ | |
78 | + "fdt_high=0xffffffff\0" \ | |
79 | + "initrd_high=0xffffffff\0" \ | |
80 | + | |
81 | +#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR | |
82 | +#define CONFIG_FASTBOOT_BUF_SIZE 0x19000000 | |
83 | + | |
84 | +#endif /* IMX6Q_ARM2_ANDROID_H */ |