[PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
authorAditya Wadhwa <a0485151@ti.com>
Fri, 26 Feb 2021 14:15:02 +0000 (19:45 +0530)
committerAnkur <ankurbaranwal@ti.com>
Thu, 11 Mar 2021 19:25:54 +0000 (13:25 -0600)
- enabled interrupt for INDAC tests

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
packages/ti/drv/spi/src/v0/OSPI_v0.c
packages/ti/drv/spi/test/ospi_flash/src/main_ospi_flash_test.c

index fc1ecbc8b2952defaf2607968e152974338de3da..322aead0057536259cd48254ad6e1390b8939cf4 100755 (executable)
@@ -211,7 +211,7 @@ static void OSPI_hwiFxn_v0(uintptr_t arg)
                     rdBytes = (rdBytes > object->readCountIdx) ? object->readCountIdx : rdBytes;
 
                     /* Read data from FIFO */
-                    CSL_ospiReadFifoData(hwAttrs->dataAddr, object->readBufIdx, rdBytes);
+                    CSL_ospiReadFifoData(hwAttrs->dataAddr+0x3FE0000, object->readBufIdx, rdBytes);
 
                     object->readBufIdx += rdBytes;
                     object->readCountIdx -= rdBytes;
@@ -230,7 +230,7 @@ static void OSPI_hwiFxn_v0(uintptr_t arg)
                         }
                     }
                     rdBytes = object->readCountIdx;
-                    CSL_ospiReadFifoData(hwAttrs->dataAddr, object->readBufIdx, rdBytes);
+                    CSL_ospiReadFifoData(hwAttrs->dataAddr+0x3FE0000, object->readBufIdx, rdBytes);
                     object->readBufIdx += rdBytes;
                     object->readCountIdx -= rdBytes;
                 }
@@ -277,7 +277,7 @@ static void OSPI_hwiFxn_v0(uintptr_t arg)
                 wrBytes = (wrBytes > object->writeCountIdx) ? object->writeCountIdx : wrBytes;
 
                 /* Write data to FIFO */
-                CSL_ospiWriteFifoData(hwAttrs->dataAddr, object->writeBufIdx, wrBytes);
+                CSL_ospiWriteFifoData(hwAttrs->dataAddr+0x3FE0000, object->writeBufIdx, wrBytes);
 
                 object->writeBufIdx += wrBytes;
                 object->writeCountIdx -= wrBytes;
@@ -289,7 +289,7 @@ static void OSPI_hwiFxn_v0(uintptr_t arg)
                     (object->writeCountIdx <= (sramLevel * CSL_OSPI_FIFO_WIDTH)))
                 {
                     wrBytes = object->writeCountIdx;
-                    CSL_ospiWriteFifoData(hwAttrs->dataAddr, object->writeBufIdx, wrBytes);
+                    CSL_ospiWriteFifoData(hwAttrs->dataAddr+0x3FE0000, object->writeBufIdx, wrBytes);
                     object->writeBufIdx += wrBytes;
                     object->writeCountIdx -= wrBytes;
                 }
index 86295cb2520c27afc0535e3284ea7a2a48ff7ebc..bffdcacd58f3ffbdf171cf8083f24bba9f1e8875 100755 (executable)
@@ -675,7 +675,7 @@ void OSPI_initConfig(OSPI_Tests *test)
     else
     {
         /* Enable interrupt in INDAC mode */
-        ospi_cfg.intrEnable = false;
+        ospi_cfg.intrEnable = true;
         /* Disable PHY in INDAC mode */
         ospi_cfg.phyEnable = false;
         ospi_cfg.dmaEnable = false;