mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
serial/pci: Remove the product specific config
since the driver could detect them automatically Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Mateusz Szafoni
parent
d7209fabf4
commit
2c9d412d1c
@@ -11,7 +11,6 @@ CONFIG_16550_PCI_UART1_CLOCK=1843200
|
|||||||
CONFIG_16550_PCI_UART1_DEVICE=0x0002
|
CONFIG_16550_PCI_UART1_DEVICE=0x0002
|
||||||
CONFIG_16550_PCI_UART1_VENDOR=0x1b36
|
CONFIG_16550_PCI_UART1_VENDOR=0x1b36
|
||||||
CONFIG_16550_PCI_UART=y
|
CONFIG_16550_PCI_UART=y
|
||||||
CONFIG_16550_PCI_UART_QEMU=y
|
|
||||||
CONFIG_16550_UART0=y
|
CONFIG_16550_UART0=y
|
||||||
CONFIG_16550_UART0_BASE=0x3f8
|
CONFIG_16550_UART0_BASE=0x3f8
|
||||||
CONFIG_16550_UART0_CLOCK=1843200
|
CONFIG_16550_UART0_CLOCK=1843200
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ CONFIG_16550_PCI_UART0_DEVICE=0x9100
|
|||||||
CONFIG_16550_PCI_UART0_SERIAL_CONSOLE=y
|
CONFIG_16550_PCI_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_16550_PCI_UART0_VENDOR=0x125b
|
CONFIG_16550_PCI_UART0_VENDOR=0x125b
|
||||||
CONFIG_16550_PCI_UART=y
|
CONFIG_16550_PCI_UART=y
|
||||||
CONFIG_16550_PCI_UART_AX99100=y
|
|
||||||
CONFIG_ARCH="x86_64"
|
CONFIG_ARCH="x86_64"
|
||||||
CONFIG_ARCH_BOARD="qemu-intel64"
|
CONFIG_ARCH_BOARD="qemu-intel64"
|
||||||
CONFIG_ARCH_BOARD_INTEL64_QEMU=y
|
CONFIG_ARCH_BOARD_INTEL64_QEMU=y
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ CONFIG_16550_PCI_UART0_DEVICE=0x9100
|
|||||||
CONFIG_16550_PCI_UART0_SERIAL_CONSOLE=y
|
CONFIG_16550_PCI_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_16550_PCI_UART0_VENDOR=0x125b
|
CONFIG_16550_PCI_UART0_VENDOR=0x125b
|
||||||
CONFIG_16550_PCI_UART=y
|
CONFIG_16550_PCI_UART=y
|
||||||
CONFIG_16550_PCI_UART_AX99100=y
|
|
||||||
CONFIG_ARCH="x86_64"
|
CONFIG_ARCH="x86_64"
|
||||||
CONFIG_ARCH_BOARD="qemu-intel64"
|
CONFIG_ARCH_BOARD="qemu-intel64"
|
||||||
CONFIG_ARCH_BOARD_INTEL64_QEMU=y
|
CONFIG_ARCH_BOARD_INTEL64_QEMU=y
|
||||||
|
|||||||
@@ -34,19 +34,6 @@ config 16550_PCI_UART3
|
|||||||
---help---
|
---help---
|
||||||
Support for PCI UART3, will be registered as /dev/ttyS3
|
Support for PCI UART3, will be registered as /dev/ttyS3
|
||||||
|
|
||||||
config 16550_PCI_UART_QEMU
|
|
||||||
bool "16550 PCI QEMU devices"
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Enable support for QEMU serial devices (pci-serial, pci-serial-2x
|
|
||||||
pci-serial-4x)
|
|
||||||
|
|
||||||
config 16550_PCI_UART_AX99100
|
|
||||||
bool "16550 PCI AX99100 device"
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Enable support for AX99100 serial port device.
|
|
||||||
|
|
||||||
endif # 16550_PCI_UART
|
endif # 16550_PCI_UART
|
||||||
|
|
||||||
if 16550_PCI_UART0
|
if 16550_PCI_UART0
|
||||||
|
|||||||
@@ -121,8 +121,6 @@ static int pci_u16550_probe(FAR struct pci_device_s *dev);
|
|||||||
* Private Data
|
* Private Data
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_16550_PCI_UART_QEMU
|
|
||||||
|
|
||||||
static const struct pci_u16550_type_s g_pci_u16550_qemu_x1 =
|
static const struct pci_u16550_type_s g_pci_u16550_qemu_x1 =
|
||||||
{
|
{
|
||||||
.ports = 1,
|
.ports = 1,
|
||||||
@@ -143,20 +141,16 @@ static const struct pci_u16550_type_s g_pci_u16550_qemu_x4 =
|
|||||||
.regincr = 1,
|
.regincr = 1,
|
||||||
.portincr = 8,
|
.portincr = 8,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_16550_PCI_UART_QEMU */
|
|
||||||
|
|
||||||
#ifdef CONFIG_16550_PCI_UART_AX99100
|
|
||||||
static const struct pci_u16550_type_s g_pci_u16550_ax99100_x2 =
|
static const struct pci_u16550_type_s g_pci_u16550_ax99100_x2 =
|
||||||
{
|
{
|
||||||
.ports = 2,
|
.ports = 2,
|
||||||
.regincr = 1,
|
.regincr = 1,
|
||||||
.portincr = 8,
|
.portincr = 8,
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_16550_PCI_UART_AX99100 */
|
|
||||||
|
|
||||||
static const struct pci_device_id_s g_pci_u16550_id_table[] =
|
static const struct pci_device_id_s g_pci_u16550_id_table[] =
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_16550_PCI_UART_QEMU
|
|
||||||
{
|
{
|
||||||
PCI_DEVICE(0x1b36, 0x0002),
|
PCI_DEVICE(0x1b36, 0x0002),
|
||||||
.driver_data = (uintptr_t)&g_pci_u16550_qemu_x1
|
.driver_data = (uintptr_t)&g_pci_u16550_qemu_x1
|
||||||
@@ -169,13 +163,10 @@ static const struct pci_device_id_s g_pci_u16550_id_table[] =
|
|||||||
PCI_DEVICE(0x1b36, 0x0004),
|
PCI_DEVICE(0x1b36, 0x0004),
|
||||||
.driver_data = (uintptr_t)&g_pci_u16550_qemu_x4
|
.driver_data = (uintptr_t)&g_pci_u16550_qemu_x4
|
||||||
},
|
},
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_16550_PCI_UART_AX99100
|
|
||||||
{
|
{
|
||||||
PCI_DEVICE(0x125b, 0x9100),
|
PCI_DEVICE(0x125b, 0x9100),
|
||||||
.driver_data = (uintptr_t)&g_pci_u16550_ax99100_x2
|
.driver_data = (uintptr_t)&g_pci_u16550_ax99100_x2
|
||||||
},
|
},
|
||||||
#endif
|
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user