zte's code,first commit

Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/boot/common/src/loader/drivers/drv_usb3slave_reg.h b/boot/common/src/loader/drivers/drv_usb3slave_reg.h
new file mode 100644
index 0000000..3ec2de5
--- /dev/null
+++ b/boot/common/src/loader/drivers/drv_usb3slave_reg.h
@@ -0,0 +1,95 @@
+/*******************************************************************************

+* °æÈ¨ËùÓÐ (C)2010, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£

+*

+* ÎļþÃû³Æ£º drv_usb3slave_reg.h

+* Îļþ±êʶ£º 

+* ÄÚÈÝÕªÒª£º 

+* ÆäËü˵Ã÷£º zx297520 project

+* µ±Ç°°æ±¾£º 1.0

+* ×÷¡¡¡¡Õߣº tangjian

+* Íê³ÉÈÕÆÚ£º 

+*

+*

+*******************************************************************************/

+   

+

+#ifndef __DRV_USB3SLAVE_REG_H

+#define __DRV_USB3SLAVE_REG_H

+  

+/* *INDENT-OFF* */

+#ifdef __cplusplus

+extern "C" {

+#endif

+/* *INDENT-ON* */

+

+#include "common.h"

+

+

+/** ÏÂÃæµÄ¼¸¸ö¼Ä´æÆ÷µÄ¸ñʽÓÐÐ©ÌØ±ð£¬¼Ä´æÆ÷ÊDz»Á¬ÐøµÄ£¬¹Ê±£ÁôÁËlinuxÖмĴæÆ÷µÄ¸ñʽ*/

+       

+    /*0x200-0x23c*/

+#define GUSB2PHYCFG(n)	   (0xc200 + (n * 0x04))

+

+    /*0x240-0x27c*/

+#define GUSB2I2CCTL(n)	   (0xc240 + (n * 0x04))

+

+    /*0x280-0x2bc*/

+#define GUSB2PHYACC(n)	   (0xc280 + (n * 0x04))

+

+    /*0x2C0-0x2fc*/

+#define GUSB3PIPECTL(n)   (0xc2c0 + (n * 0x04))

+

+    /*0x300-0x37C*/

+#define GTXFIFOSIZ(n)	   (0xc300 + (n * 0x04))

+

+    /*0x380-0x3fc*/

+#define GRXFIFOSIZ(n)	   (0xc380 + (n * 0x04))

+

+#define GHWPARAMS0    0xc140

+#define GHWPARAMS1    0xc144

+#define GHWPARAMS2    0xc148

+#define GHWPARAMS3    0xc14c

+#define GHWPARAMS4    0xc150

+#define GHWPARAMS5    0xc154

+#define GHWPARAMS6    0xc158

+#define GHWPARAMS7    0xc15c

+#define GHWPARAMS8    0xc600

+

+#define GEVNTADRLO(n)	   (0xc400 + (n * 0x10))

+#define GEVNTADRHI(n)	   (0xc404 + (n * 0x10))

+#define GEVNTSIZ(n)        (0xc408 + (n * 0x10))

+#define GEVNTCOUNT(n)      (0xc40c + (n * 0x10))

+

+#define DEPCMDPAR2(n)	   (0xc800 + (n * 0x10))

+#define DEPCMDPAR1(n)	   (0xc804 + (n * 0x10))

+#define DEPCMDPAR0(n)	   (0xc808 + (n * 0x10))

+#define DEPCMD(n)		   (0xc80c + (n * 0x10))

+

+/** @} */

+/* RAMʱÖÓÑ¡Ôñλ */

+#define USB3Slave_GCTL_RAMCLKSEL_POS                             (6)

+#define USB3Slave_GCTL_CLK_BUS                                   (0 << USB3Slave_GCTL_RAMCLKSEL_POS)

+

+#define USB3Slave_DEPCMD_COMMANDPARAM_POS                       (16)

+#define USB2Slave_DEPCMD_PARAM(x)		(x << USB3Slave_DEPCMD_COMMANDPARAM_POS)

+/* ÃüÁ»îÉèÖÃλ */

+//#define USB3Slave_DEPCMD_CMDACT                                 USB3Slave_DEPCMD_CMDACT

+#define USB3Slave_DEPCMD_CMDACT_POS                             (10)

+#define USB3Slave_DEPCMD_CMDACT_1		                            (1 << USB3Slave_DEPCMD_CMDACT_POS)

+/* ÃüÁîÀàÐÍ */

+//#define USB3Slave_DEPCMD_CMDTYP                                 USB3Slave_DEPCMD_CMDTYP

+#define USB3Slave_DEPCMD_CMDTYP_POS                             (0)

+#define USB3Slave_DEPCMD_DEPSTARTCFG                            (0x09 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_ENDTRANSFER		                    (0x08 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_UPDATETRANSFER	                        (0x07 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_STARTTRANSFER	                        (0x06 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_CLEARSTALL		                        (0x05 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_SETSTALL		                        (0x04 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_GETSEQNUMBER	                        (0x03 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_SETTRANSFRESOURCE	                    (0x02 << USB3Slave_DEPCMD_CMDTYP_POS)

+#define USB3Slave_DEPCMD_SETEPCONFIG		                    (0x01 << USB3Slave_DEPCMD_CMDTYP_POS)

+

+#endif  /* __DRV_USB3SLAVE_REG_H */

+      

+

+