]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] Orion: MV88F5181 support bits
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 11 Nov 2007 11:05:11 +0000 (12:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:03:55 +0000 (15:03 +0000)
add MV88F5181 support bits required by D-link DNS-323 patch

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Acked-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-orion/addr-map.c
arch/arm/mach-orion/common.c
arch/arm/mach-orion/pci.c
include/asm-arm/arch-orion/orion.h

index ff6e010bccb258b0cfe800357cf218fe6d47951d..488da3811a68041a20bd546728fa6534f21e9272 100644 (file)
@@ -167,7 +167,9 @@ static int __init orion_cpu_win_can_remap(u32 win)
        u32 dev, rev;
 
        orion_pcie_id(&dev, &rev);
-       if ((dev == MV88F5281_DEV_ID && win < 4) || (dev == MV88F5182_DEV_ID && win < 2))
+       if ((dev == MV88F5281_DEV_ID && win < 4)
+           || (dev == MV88F5182_DEV_ID && win < 2)
+           || (dev == MV88F5181_DEV_ID && win < 2))
                return 1;
 
        return 0;
index 12736fd60004131cc2ec2f62530e9366789f96dd..ff34827f82a56eed99d4f1482f4d8865ca1fd30e 100644 (file)
@@ -237,6 +237,12 @@ static void orion_id(u32 *dev, u32 *rev, char **dev_name)
                } else {
                        *dev_name = "MV88F5182-Rev-Unsupported";
                }
+       } else if (*dev == MV88F5181_DEV_ID) {
+               if (*rev == MV88F5181_REV_B1) {
+                       *dev_name = "MV88F5181-Rev-B1";
+               } else {
+                       *dev_name = "MV88F5181-Rev-Unsupported";
+               }
        } else {
                *dev_name = "Device-Unknown";
        }
index cf569c64711272db4e16544be2567eafd16d6529..0498d7c69b30896e423342fa3bf61804c2d2d6f2 100644 (file)
@@ -154,7 +154,7 @@ static int orion_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where,
                        PCIE_CONF_REG(where) | PCIE_CONF_ADDR_EN);
 
        orion_pcie_id(&dev, &rev);
-       if (dev == MV88F5182_DEV_ID) {
+       if (dev == MV88F5181_DEV_ID || dev == MV88F5182_DEV_ID) {
                /* extended register space */
                pcie_addr = ORION_PCIE_WA_BASE;
                pcie_addr |= PCIE_CONF_BUS(bus->number) |
index 061c03c5a17e2b63cad8c407f47d0e969e823e6b..f787f752e58c62d9d7c790a12b8f7cfc654dec0a 100644 (file)
@@ -43,6 +43,9 @@
 /*******************************************************************************
  * Supported Devices & Revisions
  ******************************************************************************/
+/* Orion-1 (88F5181) */
+#define MV88F5181_DEV_ID       0x5181
+#define MV88F5181_REV_B1       3
 /* Orion-NAS (88F5182) */
 #define MV88F5182_DEV_ID       0x5182
 #define MV88F5182_REV_A2       2