Blame view

include/configs/imx8qxp_mek_android_auto.h 2.77 KB
1c7f8ef97   Ye Li   MLK-18591-8 andro...
1
2
3
4
5
6
7
8
9
10
  /*
   * Copyright 2017 NXP
   *
   * SPDX-License-Identifier:	GPL-2.0+
   */
  
  #ifndef IMX8QXP_MEK_ANDROID_AUTO_H
  #define IMX8QXP_MEK_ANDROID_AUTO_H
  
  #define CONFIG_USBD_HS
1c7f8ef97   Ye Li   MLK-18591-8 andro...
11
12
13
14
  
  #define CONFIG_BCB_SUPPORT
  #define CONFIG_CMD_READ
  #define CONFIG_USB_GADGET_VBUS_DRAW	2
bd75cb6eb   Haoran.Wang   MA-11015-1 Suppor...
15
16
17
  #ifdef CONFIG_IMX_TRUSTY_OS
  #define NS_ARCH_ARM64 1
  #endif
1c7f8ef97   Ye Li   MLK-18591-8 andro...
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  /* USB OTG controller configs */
  #ifdef CONFIG_USB_EHCI_HCD
  #ifndef CONFIG_MXC_USB_PORTSC
  #define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
  #endif
  #endif
  
  #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"
8cd43400c   Ji Luo   MA-13276 [Auto] G...
34
35
  #define KEYSLOT_HWPARTITION_ID   2
  #define KEYSLOT_BLKS             0x3FFF
1c7f8ef97   Ye Li   MLK-18591-8 andro...
36
37
38
39
40
41
42
43
44
45
  #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
430780ed0   zhang sanshan   MA-13050-5 [Andro...
46
  #define CONFIG_SKIP_RESOURCE_CHECING
1c7f8ef97   Ye Li   MLK-18591-8 andro...
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  #define CONFIG_FSL_FASTBOOT
  #define CONFIG_FASTBOOT_USB_DEV 1
  #define CONFIG_ANDROID_RECOVERY
  
  #if defined CONFIG_SYS_BOOT_SATA
  #define CONFIG_FASTBOOT_STORAGE_SATA
  #define CONFIG_FASTBOOT_SATA_NO 0
  #else
  #define CONFIG_FASTBOOT_STORAGE_MMC
  #endif
  
  #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" \
9020bf07d   Luo Ji   MA-12674 imx8qm/8...
69
  #define CONFIG_FASTBOOT_BUF_ADDR   0x98000000
1c7f8ef97   Ye Li   MLK-18591-8 andro...
70
71
72
73
74
75
76
77
78
79
80
  #define CONFIG_FASTBOOT_BUF_SIZE   0x19000000
  
  /* Undefine some macros to save boot time */
  #undef CONFIG_ARCH_MISC_INIT
  #undef CONFIG_FSL_HSIO
  #undef CONFIG_CMD_PCI
  #undef CONFIG_PCI
  #undef CONFIG_PCIE_IMX8X
  #undef CONFIG_PCI_PNP
  #undef CONFIG_PCI_SCAN_SHOW
  #undef CONFIG_CMD_FUSE
1c7f8ef97   Ye Li   MLK-18591-8 andro...
81
82
83
84
85
86
87
88
  #undef CONFIG_MII
  #undef CONFIG_FEC_MXC
  #undef CONFIG_PHYLIB
  #undef CONFIG_PHY_ATHEROS
  #undef CONFIG_SYS_LONGHELP
  #undef CONFIG_HUSH_PARSER
  #undef CONFIG_AUTO_COMPLETE
  #undef CONFIG_USB_HOST_ETHER
3f4b5b9cf   Ye Li   MLK-20559-9 Andro...
89
  #undef CONFIG_CMD_USB_MASS_STORAGE
1c7f8ef97   Ye Li   MLK-18591-8 andro...
90
  #undef CONFIG_USB_FUNCTION_MASS_STORAGE
e2ae3209e   faqiang.zhu   MA-13787 disable ...
91
  #undef CONFIG_FAT_WRITE
1c7f8ef97   Ye Li   MLK-18591-8 andro...
92

d7c768a69   Ji Luo   MA-13628 [Auto] R...
93
  #ifdef CONFIG_IMX_TRUSTY_OS
f042c8f7c   Luo Ji   MA-13487 Refine f...
94
  #define AVB_RPMB
1594150db   Ji Luo   MA-13940 [Auto] i...
95
96
97
98
99
100
101
  #ifdef CONFIG_DUAL_BOOTLOADER
  #define BOOTLOADER_RBIDX_OFFSET  0x3FE000
  #define BOOTLOADER_RBIDX_START   0x3FF000
  #define BOOTLOADER_RBIDX_LEN     0x08
  #define BOOTLOADER_RBIDX_INITVAL 0
  #define CONFIG_SYS_SPL_PTE_RAM_BASE 0x801F8000
  #endif
d7c768a69   Ji Luo   MA-13628 [Auto] R...
102
103
104
  #endif
  
  #ifdef CONFIG_SPL_BUILD
8cd43400c   Ji Luo   MA-13276 [Auto] G...
105
  #undef CONFIG_BLK
161454109   Ji Luo   MA-13937 Enable C...
106
107
108
  #define CONFIG_FSL_CAAM_KB
  #define CONFIG_SPL_CRYPTO_SUPPORT
  #define CONFIG_SYS_FSL_SEC_LE
8cd43400c   Ji Luo   MA-13276 [Auto] G...
109
  #endif
449f9048e   Luo Ji   [iot] Update liba...
110
  #define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED
1c7f8ef97   Ye Li   MLK-18591-8 andro...
111
  #endif /* IMX8QXP_MEK_ANDROID_AUTO_H */