All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/8] parport: Add support for BrainBoxes PX272/PX306 MIO card
@ 2018-02-02 18:39 Andy Shevchenko
  2018-02-02 18:39 ` [PATCH v1 2/8] parport: PCI core handles power state for us Andy Shevchenko
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Andy Shevchenko @ 2018-02-02 18:39 UTC (permalink / raw)
  To: Sudip Mukherjee, linux-kernel, Nikola Ciprich; +Cc: Andy Shevchenko

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 <nikola.ciprich@linuxbox.cz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 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

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-02-04 16:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-02 18:39 [PATCH v1 1/8] parport: Add support for BrainBoxes PX272/PX306 MIO card Andy Shevchenko
2018-02-02 18:39 ` [PATCH v1 2/8] parport: PCI core handles power state for us Andy Shevchenko
2018-02-04 16:01   ` Nikola Ciprich
2018-02-02 18:39 ` [PATCH v1 3/8] parport: Convert to use managed functions pcim_* and devm_* Andy Shevchenko
2018-02-04 16:02   ` Nikola Ciprich
2018-02-02 18:39 ` [PATCH v1 4/8] parport: Don't shadow error codes in ->probe() Andy Shevchenko
2018-02-04 16:02   ` Nikola Ciprich
2018-02-02 18:39 ` [PATCH v1 5/8] parport: Convert printk(KERN_WARN) to dev_warn() Andy Shevchenko
2018-02-04 16:02   ` Nikola Ciprich
2018-02-02 18:39 ` [PATCH v1 6/8] parport: Switch to use module_pci_driver() macro Andy Shevchenko
2018-02-04 16:02   ` Nikola Ciprich
2018-02-02 18:39 ` [PATCH v1 7/8] parport: Sort headers alphabetically Andy Shevchenko
2018-02-04 16:02   ` Nikola Ciprich
2018-02-02 18:39 ` [PATCH v1 8/8] parport: Replace short License header by SPDX identifier Andy Shevchenko
2018-02-04 16:03   ` Nikola Ciprich
2018-02-02 22:07 ` [PATCH v1 1/8] parport: Add support for BrainBoxes PX272/PX306 MIO card Nikola Ciprich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.