Blame view

kernel/linux-rt-4.4.41/include/linux/platform_data/mtd-onenand-omap2.h 829 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  /*
   * 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