ns16550: add support for UART parameters to be specifed with name-value pairs
authorSwapnil Paratey <swapnil.paratey@amd.com>
Wed, 7 Jun 2017 10:35:01 +0000 (12:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Jun 2017 10:35:01 +0000 (12:35 +0200)
commit97fd49a7e0742eaca010fd4f5c6f19adac0275c4
tree9f1f5263bd54aa2a33bcd094d633aa5b3b4ae40e
parent84c1eab01593733780bba9d445d7a34201239eb1
ns16550: add support for UART parameters to be specifed with name-value pairs

Add name=value parsing options for com1 and com2 to add flexibility
in setting register values for MMIO UART devices.

Maintain backward compatibility with previous positional parameter
specfications.

eg. com1=115200,8n1,0x3f8,4
eg. com1=115200,8n1,0x3f8,4,reg_width=4,reg_shift=2
eg. com1=baud=115200,parity=n,reg_width=4,reg_shift=2,irq=4

Signed-off-by: Swapnil Paratey <swapnil.paratey@amd.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.markdown
xen/common/kernel.c
xen/drivers/char/ns16550.c