]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blobdiff - src/device/c6472/target.h
c64x: Add Multi Boot Support
[keystone-rtos/ibl.git] / src / device / c6472 / target.h
index 3af48b3eb8ffe01b984052f72179dbc86245a761..019c47ed938b8814935c0d0c63b129179e2475dd 100644 (file)
 #define deviceSetEthResetState(x,y)
 
 /* The mac control register values used */
-#define TARGET_MAC_CONTROL     CPMAC_MACCONTROL_RXOWNERSHIP   |      \
-                               CPMAC_MACCONTROL_RXOFFLENBLOCK |      \
-                               CPMAC_MACCONTROL_MIIEN
+#define TARGET_MAC_CONTROL     CPMAC_MACCONTROL_RGMIIEN |  \
+                               CPMAC_MACCONTROL_GIG |      \
+                               CPMAC_MACCONTROL_GMIIEN |   \
+                               CPMAC_MACCONTROL_FULLDUPLEX
 
 /* There is no sgmii on the 6472, so the sgmii config is defined to a void statement */
 #define hwSgmiiConfig(x,y)
  */
 #define TARGET_PWR_NAND     -1
 
+/**
+ *  @brief
+ *      The PSC number for GPIO. GPIO is in the always on domain
+ */
+#define TARGET_PWR_GPIO     -1
+
+
 /**
  * @brief
  *  Flag to indicate timer 0 power up requested. The time is always on in the 6472
 #define GPIO_SET_FAL_TRIG_REG  0x02B0002C
 #define GPIO_CLR_FAL_TRIG_REG  0x02B00030
 
+#define ECC_BLOCK_SIZE                 256
+
+/* NAND address pack macro */
+#define        PACK_ADDR(col, page, block) \
+               ((col & 0x00000fff) | ((page & 0x0000003f)<<16) | ((block & 0x000003ff) << 22 ))
+
 /**
  *  @brief
  *      The base address of the I2C peripheral, and the module divisor of the cpu clock
 #define BOOT_READ_BITFIELD(z,x,y)   (((UINT32)z) & BOOTBITMASK(x,y)) >> (y)
 #define BOOT_SET_BITFIELD(z,f,x,y)  (((UINT32)z) & ~BOOTBITMASK(x,y)) | ( (((UINT32)f) << (y)) & BOOTBITMASK(x,y) )
 
+/**
+ *  @brief
+ *      The c6472 supports only booting the ibl from i2c
+ */
+#define deviceReadBootDevice()  BOOT_DEVICE_I2C
+
+#define IBL_ENTER_ROM           0
+#define iblEnterRom()     
 
+#define IBL_ENABLE_EDC          0     
+#define iblEnableEDC()
+