aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sibyte
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-05-26 19:18:18 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-05-26 19:18:18 +0000
commit11653394e4cf7dcb58049c80c38af8b5df1dc548 (patch)
tree467c4229ad21cd50e5171ff20b4fb5e9f09efc41 /target/linux/sibyte
parentfa455f0cf9c19f7a4c2ef1c70899cec6cac68711 (diff)
downloadupstream-11653394e4cf7dcb58049c80c38af8b5df1dc548.tar.gz
upstream-11653394e4cf7dcb58049c80c38af8b5df1dc548.tar.bz2
upstream-11653394e4cf7dcb58049c80c38af8b5df1dc548.zip
fixup CS0 size for the BCM91125E
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16098 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sibyte')
-rw-r--r--target/linux/sibyte/patches/001-rhone_physmap.patch20
1 files changed, 19 insertions, 1 deletions
diff --git a/target/linux/sibyte/patches/001-rhone_physmap.patch b/target/linux/sibyte/patches/001-rhone_physmap.patch
index e724a419eb..e0d774e96a 100644
--- a/target/linux/sibyte/patches/001-rhone_physmap.patch
+++ b/target/linux/sibyte/patches/001-rhone_physmap.patch
@@ -1,6 +1,14 @@
--- a/arch/mips/sibyte/swarm/platform.c
+++ b/arch/mips/sibyte/swarm/platform.c
-@@ -83,3 +83,61 @@ static int __init swarm_pata_init(void)
+@@ -5,6 +5,7 @@
+ #include <linux/platform_device.h>
+ #include <linux/ata_platform.h>
+
++#include <asm/addrspace.h>
+ #include <asm/sibyte/board.h>
+ #include <asm/sibyte/sb1250_genbus.h>
+ #include <asm/sibyte/sb1250_regs.h>
+@@ -83,3 +84,71 @@ static int __init swarm_pata_init(void)
device_initcall(swarm_pata_init);
#endif /* defined(CONFIG_SIBYTE_SWARM) || defined(CONFIG_SIBYTE_LITTLESUR) */
@@ -10,6 +18,15 @@
+#include <linux/mtd/partitions.h>
+#include <linux/mtd/physmap.h>
+
++/* The board has 16MB flash but CFE sets up only 2MB */
++#define PHYS_TO_K1(a) CKSEG1ADDR(a)
++#define BOOTROM_SIZE 0x100
++
++static void fixup_cs0_size(void)
++{
++ SBWRITECSR(((A_IO_EXT_CS_BASE(0)) + R_IO_EXT_MULT_SIZE), BOOTROM_SIZE);
++}
++
+static struct mtd_partition flash_parts[] = {
+ {
+ .name = "cfe",
@@ -54,6 +71,7 @@
+
+static int __init flash_setup(void)
+{
++ fixup_cs0_size();
+ platform_device_register(&flash_device);
+
+ return 0;