1 /* linux/drivers/mtd/nand/bf5xx_nand.c
3 * Copyright 2006-2008 Analog Devices Inc.
4 * http://blackfin.uclinux.org/
5 * Bryan Wu <bryan.wu@analog.com>
7 * Blackfin BF5xx on-chip NAND flash controller driver
9 * Derived from drivers/mtd/nand/s3c2410.c
10 * Copyright (c) 2007 Ben Dooks <ben@simtec.co.uk>
12 * Derived from drivers/mtd/nand/cafe.c
13 * Copyright © 2006 Red Hat, Inc.
14 * Copyright © 2006 David Woodhouse <dwmw2@infradead.org>
17 * 12-Jun-2007 Bryan Wu: Initial version
18 * 18-Jul-2007 Bryan Wu:
19 * - ECC_HW and ECC_SW supported
20 * - DMA supported in ECC_HW
21 * - YAFFS tested as rootfs in both ECC_HW and ECC_SW
23 * This program is free software; you can redistribute it and/or modify
24 * it under the terms of the GNU General Public License as published by
25 * the Free Software Foundation; either version 2 of the License, or
26 * (at your option) any later version.
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
33 * You should have received a copy of the GNU General Public License
34 * along with this program; if not, write to the Free Software
35 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 #include <linux/module.h>
39 #include <linux/types.h>
40 #include <linux/kernel.h>
41 #include <linux/string.h>
42 #include <linux/ioport.h>
43 #include <linux/platform_device.h>
44 #include <linux/delay.h>
45 #include <linux/dma-mapping.h>
46 #include <linux/err.h>
47 #include <linux/slab.h>
49 #include <linux/bitops.h>
51 #include <linux/mtd/mtd.h>
52 #include <linux/mtd/nand.h>
53 #include <linux/mtd/nand_ecc.h>
54 #include <linux/mtd/partitions.h>
56 #include <asm/blackfin.h>
58 #include <asm/cacheflush.h>
60 #include <asm/portmux.h>
62 #define DRV_NAME "bf5xx-nand"
63 #define DRV_VERSION "1.2"
64 #define DRV_AUTHOR "Bryan Wu <bryan.wu@analog.com>"
65 #define DRV_DESC "BF5xx on-chip NAND FLash Controller Driver"
68 #define NBUSY 0x01 /* Not Busy */
69 #define WB_FULL 0x02 /* Write Buffer Full */
70 #define PG_WR_STAT 0x04 /* Page Write Pending */
71 #define PG_RD_STAT 0x08 /* Page Read Pending */
72 #define WB_EMPTY 0x10 /* Write Buffer Empty */
74 /* NFC_IRQSTAT Masks */
75 #define NBUSYIRQ 0x01 /* Not Busy IRQ */
76 #define WB_OVF 0x02 /* Write Buffer Overflow */
77 #define WB_EDGE 0x04 /* Write Buffer Edge Detect */
78 #define RD_RDY 0x08 /* Read Data Ready */
79 #define WR_DONE 0x10 /* Page Write Done */
82 #define ECC_RST 0x01 /* ECC (and NFC counters) Reset */
85 #define PG_RD_START 0x01 /* Page Read Start */
86 #define PG_WR_START 0x02 /* Page Write Start */
88 #ifdef CONFIG_MTD_NAND_BF5XX_HWECC
89 static int hardware_ecc
= 1;
91 static int hardware_ecc
;
94 static const unsigned short bfin_nfc_pin_req
[] =
111 #ifdef CONFIG_MTD_NAND_BF5XX_BOOTROM_ECC
112 static struct nand_ecclayout bootrom_ecclayout
= {
115 0x8 * 0, 0x8 * 0 + 1, 0x8 * 0 + 2,
116 0x8 * 1, 0x8 * 1 + 1, 0x8 * 1 + 2,
117 0x8 * 2, 0x8 * 2 + 1, 0x8 * 2 + 2,
118 0x8 * 3, 0x8 * 3 + 1, 0x8 * 3 + 2,
119 0x8 * 4, 0x8 * 4 + 1, 0x8 * 4 + 2,
120 0x8 * 5, 0x8 * 5 + 1, 0x8 * 5 + 2,
121 0x8 * 6, 0x8 * 6 + 1, 0x8 * 6 + 2,
122 0x8 * 7, 0x8 * 7 + 1, 0x8 * 7 + 2
138 * Data structures for bf5xx nand flash controller driver
141 /* bf5xx nand info */
142 struct bf5xx_nand_info
{
144 struct nand_hw_control controller
;
145 struct nand_chip chip
;
148 struct bf5xx_nand_platform
*platform
;
151 struct device
*device
;
154 struct completion dma_completion
;
158 * Conversion functions
160 static struct bf5xx_nand_info
*mtd_to_nand_info(struct mtd_info
*mtd
)
162 return container_of(mtd_to_nand(mtd
), struct bf5xx_nand_info
,
166 static struct bf5xx_nand_info
*to_nand_info(struct platform_device
*pdev
)
168 return platform_get_drvdata(pdev
);
171 static struct bf5xx_nand_platform
*to_nand_plat(struct platform_device
*pdev
)
173 return dev_get_platdata(&pdev
->dev
);
177 * struct nand_chip interface function pointers
181 * bf5xx_nand_hwcontrol
183 * Issue command and address cycles to the chip
185 static void bf5xx_nand_hwcontrol(struct mtd_info
*mtd
, int cmd
,
188 if (cmd
== NAND_CMD_NONE
)
191 while (bfin_read_NFC_STAT() & WB_FULL
)
195 bfin_write_NFC_CMD(cmd
);
196 else if (ctrl
& NAND_ALE
)
197 bfin_write_NFC_ADDR(cmd
);
202 * bf5xx_nand_devready()
204 * returns 0 if the nand is busy, 1 if it is ready
206 static int bf5xx_nand_devready(struct mtd_info
*mtd
)
208 unsigned short val
= bfin_read_NFC_STAT();
210 if ((val
& NBUSY
) == NBUSY
)
218 * These allow the bf5xx to use the controller's ECC
219 * generator block to ECC the data as it passes through
223 * ECC error correction function
225 static int bf5xx_nand_correct_data_256(struct mtd_info
*mtd
, u_char
*dat
,
226 u_char
*read_ecc
, u_char
*calc_ecc
)
228 struct bf5xx_nand_info
*info
= mtd_to_nand_info(mtd
);
232 unsigned short failing_bit
, failing_byte
;
235 calced
= calc_ecc
[0] | (calc_ecc
[1] << 8) | (calc_ecc
[2] << 16);
236 stored
= read_ecc
[0] | (read_ecc
[1] << 8) | (read_ecc
[2] << 16);
238 syndrome
[0] = (calced
^ stored
);
241 * syndrome 0: all zero
245 if (!syndrome
[0] || !calced
|| !stored
)
249 * sysdrome 0: only one bit is one
250 * ECC data was incorrect
253 if (hweight32(syndrome
[0]) == 1) {
254 dev_err(info
->device
, "ECC data was incorrect!\n");
258 syndrome
[1] = (calced
& 0x7FF) ^ (stored
& 0x7FF);
259 syndrome
[2] = (calced
& 0x7FF) ^ ((calced
>> 11) & 0x7FF);
260 syndrome
[3] = (stored
& 0x7FF) ^ ((stored
>> 11) & 0x7FF);
261 syndrome
[4] = syndrome
[2] ^ syndrome
[3];
263 for (i
= 0; i
< 5; i
++)
264 dev_info(info
->device
, "syndrome[%d] 0x%08x\n", i
, syndrome
[i
]);
266 dev_info(info
->device
,
267 "calced[0x%08x], stored[0x%08x]\n",
271 * sysdrome 0: exactly 11 bits are one, each parity
272 * and parity' pair is 1 & 0 or 0 & 1.
273 * 1-bit correctable error
276 if (hweight32(syndrome
[0]) == 11 && syndrome
[4] == 0x7FF) {
277 dev_info(info
->device
,
278 "1-bit correctable error, correct it.\n");
279 dev_info(info
->device
,
280 "syndrome[1] 0x%08x\n", syndrome
[1]);
282 failing_bit
= syndrome
[1] & 0x7;
283 failing_byte
= syndrome
[1] >> 0x3;
284 data
= *(dat
+ failing_byte
);
285 data
= data
^ (0x1 << failing_bit
);
286 *(dat
+ failing_byte
) = data
;
292 * sysdrome 0: random data
293 * More than 1-bit error, non-correctable error
294 * Discard data, mark bad block
296 dev_err(info
->device
,
297 "More than 1-bit error, non-correctable error.\n");
298 dev_err(info
->device
,
299 "Please discard data, mark bad block\n");
304 static int bf5xx_nand_correct_data(struct mtd_info
*mtd
, u_char
*dat
,
305 u_char
*read_ecc
, u_char
*calc_ecc
)
307 struct nand_chip
*chip
= mtd_to_nand(mtd
);
308 int ret
, bitflips
= 0;
310 ret
= bf5xx_nand_correct_data_256(mtd
, dat
, read_ecc
, calc_ecc
);
316 /* If ecc size is 512, correct second 256 bytes */
317 if (chip
->ecc
.size
== 512) {
321 ret
= bf5xx_nand_correct_data_256(mtd
, dat
, read_ecc
, calc_ecc
);
331 static void bf5xx_nand_enable_hwecc(struct mtd_info
*mtd
, int mode
)
336 static int bf5xx_nand_calculate_ecc(struct mtd_info
*mtd
,
337 const u_char
*dat
, u_char
*ecc_code
)
339 struct bf5xx_nand_info
*info
= mtd_to_nand_info(mtd
);
340 struct nand_chip
*chip
= mtd_to_nand(mtd
);
345 /* first 3 bytes ECC code for 256 page size */
346 ecc0
= bfin_read_NFC_ECC0();
347 ecc1
= bfin_read_NFC_ECC1();
349 code
[0] = (ecc0
& 0x7ff) | ((ecc1
& 0x7ff) << 11);
351 dev_dbg(info
->device
, "returning ecc 0x%08x\n", code
[0]);
354 memcpy(ecc_code
, p
, 3);
356 /* second 3 bytes ECC code for 512 ecc size */
357 if (chip
->ecc
.size
== 512) {
358 ecc0
= bfin_read_NFC_ECC2();
359 ecc1
= bfin_read_NFC_ECC3();
360 code
[1] = (ecc0
& 0x7ff) | ((ecc1
& 0x7ff) << 11);
362 /* second 3 bytes in ecc_code for second 256
363 * bytes of 512 page size
365 p
= (u8
*) (code
+ 1);
366 memcpy((ecc_code
+ 3), p
, 3);
367 dev_dbg(info
->device
, "returning ecc 0x%08x\n", code
[1]);
374 * PIO mode for buffer writing and reading
376 static void bf5xx_nand_read_buf(struct mtd_info
*mtd
, uint8_t *buf
, int len
)
382 * Data reads are requested by first writing to NFC_DATA_RD
383 * and then reading back from NFC_READ.
385 for (i
= 0; i
< len
; i
++) {
386 while (bfin_read_NFC_STAT() & WB_FULL
)
389 /* Contents do not matter */
390 bfin_write_NFC_DATA_RD(0x0000);
393 while ((bfin_read_NFC_IRQSTAT() & RD_RDY
) != RD_RDY
)
396 buf
[i
] = bfin_read_NFC_READ();
398 val
= bfin_read_NFC_IRQSTAT();
400 bfin_write_NFC_IRQSTAT(val
);
405 static uint8_t bf5xx_nand_read_byte(struct mtd_info
*mtd
)
409 bf5xx_nand_read_buf(mtd
, &val
, 1);
414 static void bf5xx_nand_write_buf(struct mtd_info
*mtd
,
415 const uint8_t *buf
, int len
)
419 for (i
= 0; i
< len
; i
++) {
420 while (bfin_read_NFC_STAT() & WB_FULL
)
423 bfin_write_NFC_DATA_WR(buf
[i
]);
428 static void bf5xx_nand_read_buf16(struct mtd_info
*mtd
, uint8_t *buf
, int len
)
431 u16
*p
= (u16
*) buf
;
435 * Data reads are requested by first writing to NFC_DATA_RD
436 * and then reading back from NFC_READ.
438 bfin_write_NFC_DATA_RD(0x5555);
442 for (i
= 0; i
< len
; i
++)
443 p
[i
] = bfin_read_NFC_READ();
446 static void bf5xx_nand_write_buf16(struct mtd_info
*mtd
,
447 const uint8_t *buf
, int len
)
450 u16
*p
= (u16
*) buf
;
453 for (i
= 0; i
< len
; i
++)
454 bfin_write_NFC_DATA_WR(p
[i
]);
460 * DMA functions for buffer writing and reading
462 static irqreturn_t
bf5xx_nand_dma_irq(int irq
, void *dev_id
)
464 struct bf5xx_nand_info
*info
= dev_id
;
466 clear_dma_irqstat(CH_NFC
);
468 complete(&info
->dma_completion
);
473 static void bf5xx_nand_dma_rw(struct mtd_info
*mtd
,
474 uint8_t *buf
, int is_read
)
476 struct bf5xx_nand_info
*info
= mtd_to_nand_info(mtd
);
477 struct nand_chip
*chip
= mtd_to_nand(mtd
);
480 dev_dbg(info
->device
, " mtd->%p, buf->%p, is_read %d\n",
484 * Before starting a dma transfer, be sure to invalidate/flush
485 * the cache over the address range of your DMA buffer to
486 * prevent cache coherency problems. Otherwise very subtle bugs
487 * can be introduced to your driver.
490 invalidate_dcache_range((unsigned int)buf
,
491 (unsigned int)(buf
+ chip
->ecc
.size
));
493 flush_dcache_range((unsigned int)buf
,
494 (unsigned int)(buf
+ chip
->ecc
.size
));
497 * This register must be written before each page is
498 * transferred to generate the correct ECC register
501 bfin_write_NFC_RST(ECC_RST
);
503 while (bfin_read_NFC_RST() & ECC_RST
)
507 clear_dma_irqstat(CH_NFC
);
509 /* setup DMA register with Blackfin DMA API */
510 set_dma_config(CH_NFC
, 0x0);
511 set_dma_start_addr(CH_NFC
, (unsigned long) buf
);
513 /* The DMAs have different size on BF52x and BF54x */
515 set_dma_x_count(CH_NFC
, (chip
->ecc
.size
>> 1));
516 set_dma_x_modify(CH_NFC
, 2);
517 val
= DI_EN
| WDSIZE_16
;
521 set_dma_x_count(CH_NFC
, (chip
->ecc
.size
>> 2));
522 set_dma_x_modify(CH_NFC
, 4);
523 val
= DI_EN
| WDSIZE_32
;
525 /* setup write or read operation */
528 set_dma_config(CH_NFC
, val
);
531 /* Start PAGE read/write operation */
533 bfin_write_NFC_PGCTL(PG_RD_START
);
535 bfin_write_NFC_PGCTL(PG_WR_START
);
536 wait_for_completion(&info
->dma_completion
);
539 static void bf5xx_nand_dma_read_buf(struct mtd_info
*mtd
,
540 uint8_t *buf
, int len
)
542 struct bf5xx_nand_info
*info
= mtd_to_nand_info(mtd
);
543 struct nand_chip
*chip
= mtd_to_nand(mtd
);
545 dev_dbg(info
->device
, "mtd->%p, buf->%p, int %d\n", mtd
, buf
, len
);
547 if (len
== chip
->ecc
.size
)
548 bf5xx_nand_dma_rw(mtd
, buf
, 1);
550 bf5xx_nand_read_buf(mtd
, buf
, len
);
553 static void bf5xx_nand_dma_write_buf(struct mtd_info
*mtd
,
554 const uint8_t *buf
, int len
)
556 struct bf5xx_nand_info
*info
= mtd_to_nand_info(mtd
);
557 struct nand_chip
*chip
= mtd_to_nand(mtd
);
559 dev_dbg(info
->device
, "mtd->%p, buf->%p, len %d\n", mtd
, buf
, len
);
561 if (len
== chip
->ecc
.size
)
562 bf5xx_nand_dma_rw(mtd
, (uint8_t *)buf
, 0);
564 bf5xx_nand_write_buf(mtd
, buf
, len
);
567 static int bf5xx_nand_read_page_raw(struct mtd_info
*mtd
, struct nand_chip
*chip
,
568 uint8_t *buf
, int oob_required
, int page
)
570 bf5xx_nand_read_buf(mtd
, buf
, mtd
->writesize
);
571 bf5xx_nand_read_buf(mtd
, chip
->oob_poi
, mtd
->oobsize
);
576 static int bf5xx_nand_write_page_raw(struct mtd_info
*mtd
,
577 struct nand_chip
*chip
, const uint8_t *buf
, int oob_required
,
580 bf5xx_nand_write_buf(mtd
, buf
, mtd
->writesize
);
581 bf5xx_nand_write_buf(mtd
, chip
->oob_poi
, mtd
->oobsize
);
587 * System initialization functions
589 static int bf5xx_nand_dma_init(struct bf5xx_nand_info
*info
)
597 init_completion(&info
->dma_completion
);
599 /* Request NFC DMA channel */
600 ret
= request_dma(CH_NFC
, "BF5XX NFC driver");
602 dev_err(info
->device
, " unable to get DMA channel\n");
607 /* Setup DMAC1 channel mux for NFC which shared with SDH */
608 bfin_write_DMAC1_PERIMUX(bfin_read_DMAC1_PERIMUX() & ~1);
612 set_dma_callback(CH_NFC
, bf5xx_nand_dma_irq
, info
);
614 /* Turn off the DMA channel first */
619 static void bf5xx_nand_dma_remove(struct bf5xx_nand_info
*info
)
621 /* Free NFC DMA channel */
627 * BF5XX NFC hardware initialization
629 * - clear interrupt status
631 static int bf5xx_nand_hw_init(struct bf5xx_nand_info
*info
)
635 struct bf5xx_nand_platform
*plat
= info
->platform
;
637 /* setup NFC_CTL register */
638 dev_info(info
->device
,
639 "data_width=%d, wr_dly=%d, rd_dly=%d\n",
640 (plat
->data_width
? 16 : 8),
641 plat
->wr_dly
, plat
->rd_dly
);
643 val
= (1 << NFC_PG_SIZE_OFFSET
) |
644 (plat
->data_width
<< NFC_NWIDTH_OFFSET
) |
645 (plat
->rd_dly
<< NFC_RDDLY_OFFSET
) |
646 (plat
->wr_dly
<< NFC_WRDLY_OFFSET
);
647 dev_dbg(info
->device
, "NFC_CTL is 0x%04x\n", val
);
649 bfin_write_NFC_CTL(val
);
652 /* clear interrupt status */
653 bfin_write_NFC_IRQMASK(0x0);
655 val
= bfin_read_NFC_IRQSTAT();
656 bfin_write_NFC_IRQSTAT(val
);
659 /* DMA initialization */
660 if (bf5xx_nand_dma_init(info
))
667 * Device management interface
669 static int bf5xx_nand_add_partition(struct bf5xx_nand_info
*info
)
671 struct mtd_info
*mtd
= nand_to_mtd(&info
->chip
);
672 struct mtd_partition
*parts
= info
->platform
->partitions
;
673 int nr
= info
->platform
->nr_partitions
;
675 return mtd_device_register(mtd
, parts
, nr
);
678 static int bf5xx_nand_remove(struct platform_device
*pdev
)
680 struct bf5xx_nand_info
*info
= to_nand_info(pdev
);
682 /* first thing we need to do is release all our mtds
683 * and their partitions, then go through freeing the
686 nand_release(nand_to_mtd(&info
->chip
));
688 peripheral_free_list(bfin_nfc_pin_req
);
689 bf5xx_nand_dma_remove(info
);
694 static int bf5xx_nand_scan(struct mtd_info
*mtd
)
696 struct nand_chip
*chip
= mtd_to_nand(mtd
);
699 ret
= nand_scan_ident(mtd
, 1, NULL
);
705 * for nand with page size > 512B, think it as several sections with 512B
707 if (likely(mtd
->writesize
>= 512)) {
708 chip
->ecc
.size
= 512;
710 chip
->ecc
.strength
= 2;
712 chip
->ecc
.size
= 256;
714 chip
->ecc
.strength
= 1;
715 bfin_write_NFC_CTL(bfin_read_NFC_CTL() & ~(1 << NFC_PG_SIZE_OFFSET
));
720 return nand_scan_tail(mtd
);
726 * called by device layer when it finds a device matching
727 * one our driver can handled. This code checks to see if
728 * it can allocate all necessary resources then calls the
729 * nand layer to look for devices
731 static int bf5xx_nand_probe(struct platform_device
*pdev
)
733 struct bf5xx_nand_platform
*plat
= to_nand_plat(pdev
);
734 struct bf5xx_nand_info
*info
= NULL
;
735 struct nand_chip
*chip
= NULL
;
736 struct mtd_info
*mtd
= NULL
;
739 dev_dbg(&pdev
->dev
, "(%p)\n", pdev
);
742 dev_err(&pdev
->dev
, "no platform specific information\n");
746 if (peripheral_request_list(bfin_nfc_pin_req
, DRV_NAME
)) {
747 dev_err(&pdev
->dev
, "requesting Peripherals failed\n");
751 info
= devm_kzalloc(&pdev
->dev
, sizeof(*info
), GFP_KERNEL
);
757 platform_set_drvdata(pdev
, info
);
759 spin_lock_init(&info
->controller
.lock
);
760 init_waitqueue_head(&info
->controller
.wq
);
762 info
->device
= &pdev
->dev
;
763 info
->platform
= plat
;
765 /* initialise chip data struct */
767 mtd
= nand_to_mtd(&info
->chip
);
769 if (plat
->data_width
)
770 chip
->options
|= NAND_BUSWIDTH_16
;
772 chip
->options
|= NAND_CACHEPRG
| NAND_SKIP_BBTSCAN
;
774 chip
->read_buf
= (plat
->data_width
) ?
775 bf5xx_nand_read_buf16
: bf5xx_nand_read_buf
;
776 chip
->write_buf
= (plat
->data_width
) ?
777 bf5xx_nand_write_buf16
: bf5xx_nand_write_buf
;
779 chip
->read_byte
= bf5xx_nand_read_byte
;
781 chip
->cmd_ctrl
= bf5xx_nand_hwcontrol
;
782 chip
->dev_ready
= bf5xx_nand_devready
;
784 nand_set_controller_data(chip
, mtd
);
785 chip
->controller
= &info
->controller
;
787 chip
->IO_ADDR_R
= (void __iomem
*) NFC_READ
;
788 chip
->IO_ADDR_W
= (void __iomem
*) NFC_DATA_WR
;
790 chip
->chip_delay
= 0;
792 /* initialise mtd info data struct */
793 mtd
->dev
.parent
= &pdev
->dev
;
795 /* initialise the hardware */
796 err
= bf5xx_nand_hw_init(info
);
800 /* setup hardware ECC data struct */
802 #ifdef CONFIG_MTD_NAND_BF5XX_BOOTROM_ECC
803 chip
->ecc
.layout
= &bootrom_ecclayout
;
805 chip
->read_buf
= bf5xx_nand_dma_read_buf
;
806 chip
->write_buf
= bf5xx_nand_dma_write_buf
;
807 chip
->ecc
.calculate
= bf5xx_nand_calculate_ecc
;
808 chip
->ecc
.correct
= bf5xx_nand_correct_data
;
809 chip
->ecc
.mode
= NAND_ECC_HW
;
810 chip
->ecc
.hwctl
= bf5xx_nand_enable_hwecc
;
811 chip
->ecc
.read_page_raw
= bf5xx_nand_read_page_raw
;
812 chip
->ecc
.write_page_raw
= bf5xx_nand_write_page_raw
;
814 chip
->ecc
.mode
= NAND_ECC_SOFT
;
817 /* scan hardware nand chip and setup mtd info data struct */
818 if (bf5xx_nand_scan(mtd
)) {
820 goto out_err_nand_scan
;
823 #ifdef CONFIG_MTD_NAND_BF5XX_BOOTROM_ECC
824 chip
->badblockpos
= 63;
827 /* add NAND partition */
828 bf5xx_nand_add_partition(info
);
830 dev_dbg(&pdev
->dev
, "initialised ok\n");
834 bf5xx_nand_dma_remove(info
);
836 peripheral_free_list(bfin_nfc_pin_req
);
841 /* driver device registration */
842 static struct platform_driver bf5xx_nand_driver
= {
843 .probe
= bf5xx_nand_probe
,
844 .remove
= bf5xx_nand_remove
,
850 module_platform_driver(bf5xx_nand_driver
);
852 MODULE_LICENSE("GPL");
853 MODULE_AUTHOR(DRV_AUTHOR
);
854 MODULE_DESCRIPTION(DRV_DESC
);
855 MODULE_ALIAS("platform:" DRV_NAME
);