Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nandflash.c File Reference
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>
#include <arch/memmap.h>
#include <hwregs/reg_map.h>
#include <hwregs/reg_rdwr.h>
#include <hwregs/pio_defs.h>
#include <pinmux.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  mtd_info_wrapper
 

Macros

#define MANUAL_ALE_CLE_CONTROL   1
 
#define regf_ALE   a0
 
#define regf_CLE   a1
 
#define regf_NCE   ce0_n
 
#define CLE_BIT   10
 
#define ALE_BIT   11
 
#define CE_BIT   12
 
#define PIN_BITMASK   ((1 << CE_BIT) | (1 << CLE_BIT) | (1 << ALE_BIT))
 

Functions

struct mtd_info *__init crisv32_nand_flash_probe (void)
 

Macro Definition Documentation

#define ALE_BIT   11

Definition at line 35 of file nandflash.c.

#define CE_BIT   12

Definition at line 36 of file nandflash.c.

#define CLE_BIT   10

Definition at line 34 of file nandflash.c.

#define MANUAL_ALE_CLE_CONTROL   1

Definition at line 28 of file nandflash.c.

#define PIN_BITMASK   ((1 << CE_BIT) | (1 << CLE_BIT) | (1 << ALE_BIT))

Definition at line 44 of file nandflash.c.

#define regf_ALE   a0

Definition at line 30 of file nandflash.c.

#define regf_CLE   a1

Definition at line 31 of file nandflash.c.

#define regf_NCE   ce0_n

Definition at line 32 of file nandflash.c.

Function Documentation

struct mtd_info* __init crisv32_nand_flash_probe ( void  )
read

Definition at line 105 of file nandflash.c.