/linux/drivers/tty/serial/8250/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 3 # The 8250/16550 serial drivers. You shouldn't be in this list unless 8 tristate "8250/16550 and compatible serial support" 23 non-standard serial ports, since the configuration information will 51 If you did not notice yet and/or you have userspace from pre-3.7, it 55 bool "8250/16550 PNP device support" if EXPERT 63 bool "Support for variants of the 16550A serial port" 67 The 8250 driver can probe for many variants of the venerable 16550A 78 capabilities of the Fintek F81216A LPC to 4 UART as well similar 82 standard 16550A serial port, however the device may not function [all …]
|
H A D | 8250_of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 54 return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2; in npcm_get_divisor() 59 port->get_divisor = npcm_get_divisor; in npcm_setup() 60 port->startup = npcm_startup; in npcm_setup() 73 struct uart_8250_port *port8250 = serial8250_get_port(info->line); in of_platform_serial_clk_notifier_cb() 77 serial8250_update_uartclk(&port8250->port, ndata->new_rate); in of_platform_serial_clk_notifier_cb() 92 struct device *dev = &ofdev->dev; in of_platform_serial_setup() 93 struct device_node *np = dev->of_node; in of_platform_serial_setup() 94 struct uart_port *port = &up->port; in of_platform_serial_setup() 100 pm_runtime_enable(&ofdev->dev); in of_platform_serial_setup() [all …]
|
H A D | 8250_ni.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NI 16550 UART Driver 5 * The National Instruments (NI) 16550 is a UART that is compatible with the 7 * for RS-485 transceiver control. This driver implements support for the 10 * Copyright 2012-2023 National Instruments Corporation 31 /* TFS - TX FIFO Size */ 33 /* RFS - RX FIFO Size */ 36 /* PMR - Port Mode Register */ 38 /* PMR[1:0] - Port Capabilities */ 41 #define NI16550_PMR_CAP_RS232 FIELD_PREP(NI16550_PMR_CAP_MASK, 1) /* RS-232 capable */ [all …]
|
H A D | 8250_ingenic.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2010 Lars-Peter Clausen <lars@metafoo.de> 6 * Ingenic SoC UART support 46 return readl(port->membase + (offset << 2)); in early_in() 51 writel(value, port->membase + (offset << 2)); in early_out() 68 uart_console_write(&early_device->port, s, count, in ingenic_early_console_write() 82 prop = fdt_getprop(fdt, offset, "clock-frequency", NULL); in ingenic_early_console_setup_clock() 86 dev->port.uartclk = be32_to_cpup(prop); in ingenic_early_console_setup_clock() 92 struct uart_port *port = &dev->port; in ingenic_earlycon_setup_tail() 96 if (!dev->port.membase) in ingenic_earlycon_setup_tail() [all …]
|
H A D | 8250_men_mcb.c | 1 // SPDX-License-Identifier: GPL-2.0 16 * IP Cores Z025 and Z057 can have up to 4 UART 22 * +------+-------+-------+-------+-------+-------+-------+-------+ 24 * +------+-------+-------+-------+-------+-------+-------+-------+ 54 * The Z125 16550-compatible UART has no fixed base clock assigned 64 dev_info(&mdev->dev, "%s on board %s\n", in men_lookup_uartclk() 65 dev_name(&mdev->dev), in men_lookup_uartclk() 66 mdev->bus->name); in men_lookup_uartclk() 67 if (strncmp(mdev->bus->name, "F075", 4) == 0) in men_lookup_uartclk() 69 else if (strncmp(mdev->bus->name, "F216", 4) == 0) in men_lookup_uartclk() [all …]
|
H A D | 8250_pnp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Probe for 8250/16550-type ISAPNP serial ports. 9 * Ported to the Linux PnP Layer - (C) Adam Belay. 45 * Native driver (ali-ircc) is broken so at least 46 * it can be used with irtty-sir. 54 /* Boca Complete Ofc Communicator 14.4 Data-FAX */ 61 /* EuroViVa CommCenter-33.6 SP PnP */ 71 /* Creative Modem Blaster Flash56 DI5601-1 */ 75 /* E-Tech */ 76 /* E-Tech CyberBULLET PC56RVP */ [all …]
|
H A D | 8250_dw.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * raised, the LCR needs to be rewritten and the uart status register read. 34 #define DW_UART_USR 0x1f /* UART Status Register */ 37 #define OCTEON_UART_USR 0x27 /* UART Status Register */ 99 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_modify_msr() 103 value |= d->msr_mask_on; in dw8250_modify_msr() 104 value &= ~d->msr_mask_off; in dw8250_modify_msr() 134 if (up->fcr & UART_FCR_ENABLE_FIFO) { in dw8250_force_idle() 150 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_check_lcr() 151 void __iomem *addr = p->membase + (offset << p->regshift); in dw8250_check_lcr() [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | 8250.yaml | 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: UART (Universal Asynchronous Receiver/Transmitter) 10 - devicetree@vger.kernel.org 13 - $ref: serial.yaml# 14 - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 15 - if: 17 - required: 18 - aspeed,lpc-io-reg 19 - required: [all …]
|
H A D | mediatek,uart.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/serial/mediatek,uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek Universal Asynchronous Receiver/Transmitter (UART) 10 - Matthias Brugger <matthias.bgg@gmail.com> 13 - $ref: serial.yaml# 16 The MediaTek UART is based on the basic 8250 UART and compatible 17 with 16550A, with enhancements for high speed baud rates and 21 compatible: [all …]
|
H A D | snps-dw-apb-uart.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/serial/snps-dw-apb-uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Synopsys DesignWare ABP UART 10 - Rob Herring <robh@kernel.org> 13 - $ref: serial.yaml# 14 - $ref: rs485.yaml# 16 - if: 18 compatible: [all …]
|
/linux/arch/mips/ |
H A D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0 22 "8250/16550 and compatible serial early printk driver" 23 If you say Y here, it will be possible to use a 8250/16550 serial 30 bool "Built-in kernel command line" 41 The built-in options will be concatenated to the default command 43 command line will be ignored and replaced by the built-in string. 46 the command line from the firmware or the second-stage bootloader. 55 the default command line, you can supply some command-line options at 64 bool "Built-in command line overrides firmware arguments" 69 Instead, the built-in command line will be used exclusively. [all …]
|
/linux/arch/mips/boot/compressed/ |
H A D | dbg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MIPS-specific debug support for pre-boot environment 5 * NOTE: putc() is board specific, if your board have a 16550 compatible uart, 33 for (i = 7; i >= 0; i--) { in puthex()
|
H A D | uart-16550.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * 16550 compatible uart based serial debug support for zboot 50 while (((serial_in(UART_LSR) & UART_LSR_THRE) == 0) && (timeout-- > 0)) in putc()
|
/linux/Documentation/sound/cards/ |
H A D | serial-u16550.rst | 2 Serial UART 16450/16550 MIDI driver 7 * 0 - Roland Soundcanvas support (default) 8 * 1 - Midiator MS-124T support (1) 9 * 2 - Midiator MS-124W S/A mode (2) 10 * 3 - MS-124W M/B mode support (3) 11 * 4 - Generic device with multiple input support (4) 13 For the Midiator MS-124W, you must set the physical M-S and A-B 17 (midiCnD0-midiCnD15). Whenever you write to a different substream, the driver 27 /sbin/setserial /dev/ttyS0 uart none 28 /sbin/modprobe snd-serial-u16550 port=0x3f8 irq=4 speed=115200 [all …]
|
/linux/Documentation/networking/device_drivers/hamradio/ |
H A D | baycom.rst | 1 .. SPDX-License-Identifier: GPL-2.0 25 however if you have a broken UART clone that does not have working 32 does not work with your UART. 41 This driver is work-in-progress. 52 driver only supports standard serial hardware (8250, 16450, 16550) 54 par96 This is a modem for 9600 baud FSK compatible to the G3RUH standard. 64 is protocol compatible to par96, but uses only three low power ICs 69 EPP This is a high-speed modem adaptor that connects to an enhanced parallel 90 simple. Once installed, four interfaces named bc{sf,sh,p,e}[0-3] are available. 110 sethdlc -i bcsf0 -p mode "ser12*" io 0x3f8 irq 4 [all …]
|
/linux/drivers/acpi/ |
H A D | acpi_apd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 15 #include <linux/platform_data/clk-fch.h> 23 * struct apd_device_desc - a descriptor for apd device 26 * @properties: build-in properties of the device such as UART 48 const struct apd_device_desc *dev_desc = pdata->dev_desc; in acpi_apd_setup() 51 if (dev_desc->fixed_clk_rate) { in acpi_apd_setup() 52 clk = clk_register_fixed_rate(&pdata->adev->dev, in acpi_apd_setup() 53 dev_name(&pdata->adev->dev), in acpi_apd_setup() 54 NULL, 0, dev_desc->fixed_clk_rate); in acpi_apd_setup() [all …]
|
/linux/sound/drivers/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 50 tristate "PC-Speaker support (READ HELP!)" 60 You can compile this as a module which will be called snd-pcsp. 65 pc-speaker a default sound device. Which is likely not 69 options snd-pcsp index=2 71 You don't need this driver if you only want your pc-speaker to beep. 90 will be called snd-dummy. 99 the standard ALSA PCM device. The devices are routed 0->1 and 100 1->0, where first number is the playback PCM device and second 106 timing source using the time shift universal control (+-20% [all …]
|
/linux/drivers/mfd/ |
H A D | intel-lpss-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include "intel-lpss.h" 28 PROPERTY_ENTRY_U32("intel,spi-pxa2xx-type", LPSS_SPT_SSP), 42 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 230), 56 PROPERTY_ENTRY_U32("reg-io-width", 4), 57 PROPERTY_ENTRY_U32("reg-shift", 2), 58 PROPERTY_ENTRY_BOOL("snps,uart-16550-compatible"), 73 PROPERTY_ENTRY_U32("intel,spi-pxa2xx-type", LPSS_BXT_SSP), 87 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 42), 88 PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171), [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | legacy_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <asm/pci-bridge.h> 17 #include <asm/ppc-pci.h> 43 {.type = "tsi-bridge",}, 45 {.compatible = "ibm,opb",}, 46 {.compatible = "simple-bus",}, 47 {.compatible = "wrs,epld-localbus",}, 52 static int legacy_serial_console = -1; 61 offset = offset << p->regshift; in tsi_serial_in() 63 tmp = readl(p->membase + (UART_IIR & ~3)); in tsi_serial_in() [all …]
|
/linux/drivers/tty/ |
H A D | amiserial.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * associated with the registers and bits of 16550 compatible UARTS - 126 * ------------------------------------------------------------ 129 * This routines are called before setting or resetting tty->flow.stopped. 131 * ------------------------------------------------------------ 135 struct serial_state *info = tty->driver_data; in rs_stop() 139 if (info->IER & UART_IER_THRI) { in rs_stop() 140 info->IER &= ~UART_IER_THRI; in rs_stop() 152 struct serial_state *info = tty->driver_data; in rs_start() 156 if (info->xmit.head != info->xmit.tail in rs_start() [all …]
|
/linux/drivers/tty/serial/ |
H A D | amba-pl011.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (C) 2010 ST-Ericsson SA 11 * This is a generic driver for ARM AMBA-type serial ports. They 12 * have a lot of 16550-like features, but are not register compatible. 35 #include <linux/dma-mapping.h> 82 /* The size of the array - must be last */ 268 unsigned int fifosize; /* vendor-specific */ 269 unsigned int fixed_baud; /* vendor-set fixed baud rate */ 292 return uap->reg_offset[reg]; in pl011_reg_to_offset() 298 void __iomem *addr = uap->port.membase + pl011_reg_to_offset(uap, reg); in pl011_read() [all …]
|
/linux/drivers/acpi/x86/ |
H A D | lpss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 19 #include <linux/platform_data/x86/clk-lpss.h> 33 #include <asm/intel-family.h> 71 * before our suspend handler runs, causing us to read/save all 1-s (0xffffffff) 125 /* UART Component Parameter Register */ 134 offset = pdata->dev_desc->prv_offset + LPSS_TX_INT; in lpss_uart_setup() 135 val = readl(pdata->mmio_base + offset); in lpss_uart_setup() 136 writel(val | LPSS_TX_INT_MASK, pdata->mmio_base + offset); in lpss_uart_setup() 138 val = readl(pdata->mmio_base + LPSS_UART_CPR); in lpss_uart_setup() [all …]
|
/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 16 force -- enable ACPI if default was off 17 on -- enable ACPI but allow fallback to DT [arm64,riscv64] 18 off -- disable ACPI if default was on 19 noirq -- do not use ACPI for IRQ routing 20 strict -- Be less tolerant of platforms that are not 22 rsdt -- prefer RSDT over (default) XSDT 23 copy_dsdt -- copy DSDT to memory 24 nocmcff -- Disable firmware first mode for corrected 28 nospcr -- disable console in ACPI SPCR table as 45 If set to vendor, prefer vendor-specific driver [all …]
|
H A D | devices.txt | 1 0 Unnamed devices (e.g. non-device mounts) 7 2 = /dev/kmem OBSOLETE - replaced by /proc/kcore 11 6 = /dev/core OBSOLETE - replaced by /proc/kcore 18 12 = /dev/oldmem OBSOLETE - replaced by /proc/vmcore 31 2 char Pseudo-TTY masters 37 Pseudo-tty's are named as follows: 40 the 1st through 16th series of 16 pseudo-ttys each, and 44 These are the old-style (BSD) PTY devices; Unix98 106 3 char Pseudo-TTY slaves 112 These are the old-style (BSD) PTY devices; Unix98 [all …]
|