diff options
| author | Afzal Mohammed <afzal@ti.com> | 2012-10-04 06:19:04 -0400 |
|---|---|---|
| committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 05:12:10 -0400 |
| commit | 2fdf0c98969fdac8f7b191d4988e2e436717c857 (patch) | |
| tree | fc773bafa813e819b5d604aeffade1373093ef68 /include/linux/platform_data | |
| parent | 3852ccd66a9bcb2aa6f46bce5442b6d8d08e5b5d (diff) | |
ARM: OMAP2+: gpmc: nand register helper bch update
Update helper function that provides gpmc-nand register
details for nand driver with bch register information.
Using this nand driver can be made self sufficient to
handle remaining gpmc-nand operations by itself instead
of relying on gpmc exported nand functions.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/mtd-nand-omap2.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/platform_data/mtd-nand-omap2.h b/include/linux/platform_data/mtd-nand-omap2.h index e1965fe581d..24d32ca34be 100644 --- a/include/linux/platform_data/mtd-nand-omap2.h +++ b/include/linux/platform_data/mtd-nand-omap2.h | |||
| @@ -13,6 +13,8 @@ | |||
| 13 | 13 | ||
| 14 | #include <linux/mtd/partitions.h> | 14 | #include <linux/mtd/partitions.h> |
| 15 | 15 | ||
| 16 | #define GPMC_BCH_NUM_REMAINDER 8 | ||
| 17 | |||
| 16 | enum nand_io { | 18 | enum nand_io { |
| 17 | NAND_OMAP_PREFETCH_POLLED = 0, /* prefetch polled mode, default */ | 19 | NAND_OMAP_PREFETCH_POLLED = 0, /* prefetch polled mode, default */ |
| 18 | NAND_OMAP_POLLED, /* polled mode, without prefetch */ | 20 | NAND_OMAP_POLLED, /* polled mode, without prefetch */ |
| @@ -43,7 +45,10 @@ struct gpmc_nand_regs { | |||
| 43 | void __iomem *gpmc_ecc_control; | 45 | void __iomem *gpmc_ecc_control; |
| 44 | void __iomem *gpmc_ecc_size_config; | 46 | void __iomem *gpmc_ecc_size_config; |
| 45 | void __iomem *gpmc_ecc1_result; | 47 | void __iomem *gpmc_ecc1_result; |
| 46 | void __iomem *gpmc_bch_result0; | 48 | void __iomem *gpmc_bch_result0[GPMC_BCH_NUM_REMAINDER]; |
| 49 | void __iomem *gpmc_bch_result1[GPMC_BCH_NUM_REMAINDER]; | ||
| 50 | void __iomem *gpmc_bch_result2[GPMC_BCH_NUM_REMAINDER]; | ||
| 51 | void __iomem *gpmc_bch_result3[GPMC_BCH_NUM_REMAINDER]; | ||
| 47 | }; | 52 | }; |
| 48 | 53 | ||
| 49 | struct omap_nand_platform_data { | 54 | struct omap_nand_platform_data { |
