From 51e281b664e87e0242328446bc3f1e29f3a677d4 Mon Sep 17 00:00:00 2001 From: Luo Ji Date: Fri, 30 Mar 2018 10:34:42 +0800 Subject: [PATCH] MA-11626-4 [Android] Enable AVB only for legacy i.mx6/7 Open configs to enable AVB only for legacy i.mx6/7. Change-Id: I54d6b96e8b10250d3370cc8323ee16e1c0edc051 Signed-off-by: Luo Ji --- include/configs/mx6sabreandroid_common.h | 16 ++++++++++++++++ include/configs/mx6slevkandroid.h | 16 ++++++++++++++++ include/configs/mx6sxsabreautoandroid.h | 16 ++++++++++++++++ include/configs/mx6sxsabresdandroid.h | 16 ++++++++++++++++ include/configs/mx7dsabresdandroid.h | 16 ++++++++++++++++ include/configs/mx7ulp_evk_android.h | 15 +++++++++++++++ 6 files changed, 95 insertions(+) diff --git a/include/configs/mx6sabreandroid_common.h b/include/configs/mx6sabreandroid_common.h index 1784919324..d6272aa5ec 100644 --- a/include/configs/mx6sabreandroid_common.h +++ b/include/configs/mx6sabreandroid_common.h @@ -19,4 +19,20 @@ #define CONFIG_SHA1 #define CONFIG_SHA256 +#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 /* MX6_SABRE_ANDROID_COMMON_H */ diff --git a/include/configs/mx6slevkandroid.h b/include/configs/mx6slevkandroid.h index 5c1a2796c9..50acd5f8b8 100644 --- a/include/configs/mx6slevkandroid.h +++ b/include/configs/mx6slevkandroid.h @@ -33,4 +33,20 @@ #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 diff --git a/include/configs/mx6sxsabreautoandroid.h b/include/configs/mx6sxsabreautoandroid.h index 2293470b78..62a69bc002 100644 --- a/include/configs/mx6sxsabreautoandroid.h +++ b/include/configs/mx6sxsabreautoandroid.h @@ -20,4 +20,20 @@ #define CONFIG_SHA1 #define CONFIG_SHA256 +#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 diff --git a/include/configs/mx6sxsabresdandroid.h b/include/configs/mx6sxsabresdandroid.h index 3077d31c45..e7dd7696f3 100644 --- a/include/configs/mx6sxsabresdandroid.h +++ b/include/configs/mx6sxsabresdandroid.h @@ -23,4 +23,20 @@ #define CONFIG_SHA256 #endif +#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 diff --git a/include/configs/mx7dsabresdandroid.h b/include/configs/mx7dsabresdandroid.h index e600c8c458..82a94a2291 100644 --- a/include/configs/mx7dsabresdandroid.h +++ b/include/configs/mx7dsabresdandroid.h @@ -18,4 +18,20 @@ #define CONFIG_FSL_CAAM_KB #define CONFIG_SHA1 +#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 /* __MX7D_SABRESD_ANDROID_H */ diff --git a/include/configs/mx7ulp_evk_android.h b/include/configs/mx7ulp_evk_android.h index c22c652e12..f94f34d559 100644 --- a/include/configs/mx7ulp_evk_android.h +++ b/include/configs/mx7ulp_evk_android.h @@ -15,5 +15,20 @@ #define CONFIG_CMD_EXT4 #define CONFIG_CMD_EXT4_WRITE +#define CONFIG_AVB_SUPPORT +#define CONFIG_FASTBOOT_LOCK +#define FSL_FASTBOOT_FB_DEV "mmc" + +#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 -- 2.17.1