-
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.
yaml --- r: 45340 b: refs/heads/master c: 61e84f9 h: refs/heads/master v: v3
- Loading branch information
Ralf Baechle
committed
Jan 8, 2007
1 parent
c6bc69d
commit 9c6655e
Showing
18 changed files
with
132 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 74bda9310fe9776f3d940057ac2e7881214577d6 | ||
refs/heads/master: 61e84f99877fa8caaf1be86d51d825406e8d8bc1 |
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
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,63 @@ | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* | ||
* Copyright (C) 2006 MIPS Technologies, Inc. | ||
* written by Ralf Baechle <ralf@linux-mips.org> | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/mtd/partitions.h> | ||
#include <linux/mtd/physmap.h> | ||
#include <mtd/mtd-abi.h> | ||
|
||
static struct mtd_partition malta_mtd_partitions[] = { | ||
{ | ||
.name = "YAMON", | ||
.offset = 0x0, | ||
.size = 0x100000, | ||
.mask_flags = MTD_WRITEABLE | ||
}, { | ||
.name = "User FS", | ||
.offset = 0x100000, | ||
.size = 0x2e0000 | ||
}, { | ||
.name = "Board Config", | ||
.offset = 0x3e0000, | ||
.size = 0x020000, | ||
.mask_flags = MTD_WRITEABLE | ||
} | ||
}; | ||
|
||
static struct physmap_flash_data malta_flash_data = { | ||
.width = 4, | ||
.nr_parts = ARRAY_SIZE(malta_mtd_partitions), | ||
.parts = malta_mtd_partitions | ||
}; | ||
|
||
static struct resource malta_flash_resource = { | ||
.start = 0x1e000000, | ||
.end = 0x1e3fffff, | ||
.flags = IORESOURCE_MEM | ||
}; | ||
|
||
static struct platform_device malta_flash = { | ||
.name = "physmap-flash", | ||
.id = 0, | ||
.dev = { | ||
.platform_data = &malta_flash_data, | ||
}, | ||
.num_resources = 1, | ||
.resource = &malta_flash_resource, | ||
}; | ||
|
||
static int __init malta_mtd_init(void) | ||
{ | ||
platform_device_register(&malta_flash); | ||
|
||
return 0; | ||
} | ||
|
||
module_init(malta_mtd_init) |
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.