-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: nand: driver for Nomadik 8815 SoC (on NHK8815 board)
Signed-off-by: Alessandro Rubini <rubini@unipv.it> Acked-by: Andrea Gallo <andrea.gallo@stericsson.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
Alessandro Rubini
authored and
David Woodhouse
committed
Sep 20, 2009
1 parent
6469f54
commit 6323471
Showing
7 changed files
with
395 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
/* Definitions for the Nomadik FSMC "Flexible Static Memory controller" */ | ||
|
||
#ifndef __ASM_ARCH_FSMC_H | ||
#define __ASM_ARCH_FSMC_H | ||
|
||
#include <mach/hardware.h> | ||
/* | ||
* Register list | ||
*/ | ||
|
||
/* bus control reg. and bus timing reg. for CS0..CS3 */ | ||
#define FSMC_BCR(x) (NOMADIK_FSMC_VA + (x << 3)) | ||
#define FSMC_BTR(x) (NOMADIK_FSMC_VA + (x << 3) + 0x04) | ||
|
||
/* PC-card and NAND: | ||
* PCR = control register | ||
* PMEM = memory timing | ||
* PATT = attribute timing | ||
* PIO = I/O timing | ||
* PECCR = ECC result | ||
*/ | ||
#define FSMC_PCR(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x00) | ||
#define FSMC_PMEM(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x08) | ||
#define FSMC_PATT(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x0c) | ||
#define FSMC_PIO(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x10) | ||
#define FSMC_PECCR(x) (NOMADIK_FSMC_VA + ((2 + x) << 5) + 0x14) | ||
|
||
#endif /* __ASM_ARCH_FSMC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __ASM_ARCH_NAND_H | ||
#define __ASM_ARCH_NAND_H | ||
|
||
struct nomadik_nand_platform_data { | ||
struct mtd_partition *parts; | ||
int nparts; | ||
int options; | ||
int (*init) (void); | ||
int (*exit) (void); | ||
}; | ||
|
||
#define NAND_IO_DATA 0x40000000 | ||
#define NAND_IO_CMD 0x40800000 | ||
#define NAND_IO_ADDR 0x41000000 | ||
|
||
#endif /* __ASM_ARCH_NAND_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.