Blame view

include/configs/pico-imx7dandroidthings.h 1.86 KB
02ad0349e   Ye Li   MLK-18591-10 andr...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  /*
   * Copyright (C) 2016 Freescale Semiconductor, Inc.
   * Copyright 2017 NXP
   *
   * SPDX-License-Identifier:	GPL-2.0+
   */
  
  #ifndef __PICO_IMX7DANDROIDTHINGS_H
  #define __PICO_IMX7DANDROIDTHINGS_H
  
  #define TRUSTY_OS_ENTRY 0x9e000000
  #define TRUSTY_OS_RAM_SIZE 0x2000000
  #define TEE_HWPARTITION_ID 2
  #define TRUSTY_OS_MMC_BLKS 0xFFF
cce0bd746   Yu Shan   [iot] Check Trust...
15
  #define TRUSTY_OS_PADDED_SZ 0x180000
02ad0349e   Ye Li   MLK-18591-10 andr...
16

5f88ae9d8   Ji Luo   [iot] Fix build b...
17
18
  #define CONFIG_USB_GADGET
  #define CONFIG_CMD_FASTBOOT
02ad0349e   Ye Li   MLK-18591-10 andr...
19
20
  #ifdef CONFIG_AVB_ATX
  #define PERMANENT_ATTRIBUTE_HASH_OFFSET 0
aebefa804   Ji Luo   [iot] Support com...
21
22
  #define UNLOCK_VBOOT_STATUS_OFFSET_IN_WORD 3
  #define UNLOCK_VBOOT_STATUS_OFFSET_IN_BIT 16
02ad0349e   Ye Li   MLK-18591-10 andr...
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  #endif
  
  #define AVB_RPMB
  #ifdef AVB_RPMB
  #define KEYSLOT_BLKS 0xFFF
  #define KEYSLOT_HWPARTITION_ID 2
  #endif
  
  #ifdef CONFIG_IMX_TRUSTY_OS
  #define NON_SECURE_FASTBOOT
  #define TRUSTY_KEYSLOT_PACKAGE
  #endif
  #include "mx_android_common.h"
  
  
  /* For NAND we don't support lock/unlock */
  #ifndef CONFIG_NAND_BOOT
  #define CONFIG_FASTBOOT_LOCK
  #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT
  #define FSL_FASTBOOT_FB_DEV "mmc"
  #endif
  
  #define CONFIG_ANDROID_AB_SUPPORT
02ad0349e   Ye Li   MLK-18591-10 andr...
46
47
48
49
  #define CONFIG_SHA1
  #define CONFIG_SHA256
  
  #define CONFIG_SYSTEM_RAMDISK_SUPPORT
02ad0349e   Ye Li   MLK-18591-10 andr...
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  
  #ifdef CONFIG_SYS_MMC_ENV_DEV
  #undef CONFIG_SYS_MMC_ENV_DEV
  #define CONFIG_SYS_MMC_ENV_DEV		1   /* USDHC2 */
  #endif
  
  #ifdef CONFIG_SYS_MMC_ENV_PART
  #undef CONFIG_SYS_MMC_ENV_PART
  #define CONFIG_SYS_MMC_ENV_PART		1	/* boot0 area */
  #endif
  
  
  #ifdef CONFIG_AVB_SUPPORT
  #define CONFIG_SUPPORT_EMMC_RPMB
  
  #ifdef CONFIG_SYS_MALLOC_LEN
  #undef CONFIG_SYS_MALLOC_LEN
449f9048e   Luo Ji   [iot] Update liba...
67
  #define CONFIG_SYS_MALLOC_LEN	 	(64 * SZ_1M)
02ad0349e   Ye Li   MLK-18591-10 andr...
68
69
70
71
72
73
74
75
76
  #endif
  /* fuse bank size in word */
  /* infact 7D have no enough bits
   * set this size to 0 will disable
   * program/read FUSE */
  #define CONFIG_AVB_FUSE_BANK_SIZEW 4
  #define CONFIG_AVB_FUSE_BANK_START 14
  #define CONFIG_AVB_FUSE_BANK_END 14
  #endif
449f9048e   Luo Ji   [iot] Update liba...
77
  #define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED
11e294b8e   Jaesung Chung   [iot] imx7d: disa...
78
79
  /* Disable U-Boot logo */
  #undef CONFIG_VIDEO_LOGO
02ad0349e   Ye Li   MLK-18591-10 andr...
80
81
  #endif
  /* __PICO_IMX7DANDROIDTHINGS_H */