Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
omap2.c File Reference
#include <linux/device.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h>
#include <linux/mtd/partitions.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/regulator/consumer.h>
#include <asm/mach/flash.h>
#include <plat/gpmc.h>
#include <linux/platform_data/mtd-onenand-omap2.h>
#include <asm/gpio.h>
#include <plat/dma.h>
#include <plat/cpu.h>

Go to the source code of this file.

Data Structures

struct  omap2_onenand
 

Macros

#define DRIVER_NAME   "omap2-onenand"
 
#define ONENAND_BUFRAM_SIZE   (1024 * 5)
 

Functions

int omap3_onenand_read_bufferram (struct mtd_info *mtd, int area, unsigned char *buffer, int offset, size_t count)
 
int omap3_onenand_write_bufferram (struct mtd_info *mtd, int area, const unsigned char *buffer, int offset, size_t count)
 
int omap2_onenand_read_bufferram (struct mtd_info *mtd, int area, unsigned char *buffer, int offset, size_t count)
 
int omap2_onenand_write_bufferram (struct mtd_info *mtd, int area, const unsigned char *buffer, int offset, size_t count)
 
int omap2_onenand_rephase (void)
 
 module_init (omap2_onenand_init)
 
 module_exit (omap2_onenand_exit)
 
 MODULE_ALIAS ("platform:"DRIVER_NAME)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jarkko Lavinen <[email protected]>")
 
 MODULE_DESCRIPTION ("Glue layer for OneNAND flash on OMAP2 / OMAP3")
 

Macro Definition Documentation

#define DRIVER_NAME   "omap2-onenand"

Definition at line 48 of file omap2.c.

#define ONENAND_BUFRAM_SIZE   (1024 * 5)

Definition at line 50 of file omap2.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRIVER_NAME)
MODULE_AUTHOR ( "Jarkko Lavinen <[email protected]>"  )
MODULE_DESCRIPTION ( "Glue layer for OneNAND flash on OMAP2 / OMAP3"  )
module_exit ( omap2_onenand_exit  )
module_init ( omap2_onenand_init  )
MODULE_LICENSE ( "GPL"  )
int omap2_onenand_read_bufferram ( struct mtd_info mtd,
int  area,
unsigned char buffer,
int  offset,
size_t  count 
)
int omap2_onenand_rephase ( void  )

Definition at line 581 of file omap2.c.

int omap2_onenand_write_bufferram ( struct mtd_info mtd,
int  area,
const unsigned char buffer,
int  offset,
size_t  count 
)
int omap3_onenand_read_bufferram ( struct mtd_info mtd,
int  area,
unsigned char buffer,
int  offset,
size_t  count 
)
int omap3_onenand_write_bufferram ( struct mtd_info mtd,
int  area,
const unsigned char buffer,
int  offset,
size_t  count 
)