Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101469
b: refs/heads/master
c: 9528356
h: refs/heads/master
i:
  101467: 4dc022d
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jul 15, 2008
1 parent c0940f9 commit 7e62691
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 105 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b22609442a32050e37cec5f6735376af61e68a1
refs/heads/master: 9528356308ecd2fb6368472615996a8602c02964
51 changes: 50 additions & 1 deletion trunk/arch/mips/au1000/mtx-1/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <linux/gpio.h>
#include <linux/gpio_keys.h>
#include <linux/input.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <mtd/mtd-abi.h>

static struct gpio_keys_button mtx1_gpio_button[] = {
{
Expand Down Expand Up @@ -85,10 +88,56 @@ static struct platform_device mtx1_gpio_leds = {
}
};

static struct mtd_partition mtx1_mtd_partitions[] = {
{
.name = "filesystem",
.size = 0x01C00000,
.offset = 0,
},
{
.name = "yamon",
.size = 0x00100000,
.offset = MTDPART_OFS_APPEND,
.mask_flags = MTD_WRITEABLE,
},
{
.name = "kernel",
.size = 0x002c0000,
.offset = MTDPART_OFS_APPEND,
},
{
.name = "yamon env",
.size = 0x00040000,
.offset = MTDPART_OFS_APPEND,
},
};

static struct physmap_flash_data mtx1_flash_data = {
.width = 4,
.nr_parts = 4,
.parts = mtx1_mtd_partitions,
};

static struct resource mtx1_mtd_resource = {
.start = 0x1e000000,
.end = 0x1fffffff,
.flags = IORESOURCE_MEM,
};

static struct platform_device mtx1_mtd = {
.name = "physmap-flash",
.dev = {
.platform_data = &mtx1_flash_data,
},
.num_resources = 1,
.resource = &mtx1_mtd_resource,
};

static struct __initdata platform_device * mtx1_devs[] = {
&mtx1_gpio_leds,
&mtx1_wdt,
&mtx1_button
&mtx1_button,
&mtx1_mtd,
};

static int __init mtx1_register_devices(void)
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/mtd/maps/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,6 @@ config MTD_ALCHEMY
help
Flash memory access on AMD Alchemy Pb/Db/RDK Reference Boards

config MTD_MTX1
tristate "4G Systems MTX-1 Flash device"
depends on MIPS_MTX1 && MTD_CFI
help
Flash memory access on 4G Systems MTX-1 Board. If you have one of
these boards and would like to use the flash chips on it, say 'Y'.

config MTD_DILNETPC
tristate "CFI Flash device mapped on DIL/Net PC"
depends on X86 && MTD_CONCAT && MTD_PARTITIONS && MTD_CFI_INTELEXT
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/mtd/maps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@ obj-$(CONFIG_MTD_DMV182) += dmv182.o
obj-$(CONFIG_MTD_SHARP_SL) += sharpsl-flash.o
obj-$(CONFIG_MTD_PLATRAM) += plat-ram.o
obj-$(CONFIG_MTD_OMAP_NOR) += omap_nor.o
obj-$(CONFIG_MTD_MTX1) += mtx-1_flash.o
obj-$(CONFIG_MTD_INTEL_VR_NOR) += intel_vr_nor.o
95 changes: 0 additions & 95 deletions trunk/drivers/mtd/maps/mtx-1_flash.c

This file was deleted.

0 comments on commit 7e62691

Please sign in to comment.