add_88f6702a_cpu.diff
author andy
Fri, 06 Sep 2013 15:28:49 +0200
changeset 3 f2f1be1cc4ba
parent 1 3b0d3467d641
permissions -rw-r--r--
Add remaining LEDs
Add remaining Buttons
Fix display of CPU identification
1
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     1
--- linux-3.1.arch-orig/arch/arm/mach-kirkwood/common.c	2011-10-24 09:10:05.000000000 +0200
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     2
+++ linux-3.1/arch/arm/mach-kirkwood/common.c	2013-09-02 19:15:48.772407684 +0200
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     3
@@ -432,6 +432,11 @@ static char * __init kirkwood_id(void)
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     4
 			return "MV88F6282-Rev-A0";
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     5
 		else
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     6
 			return "MV88F6282-Rev-Unsupported";
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     7
+    } else if (dev == MV88F6702_DEV_ID) {
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
     8
+        if (rev == MV88F6702_REV_A1)
3
f2f1be1cc4ba Add remaining LEDs
andy
parents: 1
diff changeset
     9
+            return "MV88F6702-Rev-A1";
1
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    10
+        else
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    11
+            return "MV88F6702-Rev-Unsupported";
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    12
 	} else {
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    13
 		return "Device-Unknown";
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    14
 	}
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    15
--- linux-3.1.arch-orig/arch/arm/mach-kirkwood/mpp.c	2011-10-24 09:10:05.000000000 +0200
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    16
+++ linux-3.1/arch/arm/mach-kirkwood/mpp.c	2013-09-02 21:58:56.841873166 +0200
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    17
@@ -27,7 +27,8 @@ static unsigned int __init kirkwood_vari
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    18
 	if ((dev == MV88F6281_DEV_ID && rev >= MV88F6281_REV_A0) ||
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    19
 	    (dev == MV88F6282_DEV_ID))
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    20
 		return MPP_F6281_MASK;
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    21
-	if (dev == MV88F6192_DEV_ID && rev >= MV88F6192_REV_A0)
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    22
+	if ((dev == MV88F6192_DEV_ID && rev >= MV88F6192_REV_A0) ||
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    23
+	    (dev == MV88F6702_DEV_ID))
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    24
 		return MPP_F6192_MASK;
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    25
 	if (dev == MV88F6180_DEV_ID)
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    26
 		return MPP_F6180_MASK;
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    27
--- linux-3.1.arch-orig/arch/arm/mach-kirkwood/include/mach/kirkwood.h	2011-10-24 09:10:05.000000000 +0200
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    28
+++ linux-3.1/arch/arm/mach-kirkwood/include/mach/kirkwood.h	2013-09-02 19:15:58.945740460 +0200
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    29
@@ -135,4 +135,7 @@
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    30
 
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    31
 #define MV88F6282_DEV_ID	0x6282
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    32
 #define MV88F6282_REV_A0	0
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    33
+
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    34
+#define MV88F6702_DEV_ID    0x6702
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    35
+#define MV88F6702_REV_A1    3
3b0d3467d641 Add CPU support for 88F6702A. Fixme: There is a typo in the board id!
andy
parents:
diff changeset
    36
 #endif