-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MTD] sharpsl-nand: use platform_data for model-specific values
Add platform_data which holds all model-specific values, like badblocks pattern, oobinfo, partitions. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
- Loading branch information
Dmitry Baryshkov
committed
Oct 29, 2008
1 parent
c176d0c
commit a20c7ab
Showing
2 changed files
with
104 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* SharpSL NAND support | ||
* | ||
* Copyright (C) 2008 Dmitry Baryshkov | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/mtd/nand.h> | ||
#include <linux/mtd/nand_ecc.h> | ||
#include <linux/mtd/partitions.h> | ||
|
||
struct sharpsl_nand_platform_data { | ||
struct nand_bbt_descr *badblock_pattern; | ||
struct nand_ecclayout *ecc_layout; | ||
struct mtd_partition *partitions; | ||
unsigned int nr_partitions; | ||
}; |