Commit graph

19 commits

Author SHA1 Message Date
Nava kishore Manne
c61ab67a49 nandpsu_v1_0: Removed unnecessary Changes.
This reverts commit 8922aa1818dea2b01f2eb6b6fbb388619a9d9c5a.
2015-04-20 12:24:14 +05:30
Shakti Bhatnagar
4c2aa9292c nandpsu_v1_0: Removed workaround for qemu in driver.
Removed the workaround for qemu in driver code as qemu now supports
ecc and bad block table handling.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-01 08:34:46 +05:30
Shakti Bhatnagar
092cc995df nandpsu_v1_0: Correct the length to be read for signature and version when No OOB enabled.
Modified the number of bytes of data to be read for signature and version when
NO OOB option is enabled.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-30 10:54:12 +05:30
Shakti Bhatnagar
33888ecc4d nandpsu_v1_0: Modified number of bytes to be read for bbt.
Modified number of bytes to be read for bbt in oob and bbt with signature
and version for no oob option. This change is done kept in mind that it
should support flashes with small page size as well.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-27 17:45:17 +05:30
Shakti Bhatnagar
23469c67ec nandpsu_v1_0: Modified InitBbtDesc function for OOB and No OOB feature.
Setting BBT option at the beginning and checking afterwards to set
the offset for signature and version.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-26 21:04:45 +05:30
Shakti Bhatnagar
f22adb128b nandpsu_v1_0: Ensure ecc error interrupts are not masked in fifo read mode for all the packets.
Performing Read modify write operation for the interrupt status enable
and interrupt status register in readpage function instead of directly
writing to fix the masking error interrupts in case ecc enabled.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-26 21:04:45 +05:30
Shakti Bhatnagar
72d11a1a8a nandpsu_v1_0: Modified Ecc Address Calculation based upon the oob size.
If oob size is less than 64 bytes, ecc position should start from 0 position
of oob area, else should be at the end of the oob area.
Keeping ecc start position in alligned with the Linux nand base ecc layout.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-26 21:04:44 +05:30
Shakti Bhatnagar
32c3c2a8bc nandpsu_v1_0: Removed Assert check dest buf addr zero.
Destination buffer address zero is valid for ddr.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-16 23:01:43 +05:30
Shakti Bhatnagar
a516afcdf5 nandpsu_v1_0: Fixed Mark Block Bad bbt updation issue.
Corrected the target value calculation in XNandPsu_MarkBlockBad API.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-14 13:03:49 +05:30
Shakti Bhatnagar
61ce44e6b9 nandpsu_v1_0: Renamed integration test directory to "intgtest"
Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-13 12:47:03 +05:30
Shakti Bhatnagar
5ebc54dfa8 nandpsu_v1_0: Clear dmabuffer boundary register during the init.
Ensure that the dma buffer boundary interrupt is disabled as driver
is using the contiguous buffer for the whole page size and enabling
this interrupt would cause failures if the buffer boundary is
configured for other values (not the page size)

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-13 12:47:03 +05:30
Shakti Bhatnagar
8240571709 nandpsu_v1_0: Modified driver source file for removing compilation warning.
Modified driver source file to remove compiler warning.
1. Did Type Conversion
2. Made two API's public
3. Removed redeclaration

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-26 17:25:01 +05:30
Shakti Bhatnagar
f382b3403f nandpsu_v1_0: Modified integration test to follow code convention.
Modified test file to follow code convention and logic correction.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-26 16:55:00 +05:30
Shakti Bhatnagar
bb1523aab2 nandpsu_v1_0: Removed compiler warnings from integration test files.
Modified Integration test files to remove compiler warnings.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-26 16:53:23 +05:30
Shakti Bhatnagar
067860a793 nandpsu_v1_0: Modified file permissions from 755 to 644
Changed file permissions from 755 to 644 for files in integration test.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-19 17:56:41 +05:30
Shakti Bhatnagar
52623ea7bb nandpsu_v1_0: Removed Makefile from example folder
Removed makefile from the example folder of nandpsu_v1_0 driver.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-19 14:37:55 +05:30
Shakti Bhatnagar
34bfc6e239 nandpsu_v1_0: Updated integration test for nandpsu driver for Zynq UltraScale MP.
Updated integration test files for nandpsu driver.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-19 14:37:55 +05:30
Shakti Bhatnagar
fd4a99ddbf nandpsu_v1_0: Modified supported_peripherals list in mdd file.
Kept only psu_nand as supported_peripherals for Zynq UltraScale MP Generic
NAND controller driver.
Removed pss_nand and ps8_nand from supported_peripherals.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-18 13:07:53 +05:30
Shakti Bhatnagar
ea6ef8942d nandpsu_v1_0: Renamed driver for Zynq UltraScale MP Generic NAND controller.
Renamed driver for Zynq Ultra Scale MP Generic Nand Controller with
new naming convention.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-02-17 11:49:56 +05:30