Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit d126d01

Browse files
Afzal Mohammedtmlind
authored andcommitted
ARM: OMAP2+: gpmc-nand: update gpmc-nand regs
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>
1 parent 52bd138 commit d126d01

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/arm/mach-omap2/gpmc-nand.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ int __init gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data)
108108
gpmc_cs_configure(gpmc_nand_data->cs, GPMC_CONFIG_RDY_BSY, 1);
109109
}
110110

111+
gpmc_update_nand_reg(&gpmc_nand_data->reg, gpmc_nand_data->cs);
112+
111113
err = platform_device_register(&gpmc_nand_device);
112114
if (err < 0) {
113115
dev_err(dev, "Unable to register NAND device\n");

arch/arm/plat-omap/include/plat/nand.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ struct omap_nand_platform_data {
2929
unsigned long phys_base;
3030
int devsize;
3131
enum omap_ecc ecc_opt;
32+
struct gpmc_nand_regs reg;
3233
};
3334

3435
/* minimum size for IO mapping */

0 commit comments

Comments
 (0)