Changed the DDR rate to 1333 and fixed the HUA boot from NOR problem
[keystone-rtos/ibl.git] / src / hw / spi / spi.c
index d9a351425ac37f8c736ac0a6b6e0d6d1730009e4..6702858191204917a2eec672ddd5d26e4e7c56cb 100644 (file)
@@ -114,7 +114,7 @@ SINT16 hwSpiConfig (spiConfig_t *cfg)
  *************************************************************************************************
  * DESCRIPTION: A bi-directional transfer is done
  *************************************************************************************************/
-SINT16 hw_spi_xfer (UINT16 nbytes, UINT8 *dataOut, UINT8 *dataIn, spiConfig_t *cfg, BOOL terminate)
+SINT16 hw_spi_xfer (UINT32 nbytes, UINT8 *dataOut, UINT8 *dataIn, spiConfig_t *cfg, BOOL terminate)
 {
     UINT32 v;
     UINT32 i;
@@ -227,7 +227,7 @@ SINT16 hw_spi_xfer (UINT16 nbytes, UINT8 *dataOut, UINT8 *dataIn, spiConfig_t *c
  *************************************************************************************************
  * DESCRIPTION: A single data block of a fixed size is read
  *************************************************************************************************/
-SINT16 hwSpiRead (UINT32 addr, UINT16 sizeBytes, UINT8 *data)
+SINT16 hwSpiRead (UINT32 addr, UINT32 sizeBytes, UINT8 *data)
 {
     UINT32 n;
     UINT8  command[4];