mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 08:25:01 +07:00
2203747c97
Platform data for device drivers should be defined in include/linux/platform_data/*.h, not in the architecture and platform specific directories. This moves such data out of the omap include directories Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Tony Lindgren <tony@atomide.com> Cc: Kevin Hilman <khilman@ti.com> Cc: "Benoît Cousson" <b-cousson@ti.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Ohad Ben-Cohen <ohad@wizery.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Omar Ramirez Luna <omar.ramirez@ti.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com> Cc: Jarkko Nikula <jarkko.nikula@bitmer.com> Cc: Liam Girdwood <lrg@ti.com> Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: Jean Pihet <j-pihet@ti.com> Cc: J Keerthy <j-keerthy@ti.com> Cc: linux-omap@vger.kernel.org
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/*
|
|
* arch/arm/plat-omap/include/mach/onenand.h
|
|
*
|
|
* Copyright (C) 2006 Nokia Corporation
|
|
* Author: Juha Yrjola
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
#define ONENAND_SYNC_READ (1 << 0)
|
|
#define ONENAND_SYNC_READWRITE (1 << 1)
|
|
|
|
struct onenand_freq_info {
|
|
u16 maf_id;
|
|
u16 dev_id;
|
|
u16 ver_id;
|
|
};
|
|
|
|
struct omap_onenand_platform_data {
|
|
int cs;
|
|
int gpio_irq;
|
|
struct mtd_partition *parts;
|
|
int nr_parts;
|
|
int (*onenand_setup)(void __iomem *, int *freq_ptr);
|
|
int (*get_freq)(const struct onenand_freq_info *freq_info,
|
|
bool *clk_dep);
|
|
int dma_channel;
|
|
u8 flags;
|
|
u8 regulator_can_sleep;
|
|
u8 skip_initial_unlocking;
|
|
};
|
|
|
|
#define ONENAND_MAX_PARTITIONS 8
|
|
|
|
#if defined(CONFIG_MTD_ONENAND_OMAP2) || \
|
|
defined(CONFIG_MTD_ONENAND_OMAP2_MODULE)
|
|
|
|
extern void gpmc_onenand_init(struct omap_onenand_platform_data *d);
|
|
|
|
#else
|
|
|
|
#define board_onenand_data NULL
|
|
|
|
static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d)
|
|
{
|
|
}
|
|
|
|
#endif
|