Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: drivers/mtd/nand/nand_base.c

Issue 6623073: Chromium: arm: tegra: Add NAND support (Closed) Base URL: http://git.chromium.org/git/u-boot-next.git@chromeos-v2010.09
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« board/tegra2/generic/Makefile ('K') | « board/tegra2/harmony/Makefile ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * drivers/mtd/nand.c 2 * drivers/mtd/nand.c
3 * 3 *
4 * Overview: 4 * Overview:
5 * This is the generic MTD driver for NAND flash devices. It should be 5 * This is the generic MTD driver for NAND flash devices. It should be
6 * capable of working with almost all NAND chips currently available. 6 * capable of working with almost all NAND chips currently available.
7 * Basic support for AG-AND chips is provided. 7 * Basic support for AG-AND chips is provided.
8 * 8 *
9 * Additional technical information is available on 9 * Additional technical information is available on
10 * http://www.linux-mtd.infradead.org/doc/nand.html 10 * http://www.linux-mtd.infradead.org/doc/nand.html
(...skipping 2929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2940 chip->ecc.write_page = nand_write_page_swecc; 2940 chip->ecc.write_page = nand_write_page_swecc;
2941 chip->ecc.read_page_raw = nand_read_page_raw; 2941 chip->ecc.read_page_raw = nand_read_page_raw;
2942 chip->ecc.write_page_raw = nand_write_page_raw; 2942 chip->ecc.write_page_raw = nand_write_page_raw;
2943 chip->ecc.read_oob = nand_read_oob_std; 2943 chip->ecc.read_oob = nand_read_oob_std;
2944 chip->ecc.write_oob = nand_write_oob_std; 2944 chip->ecc.write_oob = nand_write_oob_std;
2945 chip->ecc.size = 256; 2945 chip->ecc.size = 256;
2946 chip->ecc.bytes = 3; 2946 chip->ecc.bytes = 3;
2947 break; 2947 break;
2948 2948
2949 case NAND_ECC_NONE: 2949 case NAND_ECC_NONE:
2950 #ifndef CONFIG_NAND_TEGRA2
Tom Warren 2011/03/08 20:43:08 Are we using NAND_ECC_NONE? If so, why, if it's no
2950 printk(KERN_WARNING "NAND_ECC_NONE selected by board driver. " 2951 printk(KERN_WARNING "NAND_ECC_NONE selected by board driver. "
2951 "This is not recommended !!\n"); 2952 "This is not recommended !!\n");
2953 #endif
2952 chip->ecc.read_page = nand_read_page_raw; 2954 chip->ecc.read_page = nand_read_page_raw;
2953 chip->ecc.write_page = nand_write_page_raw; 2955 chip->ecc.write_page = nand_write_page_raw;
2954 chip->ecc.read_oob = nand_read_oob_std; 2956 chip->ecc.read_oob = nand_read_oob_std;
2955 chip->ecc.read_page_raw = nand_read_page_raw; 2957 chip->ecc.read_page_raw = nand_read_page_raw;
2956 chip->ecc.write_page_raw = nand_write_page_raw; 2958 chip->ecc.write_page_raw = nand_write_page_raw;
2957 chip->ecc.write_oob = nand_write_oob_std; 2959 chip->ecc.write_oob = nand_write_oob_std;
2958 chip->ecc.size = mtd->writesize; 2960 chip->ecc.size = mtd->writesize;
2959 chip->ecc.bytes = 0; 2961 chip->ecc.bytes = 0;
2960 break; 2962 break;
2961 2963
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 led_trigger_unregister_simple(nand_led_trigger); 3128 led_trigger_unregister_simple(nand_led_trigger);
3127 } 3129 }
3128 3130
3129 module_init(nand_base_init); 3131 module_init(nand_base_init);
3130 module_exit(nand_base_exit); 3132 module_exit(nand_base_exit);
3131 3133
3132 MODULE_LICENSE("GPL"); 3134 MODULE_LICENSE("GPL");
3133 MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com>, Thomas Gleixner <tglx @linutronix.de>"); 3135 MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com>, Thomas Gleixner <tglx @linutronix.de>");
3134 MODULE_DESCRIPTION("Generic NAND flash driver code"); 3136 MODULE_DESCRIPTION("Generic NAND flash driver code");
3135 #endif 3137 #endif
OLDNEW
« board/tegra2/generic/Makefile ('K') | « board/tegra2/harmony/Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698