#include <asm/arch/memmap.h>#include <asm/arch/hwregs/reg_map.h>#include <asm/arch/hwregs/reg_rdwr.h>#include <asm/arch/hwregs/gio_defs.h>#include <asm/arch/hwregs/bif_core_defs.h>#include <linux/errno.h>#include "mtd.h"#include "nand.h"#include "lib.h"Include dependency graph for nandflash.c:

Go to the source code of this file.
Defines | |
| #define | CE_BIT 4 |
| #define | CLE_BIT 5 |
| #define | ALE_BIT 6 |
| #define | BY_BIT 7 |
Functions | |
| static void | crisv32_hwcontrol (struct mtd_info *mtd, int cmd) |
| int | crisv32_device_ready (struct mtd_info *mtd) |
| mtd_info *__init | crisv32_nand_flash_probe (void) |
Variables | |
| static struct mtd_info * | crisv32_mtd = NULL |
| #define ALE_BIT 6 |
Definition at line 44 of file nandflash.c.
| #define BY_BIT 7 |
Definition at line 45 of file nandflash.c.
| #define CE_BIT 4 |
Definition at line 42 of file nandflash.c.
| #define CLE_BIT 5 |
Definition at line 43 of file nandflash.c.
| int crisv32_device_ready | ( | struct mtd_info * | mtd | ) |
| static void crisv32_hwcontrol | ( | struct mtd_info * | mtd, | |
| int | cmd | |||
| ) | [static] |
Definition at line 51 of file nandflash.c.
References ALE_BIT, CE_BIT, CLE_BIT, flags, local_irq_restore, local_irq_save, NAND_CTL_CLRALE, NAND_CTL_CLRCLE, NAND_CTL_CLRNCE, NAND_CTL_SETALE, NAND_CTL_SETCLE, and NAND_CTL_SETNCE.
| struct mtd_info* __init crisv32_nand_flash_probe | ( | void | ) |
Definition at line 95 of file nandflash.c.
References __iomem, ALE_BIT, BY_BIT, CE_BIT, nand_chip::chip_delay, CLE_BIT, nand_chip::cmd_ctrl, crisv32_device_ready(), crisv32_hwcontrol(), crisv32_mtd, nand_chip::dev_ready, nand_chip::ecc, nand_chip::eccmode, GFP_KERNEL, nand_chip::hwcontrol, nand_chip::IO_ADDR_R, nand_chip::IO_ADDR_W, ioremap, iounmap, kfree, kmalloc, memset(), nand_ecc_ctrl::mode, NAND_ECC_SOFT, nand_scan(), NAND_USE_FLASH_BBT, nand_chip::options, port_dummy_addr, and printk.
struct mtd_info* crisv32_mtd = NULL [static] |
Definition at line 47 of file nandflash.c.
1.5.1