aboot: mdtp: perform verification depending on MDTP efuse
This commit add support for reading the MDTP eFuse (or emulated
eFuse located in the MDTP partition) and performing DIP and firmware
verification only if the MDTP is enabled in the eFuse.
Change-Id: Iff04b3d18f9baba026ebf61cbeead37fa585a7bd
diff --git a/app/aboot/mdtp_ui.c b/app/aboot/mdtp_ui.c
index 78d4519..30d70d6 100644
--- a/app/aboot/mdtp_ui.c
+++ b/app/aboot/mdtp_ui.c
@@ -46,8 +46,6 @@
extern void fbcon_putImage(struct fbimage *fbimg, bool flag);
extern void mdelay(unsigned msecs);
-extern unsigned block_size;
-
static struct fbimage mdtp_header;/* = {0};*/
/********************************************************************************/
@@ -59,6 +57,7 @@
unsigned long long ptn = 0;
struct fbcon_config *fb_display = NULL;
struct fbimage *logo = &mdtp_header;
+ uint32_t block_size = mmc_get_device_blocksize();
index = partition_get_index("mdtp");
if (index == 0) {
@@ -96,6 +95,7 @@
unsigned long long ptn = 0;
struct fbcon_config *fb_display = NULL;
struct fbimage *logo = &mdtp_header;
+ uint32_t block_size = mmc_get_device_blocksize();
index = partition_get_index("mdtp");
if (index == 0) {
@@ -133,6 +133,7 @@
unsigned long long ptn = 0;
struct fbcon_config *fb_display = NULL;
struct fbimage *logo = &mdtp_header;
+ uint32_t block_size = mmc_get_device_blocksize();
index = partition_get_index("mdtp");
if (index == 0) {
@@ -170,6 +171,7 @@
unsigned long long ptn = 0;
struct fbcon_config *fb_display = NULL;
struct fbimage *logo = &mdtp_header;
+ uint32_t block_size = mmc_get_device_blocksize();
index = partition_get_index("mdtp");
if (index == 0) {