1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter&#160;8.&#160;Constants</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="up" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="prev" href="tools.html" title="Chapter&#160;7.&#160;Tools"><link rel="next" href="EEC_selection_constants.html" title="ECC selection constants"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&#160;8.&#160;Constants</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="tools.html">Prev</a>&#160;</td><th width="60%" align="center">&#160;</th><td width="20%" align="right">&#160;<a accesskey="n" href="EEC_selection_constants.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="defines"></a>Chapter&#160;8.&#160;Constants</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="defines.html#Chip_option_constants">Chip option constants</a></span></dt><dd><dl><dt><span class="sect2"><a href="defines.html#Constants_for_chip_id_table">Constants for chip id table</a></span></dt><dt><span class="sect2"><a href="defines.html#Constants_for_runtime_options">Constants for runtime options</a></span></dt></dl></dd><dt><span class="sect1"><a href="EEC_selection_constants.html">ECC selection constants</a></span></dt><dt><span class="sect1"><a href="Hardware_control_related_constants.html">Hardware control related constants</a></span></dt><dt><span class="sect1"><a href="Bad_block_table_constants.html">Bad block table related constants</a></span></dt></dl></div><p>
2     This chapter describes the constants which might be relevant for a driver developer.
3     </p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Chip_option_constants"></a>Chip option constants</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="defines.html#Constants_for_chip_id_table">Constants for chip id table</a></span></dt><dt><span class="sect2"><a href="defines.html#Constants_for_runtime_options">Constants for runtime options</a></span></dt></dl></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="Constants_for_chip_id_table"></a>Constants for chip id table</h3></div></div></div><p>
4		These constants are defined in nand.h. They are ored together to describe
5		the chip functionality.
6     		</p><pre class="programlisting">
7/* Buswitdh is 16 bit */
8#define NAND_BUSWIDTH_16	0x00000002
9/* Device supports partial programming without padding */
10#define NAND_NO_PADDING		0x00000004
11/* Chip has cache program function */
12#define NAND_CACHEPRG		0x00000008
13/* Chip has copy back function */
14#define NAND_COPYBACK		0x00000010
15/* AND Chip which has 4 banks and a confusing page / block 
16 * assignment. See Renesas datasheet for further information */
17#define NAND_IS_AND		0x00000020
18/* Chip has a array of 4 pages which can be read without
19 * additional ready /busy waits */
20#define NAND_4PAGE_ARRAY	0x00000040 
21		</pre><p>
22     		</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="Constants_for_runtime_options"></a>Constants for runtime options</h3></div></div></div><p>
23		These constants are defined in nand.h. They are ored together to describe
24		the functionality.
25     		</p><pre class="programlisting">
26/* The hw ecc generator provides a syndrome instead a ecc value on read 
27 * This can only work if we have the ecc bytes directly behind the 
28 * data bytes. Applies for DOC and AG-AND Renesas HW Reed Solomon generators */
29#define NAND_HWECC_SYNDROME	0x00020000
30		</pre><p>
31     		</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="tools.html">Prev</a>&#160;</td><td width="20%" align="center">&#160;</td><td width="40%" align="right">&#160;<a accesskey="n" href="EEC_selection_constants.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;7.&#160;Tools&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;ECC selection constants</td></tr></table></div></body></html>
32