Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
of_mtd.c File Reference
#include <linux/kernel.h>
#include <linux/of_mtd.h>
#include <linux/mtd/nand.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

int of_get_nand_ecc_mode (struct device_node *np)
 
 EXPORT_SYMBOL_GPL (of_get_nand_ecc_mode)
 
int of_get_nand_bus_width (struct device_node *np)
 
 EXPORT_SYMBOL_GPL (of_get_nand_bus_width)
 
bool of_get_nand_on_flash_bbt (struct device_node *np)
 
 EXPORT_SYMBOL_GPL (of_get_nand_on_flash_bbt)
 

Function Documentation

EXPORT_SYMBOL_GPL ( of_get_nand_ecc_mode  )
EXPORT_SYMBOL_GPL ( of_get_nand_bus_width  )
EXPORT_SYMBOL_GPL ( of_get_nand_on_flash_bbt  )
int of_get_nand_bus_width ( struct device_node np)

of_get_nand_bus_width - Get nand bus witdh for given device_node : Pointer to the given device_node

return bus width option, or errno in error case.

Definition at line 58 of file of_mtd.c.

int of_get_nand_ecc_mode ( struct device_node np)

of_get_nand_ecc_mode - Get nand ecc mode for given device_node : Pointer to the given device_node

The function gets ecc mode string from property 'nand-ecc-mode', and return its index in nand_ecc_modes table, or errno in error case.

Definition at line 35 of file of_mtd.c.

bool of_get_nand_on_flash_bbt ( struct device_node np)

of_get_nand_on_flash_bbt - Get nand on flash bbt for given device_node : Pointer to the given device_node

return true if present false other wise

Definition at line 81 of file of_mtd.c.