mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +08:00
dc75eb36c3
Pass an optional device_node pointer in the platform data, which in turn will be put into a mtd_part_parser_data. This way, code that sets up the platform devices can pass along the node from DT so that the partitions can be parsed. For non-DT boards, this change has no effect. Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
37 lines
877 B
C
37 lines
877 B
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.
|
|
*/
|
|
|
|
#ifndef __MTD_ONENAND_OMAP2_H
|
|
#define __MTD_ONENAND_OMAP2_H
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/partitions.h>
|
|
|
|
#define ONENAND_SYNC_READ (1 << 0)
|
|
#define ONENAND_SYNC_READWRITE (1 << 1)
|
|
#define ONENAND_IN_OMAP34XX (1 << 2)
|
|
|
|
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 dma_channel;
|
|
u8 flags;
|
|
u8 regulator_can_sleep;
|
|
u8 skip_initial_unlocking;
|
|
|
|
/* for passing the partitions */
|
|
struct device_node *of_node;
|
|
};
|
|
#endif
|