blob: 2a9d007564d4a837d023ebef6f2d7ac3e4ddfe38 [file] [log] [blame]
/*
* Copyright 2018 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef IMX8MQ_EVK_ANDROID_THINGS_H
#define IMX8MQ_EVK_ANDROID_THINGS_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"
#define CONFIG_ENABLE_LOCKSTATUS_SUPPORT
#ifdef CONFIG_SYS_MALLOC_LEN
#undef CONFIG_SYS_MALLOC_LEN
#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)
#endif
#define CONFIG_USB_FUNCTION_FASTBOOT
#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" \
#define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED
#define ENTERPRISE_MICRON_1G 0x5c
#define ENTERPRISE_HYNIX_1G 0x56
#define ENTERPRISE_MIRCONB_3G 0x40
#define WIBO_3G 0x00
#define IMX8M_REF_3G 0x00
#define TEE_LOAD_ADDR_1G 0x7e000000
#define TEE_LOAD_ADDR_3G 0xfe000000
#ifdef CONFIG_SPL_BUILD
#define CONFIG_FSL_CAAM_KB
#define CONFIG_SPL_CRYPTO_SUPPORT
#define CONFIG_SPL_SHA256
#define AVB_RPMB
#ifdef AVB_RPMB
#define BOOTLOADER_RBIDX_OFFSET 0x1E000
#define BOOTLOADER_RBIDX_START 0x1F000
#define BOOTLOADER_RBIDX_LEN 0x08
#define BOOTLOADER_RBIDX_INITVAL 0
#define KEYSLOT_HWPARTITION_ID 2
#define KEYSLOT_BLKS 0x1FFF
#endif
#endif
/* Enlarge the spl max size to 172k */
#ifdef CONFIG_SPL_MAX_SIZE
#undef CONFIG_SPL_MAX_SIZE
#define CONFIG_SPL_MAX_SIZE 176128
#endif
#endif /* IMX8MQ_EVK_ANDROID_THINGS_H */