rapidio/switches: remove tsi500 driver
authorAlexandre Bounine <alexandre.bounine@idt.com>
Wed, 3 Jul 2013 22:08:48 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:04 +0000 (16:08 -0700)
Remove the driver for Tsi500 Parallel RapidIO switch because this device
has not been available for several years.  Since the first introduction of
Tsi500, the parallel RapidIO interface was replaced by the serial RapidIO
(sRIO) and therefore there is no value in keeping this driver.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/switches/Kconfig
drivers/rapidio/switches/Makefile
drivers/rapidio/switches/tsi500.c [deleted file]

index f47fee5d4563a44d8ae6e918b8422e111cb5823c..62d4a065230f26402fa4a7471d2b803df45d4cef 100644 (file)
@@ -26,10 +26,3 @@ config RAPIDIO_CPS_GEN2
        default n
        ---help---
          Includes support for ITD CPS Gen.2 serial RapidIO switches.
-
-config RAPIDIO_TSI500
-       bool "Tsi500 Parallel RapidIO switch support"
-       depends on RAPIDIO
-       default n
-       ---help---
-         Includes support for IDT Tsi500 parallel RapidIO switch.
index c4d3acc3c71560f63b605b410072ace4828c81a5..051cc6b3818827e485e971859ab9096cd4ffd9f7 100644 (file)
@@ -5,5 +5,4 @@
 obj-$(CONFIG_RAPIDIO_TSI57X)   += tsi57x.o
 obj-$(CONFIG_RAPIDIO_CPS_XX)   += idtcps.o
 obj-$(CONFIG_RAPIDIO_TSI568)   += tsi568.o
-obj-$(CONFIG_RAPIDIO_TSI500)   += tsi500.o
 obj-$(CONFIG_RAPIDIO_CPS_GEN2) += idt_gen2.o
diff --git a/drivers/rapidio/switches/tsi500.c b/drivers/rapidio/switches/tsi500.c
deleted file mode 100644 (file)
index 914eddd..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * RapidIO Tsi500 switch support
- *
- * Copyright 2009-2010 Integrated Device Technology, Inc.
- * Alexandre Bounine <alexandre.bounine@idt.com>
- *  - Modified switch operations initialization.
- *
- * Copyright 2005 MontaVista Software, Inc.
- * Matt Porter <mporter@kernel.crashing.org>
- *
- * This program is free software; you can redistribute  it and/or modify it
- * under  the terms of  the GNU General  Public License as published by the
- * Free Software Foundation;  either version 2 of the  License, or (at your
- * option) any later version.
- */
-
-#include <linux/rio.h>
-#include <linux/rio_drv.h>
-#include <linux/rio_ids.h>
-#include "../rio.h"
-
-static int
-tsi500_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 route_port)
-{
-       int i;
-       u32 offset = 0x10000 + 0xa00 + ((route_destid / 2)&~0x3);
-       u32 result;
-
-       if (table == 0xff) {
-               rio_mport_read_config_32(mport, destid, hopcount, offset, &result);
-               result &= ~(0xf << (4*(route_destid & 0x7)));
-               for (i=0;i<4;i++)
-                       rio_mport_write_config_32(mport, destid, hopcount, offset + (0x20000*i), result | (route_port << (4*(route_destid & 0x7))));
-       }
-       else {
-               rio_mport_read_config_32(mport, destid, hopcount, offset + (0x20000*table), &result);
-               result &= ~(0xf << (4*(route_destid & 0x7)));
-               rio_mport_write_config_32(mport, destid, hopcount, offset + (0x20000*table), result | (route_port << (4*(route_destid & 0x7))));
-       }
-
-       return 0;
-}
-
-static int
-tsi500_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 *route_port)
-{
-       int ret = 0;
-       u32 offset = 0x10000 + 0xa00 + ((route_destid / 2)&~0x3);
-       u32 result;
-
-       if (table == 0xff)
-               rio_mport_read_config_32(mport, destid, hopcount, offset, &result);
-       else
-               rio_mport_read_config_32(mport, destid, hopcount, offset + (0x20000*table), &result);
-
-       result &= 0xf << (4*(route_destid & 0x7));
-       *route_port = result >> (4*(route_destid & 0x7));
-       if (*route_port > 3)
-               ret = -1;
-
-       return ret;
-}
-
-static int tsi500_switch_init(struct rio_dev *rdev, int do_enum)
-{
-       pr_debug("RIO: %s for %s\n", __func__, rio_name(rdev));
-       rdev->rswitch->add_entry = tsi500_route_add_entry;
-       rdev->rswitch->get_entry = tsi500_route_get_entry;
-       rdev->rswitch->clr_table = NULL;
-       rdev->rswitch->set_domain = NULL;
-       rdev->rswitch->get_domain = NULL;
-       rdev->rswitch->em_init = NULL;
-       rdev->rswitch->em_handle = NULL;
-
-       return 0;
-}
-
-DECLARE_RIO_SWITCH_INIT(RIO_VID_TUNDRA, RIO_DID_TSI500, tsi500_switch_init);
This page took 0.025926 seconds and 5 git commands to generate.