1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 03:32:25 +02:00

return the correct system type for Aruba

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3958 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
kaloz 2006-06-15 22:17:32 +00:00
parent b739c888df
commit c9bb71ae93

View File

@ -783,7 +783,7 @@ diff -Nur linux-2.6.16/arch/mips/aruba/serial.c linux-2.6.16-owrt/arch/mips/arub
diff -Nur linux-2.6.16/arch/mips/aruba/setup.c linux-2.6.16-owrt/arch/mips/aruba/setup.c
--- linux-2.6.16/arch/mips/aruba/setup.c 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.16-owrt/arch/mips/aruba/setup.c 2006-03-20 14:30:00.000000000 +0100
@@ -0,0 +1,125 @@
@@ -0,0 +1,134 @@
+/**************************************************************************
+ *
+ * BRIEF MODULE DESCRIPTION
@ -905,7 +905,16 @@ diff -Nur linux-2.6.16/arch/mips/aruba/setup.c linux-2.6.16-owrt/arch/mips/aruba
+
+const char *get_system_type(void)
+{
+ return "MIPS IDT32434 - ARUBA";
+ switch (mips_machtype) {
+ case MACH_ARUBA_AP70:
+ return "Aruba AP70";
+ case MACH_ARUBA_AP65:
+ return "Aruba AP65";
+ case MACH_ARUBA_AP60:
+ return "Aruba AP60/AP61";
+ default:
+ return "Aruba UNKNOWN";
+ }
+}
+
+EXPORT_SYMBOL(get_system_type);