Received: by 10.223.176.5 with SMTP id f5csp1073014wra; Fri, 2 Feb 2018 10:42:09 -0800 (PST) X-Google-Smtp-Source: AH8x227Jc61/zYbFlIF6TNXqiBvhDv6hjazF72dxgJgU1HgQzp+0hu+bL4c/Uu7HPmeK4axaeVPp X-Received: by 2002:a17:902:595d:: with SMTP id e29-v6mr36549088plj.436.1517596929632; Fri, 02 Feb 2018 10:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517596929; cv=none; d=google.com; s=arc-20160816; b=rhIYY5beBSv7CZuJreh5Fp92ARQhzDYiUB6h1YDxTU5MKHqSdViIJTEehLxFuKCR40 H/qk8V1F04w6DmepLtmD2TN65zstJb5rDrunyNm15/KNIQCUn9swncPxvXLqMuEiFijB bPxI9JCAPQTQc6ie31dmB3kLJ9IZu49/cAnAp8kZxdJTdkFTQUvxQPUpNO9Nm9ZEQ8Vc 8HSyht2t5xgdoIQzkl/C+DW/T+TPulAadltjg5Dr3aSb1PSseEK+6xSGAyJ6rNWqC2bP vV/2Fzn0bf/Nv5C2UP8HoOAYqo/0q457BUDsAKdX3XdwmRPDepK2O183dplhL5amlzE1 EjKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bjyh8bRvs606yg14mHJP5HWHs/qzPQAST1iBKzc8+zk=; b=wkvBZyFDsXFqjHxiFCaDD/yiDyJbhMBW4OIW6wMIQ6iU5f6+gHwJPVOf17oV7NlUgZ uOaEdFHFGJzRb6A2bnpRlZFPWv2t6YiJwRclEyeUngMb/Wqp9qjRQq0tckhs0jU6qhuy I92fUhO2pX93OsIx9bKwfBD7R2IkoYkedJfsfPYZUDcoiD4ZkOqh3M7R8N0hxpdoOCpp SbgaQbwlyy0aE9R5XSfB+uPUELjPQXphTS3bOI9e5oYgcYjqc+7zI14CO0Aan+tCwyRX ciIzM1ujCa/EesVTvQ85l/yX3+9B9vJ8irTmcziDNI3BcjhayKu6owhdR7+eJJlssy5K p+Ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si114326pgp.337.2018.02.02.10.41.54; Fri, 02 Feb 2018 10:42:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755079AbeBBSkE (ORCPT + 99 others); Fri, 2 Feb 2018 13:40:04 -0500 Received: from mga11.intel.com ([192.55.52.93]:50075 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754055AbeBBSj7 (ORCPT ); Fri, 2 Feb 2018 13:39:59 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Feb 2018 10:39:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,450,1511856000"; d="scan'208";a="16579939" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 02 Feb 2018 10:39:57 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 630D5141; Fri, 2 Feb 2018 20:39:56 +0200 (EET) From: Andy Shevchenko To: Sudip Mukherjee , linux-kernel@vger.kernel.org, Nikola Ciprich Cc: Andy Shevchenko Subject: [PATCH v1 1/8] parport: Add support for BrainBoxes PX272/PX306 MIO card Date: Fri, 2 Feb 2018 20:39:48 +0200 Message-Id: <20180202183955.85453-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for BrainBoxes Multi I/O cards (4+1 serial + 1 parallel port): 02:00.0 0702: 135a:4100 (rev 02) Subsystem: 135a:0443 Flags: fast devsel, IRQ 18 Memory at f7d02000 (32-bit, non-prefetchable) [size=128] I/O ports at e000 [size=128] I/O ports at e080 [size=64] I/O ports at e0c0 [size=16] Memory at f7d01000 (32-bit, non-prefetchable) [size=128] Memory at f7d00000 (32-bit, non-prefetchable) [size=128] Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+ Capabilities: [78] Power Management version 3 Capabilities: [80] Express Legacy Endpoint, MSI 01 Capabilities: [100] Virtual Channel Capabilities: [800] Advanced Error Reporting Reported-by: Nikola Ciprich Signed-off-by: Andy Shevchenko --- drivers/parport/parport_serial.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c index 087e847b1da2..eda733c8f6e0 100644 --- a/drivers/parport/parport_serial.c +++ b/drivers/parport/parport_serial.c @@ -65,6 +65,7 @@ enum parport_pc_pci_cards { wch_ch353_1s1p, wch_ch353_2s1p, wch_ch382_2s1p, + brainboxes_5s1p, sunix_2s1p, }; @@ -153,6 +154,7 @@ static struct parport_pc_pci cards[] = { /* wch_ch353_1s1p*/ { 1, { { 1, -1}, } }, /* wch_ch353_2s1p*/ { 1, { { 2, -1}, } }, /* wch_ch382_2s1p*/ { 1, { { 2, -1}, } }, + /* brainboxes_5s1p */ { 1, { { 3, -1 }, } }, /* sunix_2s1p */ { 1, { { 3, -1 }, } }, }; @@ -258,6 +260,10 @@ static struct pci_device_id parport_serial_pci_tbl[] = { { 0x4348, 0x7053, 0x4348, 0x3253, 0, 0, wch_ch353_2s1p}, { 0x1c00, 0x3250, 0x1c00, 0x3250, 0, 0, wch_ch382_2s1p}, + /* BrainBoxes PX272/PX306 MIO card */ + { PCI_VENDOR_ID_INTASHIELD, 0x4100, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_5s1p }, + /* * More SUNIX variations. At least one of these has part number * '5079A but subdevice 0x102. That board reports 0x0708 as @@ -501,6 +507,12 @@ static struct pciserial_board pci_parport_serial_boards[] = { .uart_offset = 8, .first_offset = 0xC0, }, + [brainboxes_5s1p] = { + .flags = FL_BASE2, + .num_ports = 5, + .base_baud = 921600, + .uart_offset = 8, + }, [sunix_2s1p] = { .flags = FL_BASE0|FL_BASE_BARS, .num_ports = 2, -- 2.15.1