index 853a4a073373d1063f2f59235036d9952af03f60..cda57677153ee2128707e3fedd1ae6701e2679de 100644 (file)
--- a/src/device/c66x/target.h
+++ b/src/device/c66x/target.h
#define DEVICE_PSTREAM_CFG_REG_VAL_ROUTE_PDSP0 0
#define hwConfigStreamingSwitch() DEVICE_REG32_W(DEVICE_PSTREAM_CFG_REG_ADDR, DEVICE_PSTREAM_CFG_REG_VAL_ROUTE_PDSP0);
+#define ECC_BLOCK_SIZE 256
+
+/* NAND address pack macro */
+#define PACK_ADDR(col, page, block) \
+ ((col & 0x000000ff) | ((page & 0x0000001f) << 9) | ((block & 0x00000fff) << 14))
/**
* @brief