aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sibyte/patches
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-05-01 21:00:18 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-05-01 21:00:18 +0000
commitf1c9c9c52c2f59243f115d78ef5764a144b183b0 (patch)
tree700bd30f734feb9d9426dcb9380e2a3f46dfb65a /target/linux/sibyte/patches
parent76409c643ff54e7701a0722228e542a58885b50c (diff)
downloadupstream-f1c9c9c52c2f59243f115d78ef5764a144b183b0.tar.gz
upstream-f1c9c9c52c2f59243f115d78ef5764a144b183b0.tar.bz2
upstream-f1c9c9c52c2f59243f115d78ef5764a144b183b0.zip
upgrade sibyte to .30-rc4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15545 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sibyte/patches')
-rw-r--r--target/linux/sibyte/patches/001-rhone_physmap.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/target/linux/sibyte/patches/001-rhone_physmap.patch b/target/linux/sibyte/patches/001-rhone_physmap.patch
new file mode 100644
index 0000000000..fbadaf6ac8
--- /dev/null
+++ b/target/linux/sibyte/patches/001-rhone_physmap.patch
@@ -0,0 +1,64 @@
+--- a/arch/mips/sibyte/swarm/platform.c 2009-04-30 06:48:16.000000000 +0200
++++ b/arch/mips/sibyte/swarm/platform.c 2009-05-01 20:54:50.000000000 +0200
+@@ -83,3 +83,61 @@
+ device_initcall(swarm_pata_init);
+
+ #endif /* defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_SIBYTE_LITTLESUR) */
++
++#ifdef CONFIG_SIBYTE_RHONE
++
++#include <linux/mtd/partitions.h>
++#include <linux/mtd/physmap.h>
++
++static struct mtd_partition flash_parts[] = {
++ {
++ .name = "cfe",
++ .offset = 0x00000000,
++ .size = 0x00200000,
++ .mask_flags = MTD_WRITEABLE,
++ },
++ {
++ .name = "os",
++ .offset = 0x00200000,
++ .size = 0x00d00000,
++ },
++ {
++ .name = "environment",
++ .offset = 0x00f00000,
++ .size = 0x00100000,
++ .mask_flags = MTD_WRITEABLE,
++ },
++};
++
++static struct physmap_flash_data flash_data = {
++ .width = 1,
++ .nr_parts = ARRAY_SIZE(flash_parts),
++ .parts = flash_parts,
++};
++
++static struct resource flash_resource = {
++ .start = 0x1fc00000,
++ .end = 0x20bfffff,
++ .flags = IORESOURCE_MEM,
++};
++
++static struct platform_device flash_device = {
++ .name = "physmap-flash",
++ .id = 0,
++ .resource = &flash_resource,
++ .num_resources = 1,
++ .dev = {
++ .platform_data = &flash_data,
++ },
++};
++
++static int __init flash_setup(void)
++{
++ platform_device_register(&flash_device);
++
++ return 0;
++};
++
++device_initcall(flash_setup);
++
++#endif /* CONFIG_SIBYTE_RHONE */