From: Scott Wood Date: Fri, 12 Feb 2016 17:32:44 -0600 Subject: [U-Boot] [U-Boot, v3, 2/2] arasan: nfc: Add initial nand driver support for arasan In-Reply-To: <1447750810-1046-2-git-send-email-sivadur@xilinx.com> References: <1447750810-1046-2-git-send-email-sivadur@xilinx.com> Message-ID: <20160212233244.GA27990@home.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 17, 2015 at 02:30:10PM +0530, Siva Durga Prasad Paladugu wrote: > Added initial nand driver support for arasan nand flash > controller.This supports nand erase,nand read, nand write > This uses the hardware ECC for read and write operations > ZynqMP uses this driver. > > Signed-off-by: Siva Durga Prasad Paladugu > --- > Changes from v2: > - Changed licensing to GPL2.0+ > - Corrected ecc bits in ecc_matrix > - Added bchval to ecc_matrix > - Modified codeword size in ecc matrix > - Modified nand_init as per review > comment > - Removed hardcoding for ecc size and > bch shift operations > Changes from v1: > - Made some variables global to filescope > wherever applicable > - Used real units of time for timeouts > - Handled proper return values > - Removed arasan_read_byte and merged its > functionality to arasan_nand_read_byte > - Fixed coding style changes > - Removed On Die ECC support code for now > - Removed code ReadId from init. > --- > drivers/mtd/nand/Makefile | 1 + > drivers/mtd/nand/arasan_nfc.c | 1155 +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 1156 insertions(+), 0 deletions(-) > create mode 100644 drivers/mtd/nand/arasan_nfc.c I fixed several checkpatch warnings when applying -- please check this next time. -Scott