diff options
Diffstat (limited to 'arch')
65 files changed, 281 insertions, 547 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 30750c54bd..87cee341eb 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
| @@ -537,6 +537,7 @@ config QEMU | |||
| 537 | select SYS_HAS_CPU_MIPS32_R1 | 537 | select SYS_HAS_CPU_MIPS32_R1 |
| 538 | select SYS_SUPPORTS_32BIT_KERNEL | 538 | select SYS_SUPPORTS_32BIT_KERNEL |
| 539 | select SYS_SUPPORTS_BIG_ENDIAN | 539 | select SYS_SUPPORTS_BIG_ENDIAN |
| 540 | select SYS_SUPPORTS_LITTLE_ENDIAN | ||
| 540 | select ARCH_SPARSEMEM_ENABLE | 541 | select ARCH_SPARSEMEM_ENABLE |
| 541 | help | 542 | help |
| 542 | Qemu is a software emulator which among other architectures also | 543 | Qemu is a software emulator which among other architectures also |
| @@ -1841,6 +1842,14 @@ config RWSEM_GENERIC_SPINLOCK | |||
| 1841 | bool | 1842 | bool |
| 1842 | default y | 1843 | default y |
| 1843 | 1844 | ||
| 1845 | config LOCKDEP_SUPPORT | ||
| 1846 | bool | ||
| 1847 | default y | ||
| 1848 | |||
| 1849 | config STACKTRACE_SUPPORT | ||
| 1850 | bool | ||
| 1851 | default y | ||
| 1852 | |||
| 1844 | source "init/Kconfig" | 1853 | source "init/Kconfig" |
| 1845 | 1854 | ||
| 1846 | menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)" | 1855 | menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)" |
diff --git a/arch/mips/basler/excite/excite_flashtest.c b/arch/mips/basler/excite/excite_flashtest.c deleted file mode 100644 index f0024a8e32..0000000000 --- a/arch/mips/basler/excite/excite_flashtest.c +++ /dev/null | |||
| @@ -1,294 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2005 by Basler Vision Technologies AG | ||
| 3 | * Author: Thies Moeller <thies.moeller@baslerweb.com> | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include <linux/module.h> | ||
| 21 | #include <linux/types.h> | ||
| 22 | #include <linux/init.h> | ||
| 23 | #include <linux/kernel.h> | ||
| 24 | #include <linux/string.h> | ||
| 25 | #include <linux/ioport.h> | ||
| 26 | #include <linux/device.h> | ||
| 27 | #include <linux/delay.h> | ||
| 28 | #include <linux/err.h> | ||
| 29 | #include <linux/kernel.h> | ||
| 30 | |||
| 31 | #include <excite.h> | ||
| 32 | |||
| 33 | #include <asm/io.h> | ||
| 34 | |||
| 35 | #include <linux/mtd/mtd.h> | ||
| 36 | #include <linux/mtd/nand.h> | ||
| 37 | #include <linux/mtd/nand_ecc.h> | ||
| 38 | #include <linux/mtd/partitions.h> | ||
| 39 | #include <asm/rm9k-ocd.h> // for ocd_write | ||
| 40 | #include <linux/workqueue.h> // for queue | ||
| 41 | |||
| 42 | #include "excite_nandflash.h" | ||
| 43 | #include "nandflash.h" | ||
| 44 | |||
| 45 | #define PFX "excite flashtest: " | ||
| 46 | typedef void __iomem *io_reg_t; | ||
| 47 | |||
| 48 | #define io_readb(__a__) __raw_readb((__a__)) | ||
| 49 | #define io_writeb(__v__, __a__) __raw_writeb((__v__), (__a__)) | ||
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | static inline const struct resource *excite_nandflash_get_resource( | ||
| 54 | struct platform_device *d, unsigned long flags, const char *basename) | ||
| 55 | { | ||
| 56 | const char fmt[] = "%s_%u"; | ||
| 57 | char buf[80]; | ||
| 58 | |||
| 59 | if (unlikely(snprintf(buf, sizeof buf, fmt, basename, d->id) >= sizeof buf)) | ||
| 60 | return NULL; | ||
| 61 | |||
| 62 | return platform_get_resource_byname(d, flags, buf); | ||
| 63 | } | ||
| 64 | |||
| 65 | static inline io_reg_t | ||
| 66 | excite_nandflash_map_regs(struct platform_device *d, const char *basename) | ||
| 67 | { | ||
| 68 | void *result = NULL; | ||
| 69 | const struct resource *const r = | ||
| 70 | excite_nandflash_get_resource(d, IORESOURCE_MEM, basename); | ||
| 71 | if (r) | ||
| 72 | result = ioremap_nocache(r->start, r->end + 1 - r->start); | ||
| 73 | return result; | ||
| 74 | } | ||
| 75 | |||
| 76 | /* controller and mtd information */ | ||
| 77 | |||
| 78 | struct excite_nandflash_drvdata { | ||
| 79 | struct mtd_info board_mtd; | ||
| 80 | struct nand_chip board_chip; | ||
| 81 | io_reg_t regs; | ||
| 82 | }; | ||
| 83 | |||
| 84 | |||
| 85 | |||
