index ec9c452d1969d9cb433ea80234e7d33fc3de2879..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 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