emmc: register partition table [1/1]
PD#SWPL-108994
Problem:
uboot need partition table
Solution:
register partition table
Verify:
s4
Change-Id: I5d260fbc4f29b69228f10041f49534e929fbeefb
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
diff --git a/common/board_r.c b/common/board_r.c
index afac1b8..5cd21a2 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -68,6 +68,7 @@
#include <relocate.h>
#ifdef CONFIG_AML_STORAGE
#include <amlogic/storage.h>
+#include <amlogic/emmc_partitions.h>
#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -326,6 +327,13 @@
store_init(0);
return 0;
}
+
+static int initr_partition(void)
+{
+ mmc_partition_init();
+ return 0;
+}
+
#else
#if defined(CONFIG_MTD_NOR_FLASH)
__weak int is_flash_available(void)
@@ -710,6 +718,7 @@
#endif
#ifdef CONFIG_AML_STORAGE
initr_storage,
+ initr_partition,
#else
#ifdef CONFIG_CMD_NAND
initr_nand,