fix: amc-a385: Skip AVS selection from EFUSE.

	-There is an issue with the EFUSE settings in a385-amc,
	 which will cause the uboot stuck at bootROM, just skip
	 it.

Change-Id: Ib46db2f7250eae2cf39cfbfdb13b22edce8a98ef
Signed-off-by: Terry <bjzhou@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/22697
Reviewed-by: Omri Itach <omrii@marvell.com>
Tested-by: Omri Itach <omrii@marvell.com>
(cherry picked from commit 2b84ce2741e0cfb6758a949197aa4f8836f9dee2)
Reviewed-on: http://vgitil04.il.marvell.com:8080/22912
Tested-by: Star_Automation <star@marvell.com>
diff --git a/tools/marvell/bin_hdr/src_init/a38x/generalInit.c b/tools/marvell/bin_hdr/src_init/a38x/generalInit.c
index cee999b..ac37130 100644
--- a/tools/marvell/bin_hdr/src_init/a38x/generalInit.c
+++ b/tools/marvell/bin_hdr/src_init/a38x/generalInit.c
@@ -210,7 +210,12 @@
 	MV_U32 versionVal, binVal, avsRegControlVal;
 	MV_BOARD_AVS_EFUSE_MAP efuse_freq_val[] = EFUSE_FREQ_VAL_INFO;
 	int i;
+
 #ifndef CONFIG_CUSTOMER_BOARD_SUPPORT
+	if (mvBoardIdGet() == DB_AMC_6820_ID) {
+		mvPrintf("Skipping AVS selection from EFUSE when run on AMC card\n");
+		return MV_FALSE;
+	}
 	/* For Marvell boards only:
 	 * AVS configuration from EFUSE can be skipped for Marvell boards, for:
 		- Already existing SoCs which EFUSE was not pre-burnt with AVS values
@@ -220,6 +225,7 @@
 		return MV_FALSE;
 	}
 #endif
+
 	/* Set Memory I/O window */
 	MV_REG_WRITE(AHB_TO_MBUS_WIN_CTRL_REG(EFUSE_WIN_ID), EFUSE_WIN_CTRL_VAL);
 	MV_REG_WRITE(AHB_TO_MBUS_WIN_BASE_REG(EFUSE_WIN_ID), EFUSE_WIN_BASE_VAL);