[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] serial: expand the PCIe params for an Oxford two port serial cards
commit c8f077c7962efd64dd42ccf70fab6db239f940fa Author: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> AuthorDate: Thu Apr 10 17:59:20 2014 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Apr 10 17:59:20 2014 +0200 serial: expand the PCIe params for an Oxford two port serial cards Which of course has a different model number and sports two serial outputs. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- 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 44e13b7..5952de1 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, -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |