diff options
author | Afzal Mohammed <afzal@ti.com> | 2012-10-04 10:19:04 (GMT) |
---|---|---|
committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 09:12:10 (GMT) |
commit | 2fdf0c98969fdac8f7b191d4988e2e436717c857 (patch) | |
tree | fc773bafa813e819b5d604aeffade1373093ef68 /include/linux | |
parent | 3852ccd66a9bcb2aa6f46bce5442b6d8d08e5b5d (diff) | |
download | linux-fsl-qoriq-2fdf0c98969fdac8f7b191d4988e2e436717c857.tar.xz |
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')
-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 e1965fe..24d32ca 100644 --- a/include/linux/platform_data/mtd-nand-omap2.h +++ b/include/linux/platform_data/mtd-nand-omap2.h @@ -13,6 +13,8 @@ #include <linux/mtd/partitions.h> +#define GPMC_BCH_NUM_REMAINDER 8 + enum nand_io { NAND_OMAP_PREFETCH_POLLED = 0, /* prefetch polled mode, default */ NAND_OMAP_POLLED, /* polled mode, without prefetch */ @@ -43,7 +45,10 @@ struct gpmc_nand_regs { void __iomem *gpmc_ecc_control; void __iomem *gpmc_ecc_size_config; void __iomem *gpmc_ecc1_result; - void __iomem *gpmc_bch_result0; + void __iomem *gpmc_bch_result0[GPMC_BCH_NUM_REMAINDER]; + void __iomem *gpmc_bch_result1[GPMC_BCH_NUM_REMAINDER]; + void __iomem *gpmc_bch_result2[GPMC_BCH_NUM_REMAINDER]; + void __iomem *gpmc_bch_result3[GPMC_BCH_NUM_REMAINDER]; }; struct omap_nand_platform_data { |