projects
/
openwrt
/
staging
/
dedeckeh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6343c3b
)
add twinpass detection to ifxmips
author
John Crispin
<john@openwrt.org>
Thu, 27 Dec 2007 11:53:52 +0000
(11:53 +0000)
committer
John Crispin
<john@openwrt.org>
Thu, 27 Dec 2007 11:53:52 +0000
(11:53 +0000)
SVN-Revision: 9956
target/linux/ifxmips/files/arch/mips/ifxmips/board.c
patch
|
blob
|
history
diff --git
a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
index f048321bdf313df5e9786a07bee7bea09b1162be..580dc6a8f7bad30e19ff67770bd7d68caf05b9d4 100644
(file)
--- 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/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>
#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_DANUBE_CHIPID 0x10129083
#define BOARD_TWINPASS "Twinpass"
+#define BOARD_TWINPASS_CHIPID 0x3012D083
#define BOARD_DANUBE "Danube"
#define BOARD_DANUBE "Danube"
@@
-71,7
+72,7
@@
static struct platform_device ifxmips_mii[] =
.name = "ifxmips_mii0",
},
};
.name = "ifxmips_mii0",
},
};
-
+
static struct physmap_flash_data ifxmips_mtd_data = {
.width = 2,
};
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_DANUBE_CHIPID:
return BOARD_DANUBE;
+
+ case BOARD_TWINPASS_CHIPID:
+ return BOARD_TWINPASS;
}
return BOARD_SYSTEM_TYPE;
}
return BOARD_SYSTEM_TYPE;