summaryrefslogtreecommitdiff
path: root/target/linux/ifxmips/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-12-27 11:53:52 +0000
committerJohn Crispin <john@openwrt.org>2007-12-27 11:53:52 +0000
commitabf8d4c8cb333009260293eb7b4027d02a0d0ee2 (patch)
tree150c822b3dce247ea0f0bb0a3fea9e4c531fbddd /target/linux/ifxmips/files
parent6343c3be59208e4db2bf425c64c7613d295e9e22 (diff)
downloadmtk-20170518-abf8d4c8cb333009260293eb7b4027d02a0d0ee2.zip
mtk-20170518-abf8d4c8cb333009260293eb7b4027d02a0d0ee2.tar.gz
mtk-20170518-abf8d4c8cb333009260293eb7b4027d02a0d0ee2.tar.bz2
add twinpass detection to ifxmips
SVN-Revision: 9956
Diffstat (limited to 'target/linux/ifxmips/files')
-rw-r--r--target/linux/ifxmips/files/arch/mips/ifxmips/board.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
index f048321..580dc6a 100644
--- a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
+++ b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
@@ -27,7 +27,7 @@
#include <linux/mtd/physmap.h>
#include <linux/kernel.h>
#include <linux/reboot.h>
-#include <linux/platform_device.h>
+#include <linux/platform_device.h>
#include <asm/bootinfo.h>
#include <asm/reboot.h>
#include <asm/time.h>
@@ -41,6 +41,7 @@
#define BOARD_DANUBE_CHIPID 0x10129083
#define BOARD_TWINPASS "Twinpass"
+#define BOARD_TWINPASS_CHIPID 0x3012D083
#define BOARD_DANUBE "Danube"
@@ -71,7 +72,7 @@ static struct platform_device ifxmips_mii[] =
.name = "ifxmips_mii0",
},
};
-
+
static struct physmap_flash_data ifxmips_mtd_data = {
.width = 2,
};
@@ -103,6 +104,9 @@ get_system_type (void)
{
case BOARD_DANUBE_CHIPID:
return BOARD_DANUBE;
+
+ case BOARD_TWINPASS_CHIPID:
+ return BOARD_TWINPASS;
}
return BOARD_SYSTEM_TYPE;