[U-Boot] [PATCH 2/2] omap3evm: Add support for EFI partitions

Sanjeev Premi premi at ti.com
Mon Nov 14 16:19:08 CET 2011


Defines CONFIG_EFI_PARTITION for OMAP3 EVM.

Also, fix this board specific error noticed after
enabling this config option:

part_efi.c: In function 'alloc_read_gpt_entries':
part_efi.c:384:18: error: 'CONFIG_SYS_CACHELINE_SIZE' undeclare
d (first use in this function)

Signed-off-by: Sanjeev Premi <premi at ti.com>
Cc: Sandeep Paulraj <s-paulraj at ti.com>
---

 Cache line length for ARM Cortex-A8 can be referenced here:
 http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344f/Chdebced.html

 I wasn't sure if these changes should be treated separate,
 so keeping them in same file - but can be split if needed.

 include/configs/omap3_evm.h        |    1 +
 include/configs/omap3_evm_common.h |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h
index 47ec39f..9228ef1 100644
--- a/include/configs/omap3_evm.h
+++ b/include/configs/omap3_evm.h
@@ -84,6 +84,7 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_OMAP_HSMMC
 #define CONFIG_DOS_PARTITION
+#define CONFIG_EFI_PARTITION
 
 /* USB
  *
diff --git a/include/configs/omap3_evm_common.h b/include/configs/omap3_evm_common.h
index 54aa7a7..905a7b0 100644
--- a/include/configs/omap3_evm_common.h
+++ b/include/configs/omap3_evm_common.h
@@ -53,6 +53,9 @@
 /* Size of malloc pool */
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (128 << 10))
 
+/* Size of cache line */
+#define CONFIG_SYS_CACHELINE_SIZE	64
+
 /*
  * Stack sizes
  * These values are used in start.S
-- 
1.7.0.4



More information about the U-Boot mailing list