[Feature][ZXW-265]merge P56U03 version

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: I873f6df64e2605a77b8b8bfec35b21e7f33c5444
diff --git a/boot/common/src/uboot/drivers/peripheral/peripheral.c b/boot/common/src/uboot/drivers/peripheral/peripheral.c
index be5825f..fe410a9 100755
--- a/boot/common/src/uboot/drivers/peripheral/peripheral.c
+++ b/boot/common/src/uboot/drivers/peripheral/peripheral.c
@@ -27,13 +27,18 @@
 #include <led.h>

 #include <drvs_gpio.h>

 #include "common.h"

+#include <dma_cfg.h>

+

 //#include <gpio.h>

 

 /****************************************************************************

 *											   Local Macros

 ****************************************************************************/

 #define SD1_IO_1V8_EN	0x13c830

-#define REG32(x)			    (*(volatile u32*)(x))

+#define REG32(x)		(*(volatile u32*)(x))

+#define MMC0_USED_EN	1

+#define MMC1_USED_EN	1

+

 /****************************************************************************

 *											   Local Types

 ****************************************************************************/

@@ -61,9 +66,11 @@
 {

 	int ret = 0;

 	ret = power_init();

-

+	

+/*mmc config*/

+	REG32(MMC_FLAG_ADDR) &=~0x3;//clear bit0~1	

+	REG32(MMC_FLAG_ADDR) |=((MMC0_USED_EN<<0)|(MMC1_USED_EN<<1));

 /*led*/

-

 /*lcd*/

 

 	/* jtag调试 */