arch/arm/mach-omap/include/mach/gpmc.h File Reference


Detailed Description

FileName: include/asm-arm/arch-omap/gpmc.h

OMAP's General Purpose Memory Controller(GPMC) provides features allowing us to communicate with memory devices such as NOR, NAND, OneNAND, SRAM etc.. This file defines certain generic parameters allowing us to configure the same painlessly.


Data Structures

struct  gpmc_config
 Generic GPMC configuration structure to be used to configure a chip select. More...

Functions

void gpmc_generic_init (unsigned int cfg)
void gpmc_cs_config (char cs, struct gpmc_config *config)


Define Documentation

#define GPMC_REG ( REGNAME   )     (OMAP_GPMC_BASE + GPMC_##REGNAME)

GPMC Reg Wrapper.

Referenced by get_gpmc0_base(), gpmc_cs_config(), and gpmc_generic_init().


Function Documentation

void gpmc_cs_config ( char  cs,
struct gpmc_config config 
)

Configuration for a specific chip select.

Configuration for a specific chip select.

Parameters:
cs chip select index
config gpmc_config structure describing the CS params
Returns:
void

void gpmc_generic_init ( unsigned int  cfg  ) 

Generic configuration - will reset all the cs configs.

Generic configuration - will reset all the cs configs.

if you choose otherwise, Use gpmc registers to modify the values. The defaults configured are: No idle, L3 free running, no timeout and no IRQs. we allow for gpmc_config data to be programmed, and will also disable ALL CS configurations

Parameters:
cfg - GPMC_CFG register value
Returns:
void


Generated on Fri Dec 25 14:13:15 2009 for barebox by  doxygen 1.5.6