Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36cd4fb5 authored by Adrian Hunter's avatar Adrian Hunter Committed by David Woodhouse
Browse files

[MTD] [OneNAND] Add OMAP2 / OMAP3 OneNAND driver



This driver had resided in the OMAP tree but is now to be in MTD.

Original authors were:
	Jarkko Lavinen <jarkko.lavinen@nokia.com> and Juha Yrjölä
	IRQ and DMA support written by Timo Teras

Signed-off-by: default avatarAdrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent bb0eb217
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,13 @@ config MTD_ONENAND_GENERIC
	help
	help
	  Support for OneNAND flash via platform device driver.
	  Support for OneNAND flash via platform device driver.


config MTD_ONENAND_OMAP2
	tristate "OneNAND on OMAP2/OMAP3 support"
	depends on MTD_ONENAND && (ARCH_OMAP2 || ARCH_OMAP3)
	help
	  Support for a OneNAND flash device connected to an OMAP2/OMAP3 CPU
	  via the GPMC memory controller.

config MTD_ONENAND_OTP
config MTD_ONENAND_OTP
	bool "OneNAND OTP Support"
	bool "OneNAND OTP Support"
	select HAVE_MTD_OTP
	select HAVE_MTD_OTP
+1 −0
Original line number Original line Diff line number Diff line
@@ -7,6 +7,7 @@ obj-$(CONFIG_MTD_ONENAND) += onenand.o


# Board specific.
# Board specific.
obj-$(CONFIG_MTD_ONENAND_GENERIC)	+= generic.o
obj-$(CONFIG_MTD_ONENAND_GENERIC)	+= generic.o
obj-$(CONFIG_MTD_ONENAND_OMAP2)		+= omap2.o


# Simulator
# Simulator
obj-$(CONFIG_MTD_ONENAND_SIM)		+= onenand_sim.o
obj-$(CONFIG_MTD_ONENAND_SIM)		+= onenand_sim.o
+777 −0

File added.

Preview size limit exceeded, changes collapsed.

+6 −1
Original line number Original line Diff line number Diff line
@@ -16,6 +16,11 @@ struct omap_onenand_platform_data {
	int			gpio_irq;
	int			gpio_irq;
	struct mtd_partition	*parts;
	struct mtd_partition	*parts;
	int			nr_parts;
	int			nr_parts;
	int                     (*onenand_setup)(void __iomem *);
	int                     (*onenand_setup)(void __iomem *, int freq);
	int			dma_channel;
	int			dma_channel;
};
};

int omap2_onenand_rephase(void);

#define ONENAND_MAX_PARTITIONS 8