From: Konrad Rzeszutek Wilk Subject: [PATCH] serial: Expand the PCIe params for an Oxford two port serial cards (v2). Date: Tue, 1 Apr 2014 12:21:21 -0400 Message-ID: <1396369281-12993-2-git-send-email-konrad.wilk@oracle.com> References: <1396369281-12993-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WV1QQ-0002ae-3J for xen-devel@lists.xenproject.org; Tue, 01 Apr 2014 16:20:34 +0000 Received: by mail-qg0-f41.google.com with SMTP id z60so2060569qgd.0 for ; Tue, 01 Apr 2014 09:20:31 -0700 (PDT) In-Reply-To: <1396369281-12993-1-git-send-email-konrad.wilk@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: keir.xen@gmail.com, xen-devel@lists.xenproject.org, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Which of course has a different model number and sports two serial outputs. Signed-off-by: Konrad Rzeszutek Wilk [v2: s/1/2/ for the comment, spotted by Jan] --- xen/drivers/char/ns16550.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index 14e20ef..0e4abe1 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -105,6 +105,7 @@ enum { param_default = 0, param_trumanage, param_oxford, + param_oxford_2port, }; /* * Create lookup tables for specific MMIO devices.. @@ -130,6 +131,16 @@ static const struct ns16550_config_param __initconst uart_param[] = { .fifo_size = 16, .lsr_mask = UART_LSR_THRE, .max_bars = 1, /* It can do more, but we would need more custom code.*/ + }, + [param_oxford_2port] = { + .base_baud = 4000000, + .uart_offset = 0x200, + .first_offset = 0x1000, + .reg_width = 1, + .reg_shift = 0, + .fifo_size = 16, + .lsr_mask = UART_LSR_THRE, + .max_bars = 2, } }; static const struct ns16550_config_mmio __initconst uart_config[] = @@ -158,12 +169,24 @@ static const struct ns16550_config_mmio __initconst uart_config[] = .dev_id = 0xc138, .param = param_oxford, }, + /* OXPCIe952 2 Native UART */ + { + .vendor_id = PCI_VENDOR_ID_OXSEMI, + .dev_id = 0xc158, + .param = param_oxford_2port, + }, /* OXPCIe952 1 Native UART */ { .vendor_id = PCI_VENDOR_ID_OXSEMI, .dev_id = 0xc13d, .param = param_oxford, }, + /* OXPCIe952 2 Native UART */ + { + .vendor_id = PCI_VENDOR_ID_OXSEMI, + .dev_id = 0xc15d, + .param = param_oxford_2port, + }, /* OXPCIe952 1 Native UART */ { .vendor_id = PCI_VENDOR_ID_OXSEMI, -- 1.7.7.6