Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *
0004  * (C) Copyright TOSHIBA CORPORATION 2007
0005  */
0006 #ifndef __TXX9_NDFMC_H
0007 #define __TXX9_NDFMC_H
0008 
0009 #define NDFMC_PLAT_FLAG_USE_BSPRT   0x01
0010 #define NDFMC_PLAT_FLAG_NO_RSTR     0x02
0011 #define NDFMC_PLAT_FLAG_HOLDADD     0x04
0012 #define NDFMC_PLAT_FLAG_DUMMYWRITE  0x08
0013 
0014 struct txx9ndfmc_platform_data {
0015     unsigned int shift;
0016     unsigned int gbus_clock;
0017     unsigned int hold;      /* hold time in nanosecond */
0018     unsigned int spw;       /* strobe pulse width in nanosecond */
0019     unsigned int flags;
0020     unsigned char ch_mask;      /* available channel bitmask */
0021     unsigned char wp_mask;      /* write-protect bitmask */
0022     unsigned char wide_mask;    /* 16bit-nand bitmask */
0023 };
0024 
0025 void txx9_ndfmc_init(unsigned long baseaddr,
0026              const struct txx9ndfmc_platform_data *plat_data);
0027 
0028 #endif /* __TXX9_NDFMC_H */