~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/mtd-nand-pxa3xx.h

Version: ~ [ linux-5.9 ] ~ [ linux-5.8.14 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.70 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.150 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.200 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.238 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.238 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef __ASM_ARCH_PXA3XX_NAND_H
  2 #define __ASM_ARCH_PXA3XX_NAND_H
  3 
  4 #include <linux/mtd/mtd.h>
  5 #include <linux/mtd/partitions.h>
  6 
  7 struct pxa3xx_nand_timing {
  8         unsigned int    tCH;  /* Enable signal hold time */
  9         unsigned int    tCS;  /* Enable signal setup time */
 10         unsigned int    tWH;  /* ND_nWE high duration */
 11         unsigned int    tWP;  /* ND_nWE pulse time */
 12         unsigned int    tRH;  /* ND_nRE high duration */
 13         unsigned int    tRP;  /* ND_nRE pulse width */
 14         unsigned int    tR;   /* ND_nWE high to ND_nRE low for read */
 15         unsigned int    tWHR; /* ND_nWE high to ND_nRE low for status read */
 16         unsigned int    tAR;  /* ND_ALE low to ND_nRE low delay */
 17 };
 18 
 19 struct pxa3xx_nand_flash {
 20         char            *name;
 21         uint32_t        chip_id;
 22         unsigned int    page_per_block; /* Pages per block (PG_PER_BLK) */
 23         unsigned int    page_size;      /* Page size in bytes (PAGE_SZ) */
 24         unsigned int    flash_width;    /* Width of Flash memory (DWIDTH_M) */
 25         unsigned int    dfc_width;      /* Width of flash controller(DWIDTH_C) */
 26         unsigned int    num_blocks;     /* Number of physical blocks in Flash */
 27 
 28         struct pxa3xx_nand_timing *timing;      /* NAND Flash timing */
 29 };
 30 
 31 /*
 32  * Current pxa3xx_nand controller has two chip select which
 33  * both be workable.
 34  *
 35  * Notice should be taken that:
 36  * When you want to use this feature, you should not enable the
 37  * keep configuration feature, for two chip select could be
 38  * attached with different nand chip. The different page size
 39  * and timing requirement make the keep configuration impossible.
 40  */
 41 
 42 /* The max num of chip select current support */
 43 #define NUM_CHIP_SELECT         (2)
 44 struct pxa3xx_nand_platform_data {
 45 
 46         /* the data flash bus is shared between the Static Memory
 47          * Controller and the Data Flash Controller,  the arbiter
 48          * controls the ownership of the bus
 49          */
 50         int     enable_arbiter;
 51 
 52         /* allow platform code to keep OBM/bootloader defined NFC config */
 53         int     keep_config;
 54 
 55         /* indicate how many chip selects will be used */
 56         int     num_cs;
 57 
 58         /* use an flash-based bad block table */
 59         bool    flash_bbt;
 60 
 61         const struct mtd_partition              *parts[NUM_CHIP_SELECT];
 62         unsigned int                            nr_parts[NUM_CHIP_SELECT];
 63 
 64         const struct pxa3xx_nand_flash *        flash;
 65         size_t                                  num_flash;
 66 };
 67 
 68 extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info);
 69 #endif /* __ASM_ARCH_PXA3XX_NAND_H */
 70 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp