Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
board-flash.c File Reference
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/mtd/physmap.h>
#include <linux/io.h>
#include <plat/cpu.h>
#include <plat/gpmc.h>
#include <linux/platform_data/mtd-nand-omap2.h>
#include <linux/platform_data/mtd-onenand-omap2.h>
#include <plat/tc.h>
#include "common.h"
#include "board-flash.h"

Go to the source code of this file.

Macros

#define REG_FPGA_REV   0x10
 
#define REG_FPGA_DIP_SWITCH_INPUT2   0x60
 
#define MAX_SUPPORTED_GPMC_CONFIG   3
 
#define DEBUG_BASE   0x08000000 /* debug board */
 
#define FLASH_SIZE_SDPV1   SZ_64M /* NOR flash (64 Meg aligned) */
 
#define FLASH_SIZE_SDPV2   SZ_128M /* NOR flash (256 Meg aligned) */
 

Functions

void __init board_flash_init (struct flash_partitions partition_info[], char chip_sel_board[][GPMC_CS_NUM], int nand_type)
 

Macro Definition Documentation

#define DEBUG_BASE   0x08000000 /* debug board */

Definition at line 33 of file board-flash.c.

#define FLASH_SIZE_SDPV1   SZ_64M /* NOR flash (64 Meg aligned) */

Definition at line 36 of file board-flash.c.

#define FLASH_SIZE_SDPV2   SZ_128M /* NOR flash (256 Meg aligned) */

Definition at line 37 of file board-flash.c.

#define MAX_SUPPORTED_GPMC_CONFIG   3

Definition at line 31 of file board-flash.c.

#define REG_FPGA_DIP_SWITCH_INPUT2   0x60

Definition at line 30 of file board-flash.c.

#define REG_FPGA_REV   0x10

Definition at line 29 of file board-flash.c.

Function Documentation

void __init board_flash_init ( struct flash_partitions  partition_info[],
char  chip_sel_board[][GPMC_CS_NUM],
int  nand_type 
)

board_flash_init - Identify devices connected to GPMC and register.

Returns
- void.

Definition at line 187 of file board-flash.c.