ARM: OMAP2+: gpmc-nand: update gpmc-nand regs
authorAfzal Mohammed <afzal@ti.com>
Thu, 30 Aug 2012 19:53:22 +0000 (12:53 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 30 Aug 2012 19:53:22 +0000 (12:53 -0700)
GPMC has NAND registers, update nand platform data with those details
so that NAND driver can configure those by itself instead of using
exported symbols.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc-nand.c
arch/arm/plat-omap/include/plat/nand.h

index 386dec8d2351635c2004e9ff082048c2a09264de..d4e803cf549fc3e8aeb283ad798ac426769e6fbe 100644 (file)
@@ -108,6 +108,8 @@ int __init gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data)
                gpmc_cs_configure(gpmc_nand_data->cs, GPMC_CONFIG_RDY_BSY, 1);
        }
 
+       gpmc_update_nand_reg(&gpmc_nand_data->reg, gpmc_nand_data->cs);
+
        err = platform_device_register(&gpmc_nand_device);
        if (err < 0) {
                dev_err(dev, "Unable to register NAND device\n");
index 67fc5060183ea28f137f20862863e62cb99ccf74..86e4d9c67bff75b28d56726024542a5cd69882cb 100644 (file)
@@ -29,6 +29,7 @@ struct omap_nand_platform_data {
        unsigned long           phys_base;
        int                     devsize;
        enum omap_ecc           ecc_opt;
+       struct gpmc_nand_regs   reg;
 };
 
 /* minimum size for IO mapping */