Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
mtd
spear_smi.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2010 ST Microelectronics
3
* Shiraz Hashim <
[email protected]
>
4
*
5
* This file is licensed under the terms of the GNU General Public
6
* License version 2. This program is licensed "as is" without any
7
* warranty of any kind, whether express or implied.
8
*/
9
10
#ifndef __MTD_SPEAR_SMI_H
11
#define __MTD_SPEAR_SMI_H
12
13
#include <linux/types.h>
14
#include <
linux/mtd/mtd.h
>
15
#include <
linux/mtd/partitions.h
>
16
#include <
linux/platform_device.h
>
17
#include <
linux/of.h
>
18
19
/* max possible slots for serial-nor flash chip in the SMI controller */
20
#define MAX_NUM_FLASH_CHIP 4
21
22
/* macro to define partitions for flash devices */
23
#define DEFINE_PARTS(n, of, s) \
24
{ \
25
.name = n, \
26
.offset = of, \
27
.size = s, \
28
}
29
42
struct
spear_smi_flash_info
{
43
char
*
name
;
44
unsigned
long
mem_base
;
45
unsigned
long
size
;
46
struct
mtd_partition
*
partitions
;
47
int
nr_partitions
;
48
u8
fast_mode
;
49
};
50
58
struct
spear_smi_plat_data
{
59
unsigned
long
clk_rate
;
60
int
num_flashes
;
61
struct
spear_smi_flash_info
*
board_flash_info
;
62
struct
device_node
*
np
[
MAX_NUM_FLASH_CHIP
];
63
};
64
65
#endif
/* __MTD_SPEAR_SMI_H */
Generated on Thu Jan 10 2013 14:52:03 for Linux Kernel by
1.8.2