From 43459c9d92d8c290bf189e61b096ef03eb7d98b4 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 27 Dec 2007 11:53:52 +0000 Subject: [PATCH] add twinpass detection to ifxmips SVN-Revision: 9956 --- target/linux/ifxmips/files/arch/mips/ifxmips/board.c | 8 ++++++-- 1 file 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 f048321bdf..580dc6a8f7 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 #include #include -#include +#include #include #include #include @@ -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; -- 2.30.2