forked from torvalds/linux
-
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.
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (53 commits) [MTD] struct device - replace bus_id with dev_name(), dev_set_name() [MTD] [NOR] Fixup for Numonyx M29W128 chips [MTD] mtdpart: Make ecc_stats more realistic. powerpc/85xx: TQM8548: Update DTS file for multi-chip support powerpc: NAND: FSL UPM: document new bindings [MTD] [NAND] FSL-UPM: Add wait flags to support board/chip specific delays [MTD] [NAND] FSL-UPM: add multi chip support [MTD] [NOR] Add device parent info to physmap_of [MTD] [NAND] Add support for NAND on the Socrates board [MTD] [NAND] Add support for 4KiB pages. [MTD] sysfs support should not depend on CONFIG_PROC_FS [MTD] [NAND] Add parent info for CAFÉ controller [MTD] support driver model updates [MTD] driver model updates (part 2) [MTD] driver model updates [MTD] [NAND] move gen_nand's probe function to .devinit.text [MTD] [MAPS] move sa1100 flash's probe function to .devinit.text [MTD] fix use after free in register_mtd_blktrans [MTD] [MAPS] Drop now unused sharpsl-flash map [MTD] ofpart: Check name property to determine partition nodes. ... Manually fix trivial conflict in drivers/mtd/maps/Makefile
- Loading branch information
Showing
78 changed files
with
4,080 additions
and
996 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* mach-davinci/nand.h | ||
* | ||
* Copyright © 2006 Texas Instruments. | ||
* | ||
* Ported to 2.6.23 Copyright © 2008 by | ||
* Sander Huijsen <[email protected]> | ||
* Troy Kisky <[email protected]> | ||
* Dirk Behme <[email protected]> | ||
* | ||
* -------------------------------------------------------------------------- | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
*/ | ||
|
||
#ifndef __ARCH_ARM_DAVINCI_NAND_H | ||
#define __ARCH_ARM_DAVINCI_NAND_H | ||
|
||
#include <linux/mtd/nand.h> | ||
|
||
#define NRCSR_OFFSET 0x00 | ||
#define AWCCR_OFFSET 0x04 | ||
#define A1CR_OFFSET 0x10 | ||
#define NANDFCR_OFFSET 0x60 | ||
#define NANDFSR_OFFSET 0x64 | ||
#define NANDF1ECC_OFFSET 0x70 | ||
|
||
/* 4-bit ECC syndrome registers */ | ||
#define NAND_4BIT_ECC_LOAD_OFFSET 0xbc | ||
#define NAND_4BIT_ECC1_OFFSET 0xc0 | ||
#define NAND_4BIT_ECC2_OFFSET 0xc4 | ||
#define NAND_4BIT_ECC3_OFFSET 0xc8 | ||
#define NAND_4BIT_ECC4_OFFSET 0xcc | ||
#define NAND_ERR_ADD1_OFFSET 0xd0 | ||
#define NAND_ERR_ADD2_OFFSET 0xd4 | ||
#define NAND_ERR_ERRVAL1_OFFSET 0xd8 | ||
#define NAND_ERR_ERRVAL2_OFFSET 0xdc | ||
|
||
/* NOTE: boards don't need to use these address bits | ||
* for ALE/CLE unless they support booting from NAND. | ||
* They're used unless platform data overrides them. | ||
*/ | ||
#define MASK_ALE 0x08 | ||
#define MASK_CLE 0x10 | ||
|
||
struct davinci_nand_pdata { /* platform_data */ | ||
uint32_t mask_ale; | ||
uint32_t mask_cle; | ||
|
||
/* for packages using two chipselects */ | ||
uint32_t mask_chipsel; | ||
|
||
/* board's default static partition info */ | ||
struct mtd_partition *parts; | ||
unsigned nr_parts; | ||
|
||
/* none == NAND_ECC_NONE (strongly *not* advised!!) | ||
* soft == NAND_ECC_SOFT | ||
* 1-bit == NAND_ECC_HW | ||
* 4-bit == NAND_ECC_HW_SYNDROME (not on all chips) | ||
*/ | ||
nand_ecc_modes_t ecc_mode; | ||
|
||
/* e.g. NAND_BUSWIDTH_16 or NAND_USE_FLASH_BBT */ | ||
unsigned options; | ||
}; | ||
|
||
#endif /* __ARCH_ARM_DAVINCI_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
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,30 @@ | ||
/* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* (C) Copyright TOSHIBA CORPORATION 2007 | ||
*/ | ||
#ifndef __ASM_TXX9_NDFMC_H | ||
#define __ASM_TXX9_NDFMC_H | ||
|
||
#define NDFMC_PLAT_FLAG_USE_BSPRT 0x01 | ||
#define NDFMC_PLAT_FLAG_NO_RSTR 0x02 | ||
#define NDFMC_PLAT_FLAG_HOLDADD 0x04 | ||
#define NDFMC_PLAT_FLAG_DUMMYWRITE 0x08 | ||
|
||
struct txx9ndfmc_platform_data { | ||
unsigned int shift; | ||
unsigned int gbus_clock; | ||
unsigned int hold; /* hold time in nanosecond */ | ||
unsigned int spw; /* strobe pulse width in nanosecond */ | ||
unsigned int flags; | ||
unsigned char ch_mask; /* available channel bitmask */ | ||
unsigned char wp_mask; /* write-protect bitmask */ | ||
unsigned char wide_mask; /* 16bit-nand bitmask */ | ||
}; | ||
|
||
void txx9_ndfmc_init(unsigned long baseaddr, | ||
const struct txx9ndfmc_platform_data *plat_data); | ||
|
||
#endif /* __ASM_TXX9_NDFMC_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
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
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.