Commit graph

34 commits

Author SHA1 Message Date
Nava kishore Manne
d18411f597 Drivers: Doxygen changes for 2015.4
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-12-01 11:51:28 +05:30
Nava kishore Manne
057fcb7917 Removed version information from all drivers.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-11-20 16:32:15 +05:30
Punnaiah Choudary Kalluri
ee8bf3f411 nandpsu: Remove QEMU specific workarounds
Now the QEMU nand model supports extended parameter page
information. So, removing the QEMU specific hacks from the
driver.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Sai Pavan Boddu <saipava@xilinx.com>
2015-08-18 15:58:16 +05:30
Punnaiah Choudary Kalluri
c46210930c nandpsu: Convert the three line comments to single line
This patch converts the three line comments to single line

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:13 +05:30
Punnaiah Choudary Kalluri
30c8402cdc nandpsu: Remove redundant code
This patch adds common routines by removing the possible redundant
code from the functions.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:12 +05:30
Punnaiah Choudary Kalluri
fb124d3372 nandpsu: Decrease the XNANDPSU_MAX_BLOCKS value
This change is to reduce the size of the static bbt table size
from 8KB to 4KB because so far we have not identified the
flash part that has more than 16K blocks and also it will
reduce the bsp size.

Driver warns if the device has more number of blocks than the
defined value so that this can be incremented in future and if
there is a part available.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:11 +05:30
Punnaiah Choudary Kalluri
ac89dc0908 nandpsu: Remove NO_OOB option for bbt
As per the csurom, Bbt signature is always stored in oob area.
So, to sync with csurom, removing the NO_OOB(Bbt signature stores
in page area) functionality.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:11 +05:30
Punnaiah Choudary Kalluri
aeb988e08a nandpsu: Remove buswidth option
Controller supports only 8 bit mode. So, no need to configure
this value as this is the only option supported.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-07-31 16:56:09 +05:30
Nava kishore Manne
607a6324f3 Drivers: Retain @details only in the primary header file.
Removed all other instances.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-07-13 18:30:19 +05:30
Punnaiah Choudary Kalluri
d29f063136 nandpsu: Fix timeout error for erase operation on slower devices
The current timeout value is not enough for erase operation on slower
devices. so increasing the timeout value and also added usleep for
timeout routine to have a precise timeout.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-06-20 13:08:12 +05:30
Nava kishore Manne
146cd64c83 Doxygen changes for drivers 2015-06-12 12:50:09 +05:30
Nava kishore Manne
0c9ca599cf Drivers:standalone drivers license changes.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-05-13 17:05:11 +05:30
Shakti Bhatnagar
8fc5ca745a nandpsu_v1_0: MISRA C fixes for driver files.
This patch has changes in driver code to fix MISRA C voilations.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-20 12:48:07 +05:30
Shakti Bhatnagar
67b871021e nandpsu_v1_0: Remove unnecessary DMA Buffer Boundary Register configuration.
Removed the configuration of DMA Buffer Boundary register in WriteSpareBytes API
as the driver uses oob size as pkt size and thus configuring DMA Buffer
Boundary Register has no effect.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-20 12:45:24 +05:30
Shakti Bhatnagar
3580a10ae2 nandpsu_v1_0: Fixed triggering of assert call when block reaches max block.
Since the check for the block to have reached the end block was at the end of the loop,
thus assert call triggering could happen if the block crosses the max block limit,
making the driver to hang. Thus to fix the triggering of assert call,
the check for the block to have reached the max block is being done at the start of
the loop in XNandPsu_CalculateLength function.
The u32 typecasting for the variable OffsetVar has been removed and the data type for
the variable TempLen has been changed to u64 as for higher block numbers the value for
these variables will require u64 datatype otherwise corrupted value will get stored
which will lead to wrong calculation of block.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-20 12:45:24 +05:30
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