| /openbmc/qemu/hw/char/ |
| H A D | grlib_apbuart.c | 99 static int uart_data_to_read(UART *uart) in uart_data_to_read() argument 101 return uart->current < uart->len; in uart_data_to_read() 104 static char uart_pop(UART *uart) in uart_pop() argument 108 if (uart->len == 0) { in uart_pop() 109 uart->status &= ~UART_DATA_READY; in uart_pop() 113 ret = uart->buffer[uart->current++]; in uart_pop() 115 if (uart->current >= uart->len) { in uart_pop() 117 uart->len = 0; in uart_pop() 118 uart->current = 0; in uart_pop() 121 if (!uart_data_to_read(uart)) { in uart_pop() [all …]
|
| /openbmc/u-boot/drivers/serial/ |
| H A D | mcfuart.c | 27 static int mcf_serial_init_common(uart_t *uart, int port_idx, int baudrate) in mcf_serial_init_common() argument 34 writeb(UART_UCR_RESET_RX, &uart->ucr); in mcf_serial_init_common() 35 writeb(UART_UCR_RESET_TX, &uart->ucr); in mcf_serial_init_common() 36 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in mcf_serial_init_common() 37 writeb(UART_UCR_RESET_MR, &uart->ucr); in mcf_serial_init_common() 40 writeb(0, &uart->uimr); in mcf_serial_init_common() 43 writeb(UART_UCSR_RCS_SYS_CLK | UART_UCSR_TCS_SYS_CLK, &uart->ucsr); in mcf_serial_init_common() 45 writeb(UART_UMR_BC_8 | UART_UMR_PM_NONE, &uart->umr); in mcf_serial_init_common() 46 writeb(UART_UMR_SB_STOP_BITS_1, &uart->umr); in mcf_serial_init_common() 53 writeb((u8)((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_init_common() [all …]
|
| H A D | serial_s5p.c | 62 static void __maybe_unused s5p_serial_init(struct s5p_uart *uart) in s5p_serial_init() argument 65 writel(0x3, &uart->ufcon); in s5p_serial_init() 66 writel(0, &uart->umcon); in s5p_serial_init() 68 writel(0x3, &uart->ulcon); in s5p_serial_init() 70 writel(0x245, &uart->ucon); in s5p_serial_init() 73 static void __maybe_unused s5p_serial_baud(struct s5p_uart *uart, uint uclk, in s5p_serial_baud() argument 80 writel(val / 16 - 1, &uart->ubrdiv); in s5p_serial_baud() 83 writew(udivslot[val % 16], &uart->rest.slot); in s5p_serial_baud() 85 writeb(val % 16, &uart->rest.value); in s5p_serial_baud() 92 struct s5p_uart *const uart = plat->reg; in s5p_serial_setbrg() local [all …]
|
| H A D | serial_meson.c | 44 static void meson_serial_init(struct meson_uart *uart) in meson_serial_init() argument 48 val = readl(&uart->control); in meson_serial_init() 50 writel(val, &uart->control); in meson_serial_init() 52 writel(val, &uart->control); in meson_serial_init() 54 writel(val, &uart->control); in meson_serial_init() 60 struct meson_uart *const uart = plat->reg; in meson_serial_probe() local 62 meson_serial_init(uart); in meson_serial_probe() 70 struct meson_uart *const uart = plat->reg; in meson_serial_getc() local 72 if (readl(&uart->status) & AML_UART_RX_EMPTY) in meson_serial_getc() 75 return readl(&uart->rfifo) & 0xff; in meson_serial_getc() [all …]
|
| H A D | serial_sti_asc.c | 70 struct sti_asc_uart *const uart = priv->regs; in sti_asc_pending() local 73 status = readl(&uart->status); in sti_asc_pending() 80 static int _sti_asc_serial_setbrg(struct sti_asc_uart *uart, int baudrate) in _sti_asc_serial_setbrg() argument 108 val = readl(&uart->control); in _sti_asc_serial_setbrg() 109 writel(val & ~RUN, &uart->control); in _sti_asc_serial_setbrg() 112 writel(t, &uart->baudrate); in _sti_asc_serial_setbrg() 114 writel(1, &uart->txreset); in _sti_asc_serial_setbrg() 115 writel(1, &uart->rxreset); in _sti_asc_serial_setbrg() 122 writel(val, &uart->control); in _sti_asc_serial_setbrg() 131 struct sti_asc_uart *const uart = priv->regs; in sti_asc_serial_setbrg() local [all …]
|
| H A D | serial_pxa.c | 177 #define pxa_uart(uart, UART) \ argument 178 int uart##_init(void) \ 183 void uart##_setbrg(void) \ 188 void uart##_putc(const char c) \ 193 void uart##_puts(const char *s) \ 198 int uart##_getc(void) \ 203 int uart##_tstc(void) \ 208 #define pxa_uart_desc(uart) \ argument 209 struct serial_device serial_##uart##_device = \ 211 .name = "serial_"#uart, \ [all …]
|
| H A D | serial_mxc.c | 287 struct mxc_uart *const uart = plat->reg; in mxc_serial_getc() local 289 if (readl(&uart->ts) & UTS_RXEMPTY) in mxc_serial_getc() 292 return readl(&uart->rxd) & URXD_RX_DATA; in mxc_serial_getc() 298 struct mxc_uart *const uart = plat->reg; in mxc_serial_putc() local 300 if (!(readl(&uart->ts) & UTS_TXEMPTY)) in mxc_serial_putc() 303 writel(ch, &uart->txd); in mxc_serial_putc() 311 struct mxc_uart *const uart = plat->reg; in mxc_serial_pending() local 312 uint32_t sr2 = readl(&uart->sr2); in mxc_serial_pending()
|
| /openbmc/u-boot/board/astro/mcf5373l/ |
| H A D | mcf5373l.c | 90 uart_t *uart; in rs_serial_init() local 95 uart = (uart_t *)(MMAP_UART0); in rs_serial_init() 98 uart = (uart_t *)(MMAP_UART1); in rs_serial_init() 101 uart = (uart_t *)(MMAP_UART2); in rs_serial_init() 104 uart = (uart_t *)(MMAP_UART0); in rs_serial_init() 110 writeb(UART_UCR_RESET_RX, &uart->ucr); in rs_serial_init() 111 writeb(UART_UCR_RESET_TX, &uart->ucr); in rs_serial_init() 112 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in rs_serial_init() 113 writeb(UART_UCR_RESET_MR, &uart->ucr); in rs_serial_init() 116 writeb(0, &uart->uimr); in rs_serial_init() [all …]
|
| /openbmc/openbmc/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/ |
| H A D | obmc-console@.service | 7 …/bin/sh -c 'echo -n "uart3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 8 …/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 9 …e=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 10 …/bin/sh -c 'echo -n "uart4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 12 …t=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 13 …t=/bin/sh -c 'echo -n "io3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 14 …t=/bin/sh -c 'echo -n "io4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/… 15 …/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
|
| /openbmc/u-boot/arch/arm/mach-uniphier/debug-uart/ |
| H A D | Makefile | 4 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += debug-uart-ld4.o 5 obj-$(CONFIG_ARCH_UNIPHIER_PRO4) += debug-uart-pro4.o 6 obj-$(CONFIG_ARCH_UNIPHIER_SLD8) += debug-uart-sld8.o 7 obj-$(CONFIG_ARCH_UNIPHIER_PRO5) += debug-uart-pro5.o 8 obj-$(CONFIG_ARCH_UNIPHIER_PXS2) += debug-uart-pxs2.o 9 obj-$(CONFIG_ARCH_UNIPHIER_LD6B) += debug-uart-ld6b.o 10 obj-$(CONFIG_ARCH_UNIPHIER_LD11) += debug-uart-ld20.o 11 obj-$(CONFIG_ARCH_UNIPHIER_LD20) += debug-uart-ld20.o 14 obj-y += debug-uart.o
|
| /openbmc/openbmc/meta-nvidia/meta-nvl32-obmc/recipes-phosphor/console/obmc-console/ |
| H A D | obmc-console@.service | 7 …/bin/sh -c 'echo -n "uart4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e789098.uart-routing/… 8 …/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e789098.uart-routing/… 10 …t=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e789098.uart-routing/… 11 …t=/bin/sh -c 'echo -n "io4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e789098.uart-routing/…
|
| /openbmc/u-boot/doc/device-tree-bindings/serial/ |
| H A D | omap_serial.txt | 4 - compatible : should be "ti,omap2-uart" for OMAP2 controllers 5 - compatible : should be "ti,omap3-uart" for OMAP3 controllers 6 - compatible : should be "ti,omap4-uart" for OMAP4 controllers 7 - compatible : should be "ti,am4372-uart" for AM437x controllers 8 - compatible : should be "ti,am3352-uart" for AM335x controllers 9 - compatible : should be "ti,dra742-uart" for DRA7x controllers 11 - interrupts or interrupts-extended : Should contain the uart interrupt 15 - ti,hwmods : Must be "uart<n>", n being the instance number (1-based) 26 compatible = "ti,omap3-uart";
|
| H A D | snps-dw-apb-uart.txt | 4 - compatible : "snps,dw-apb-uart" 6 - interrupts : should contain uart interrupt. 18 - snps,uart-16550-compatible : reflects the value of UART_16550_COMPATIBLE 42 uart@80230000 { 43 compatible = "snps,dw-apb-uart"; 57 uart@80230000 { 58 compatible = "snps,dw-apb-uart"; 68 uart@80230000 { 69 compatible = "snps,dw-apb-uart";
|
| H A D | 8250.txt | 11 - For Tegra20, must contain "nvidia,tegra20-uart" 12 - For other Tegra, must contain '"nvidia,<chip>-uart", 13 "nvidia,tegra20-uart"' where <chip> is tegra30, tegra114, tegra124, 15 - "nxp,lpc3220-uart" 16 - "ralink,rt2880-uart" 25 - interrupts : should contain uart interrupt. 60 uart@80230000 {
|
| H A D | qca,ar9330-uart.txt | 5 - compatible: Must be "qca,ar9330-uart" 21 uart0: uart@18020000 { 22 compatible = "qca,ar9330-uart";
|
| /openbmc/openbmc/meta-phosphor/recipes-phosphor/video/ |
| H A D | uart-render-controller_git.bb | 1 HOMEPAGE = "https://github.com/jk-ozlabs/uart-render-controller" 10 SRC_URI = "git://github.com/jk-ozlabs/uart-render-controller;branch=master;protocol=https" 11 SRC_URI += "file://uart-render-controller.service" 14 SYSTEMD_SERVICE:${PN} += "uart-render-controller.service" 22 install -m 0644 ${UNPACKDIR}/uart-render-controller.service ${D}${systemd_system_unitdir}/
|
| /openbmc/qemu/hw/arm/ |
| H A D | aspeed_soc_common.c | 39 for (int i = 0, uart = sc->uarts_base; i < sc->uarts_num; i++, uart++) { in aspeed_soc_uart_realize() local 40 smm = &s->uart[i]; in aspeed_soc_uart_realize() 45 qdev_set_legacy_instance_id(DEVICE(smm), sc->memmap[uart], 2); in aspeed_soc_uart_realize() 51 sysbus_connect_irq(SYS_BUS_DEVICE(smm), 0, aspeed_soc_get_irq(s, uart)); in aspeed_soc_uart_realize() 52 aspeed_mmio_map(s, SYS_BUS_DEVICE(smm), 0, sc->memmap[uart]); in aspeed_soc_uart_realize() 65 g_assert(0 <= i && i < ARRAY_SIZE(s->uart) && i < sc->uarts_num); in aspeed_soc_uart_set_chr() 66 qdev_prop_set_chr(DEVICE(&s->uart[i]), "chardev", chr); in aspeed_soc_uart_set_chr()
|
| H A D | digic.c | 46 object_initialize_child(obj, "uart", &s->uart, TYPE_DIGIC_UART); in digic_init() 73 qdev_prop_set_chr(DEVICE(&s->uart), "chardev", serial_hd(0)); in digic_realize() 74 if (!sysbus_realize(SYS_BUS_DEVICE(&s->uart), errp)) { in digic_realize() 78 sbd = SYS_BUS_DEVICE(&s->uart); in digic_realize()
|
| /openbmc/openbmc/meta-evb/meta-evb-arm/meta-evb-fvp-base/recipes-phosphor/console/ |
| H A D | obmc-console_git.bbappend | 7 file://80-obmc-console-ttyAMA3-uart.rules \ 12 install -m 0644 ${UNPACKDIR}/80-obmc-console-ttyAMA3-uart.rules ${D}${sysconfdir}/udev/rules.d/ 15 FILES_${PN} += "${sysconfdir}/udev/rules.d/80-obmc-console-ttyAMA3-uart.rules"
|
| /openbmc/openbmc/meta-yadro/meta-vegman/recipes-phosphor/console/ |
| H A D | obmc-console_%.bbappend | 7 file://uart-remapping.sh \ 16 rm -rf ${D}${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules 18 install -m 0755 ${UNPACKDIR}/uart-remapping.sh -D -t ${D}${sbindir}
|
| /openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/console/ |
| H A D | obmc-console_%.bbappend | 3 SRC_URI:append = " file://uart-routing.sh \ 13 install -m 0755 ${UNPACKDIR}/uart-routing.sh -D ${D}${sbindir}/uart-routing.sh
|
| /openbmc/openbmc/meta-facebook/meta-minerva/recipes-phosphor/console/ |
| H A D | obmc-console_%.bbappend | 8 file://80-minerva-obmc-console-uart.rules \ 17 rm -f ${D}/${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules 18 …install -m 0644 ${UNPACKDIR}/80-minerva-obmc-console-uart.rules ${D}/${nonarch_base_libdir}/udev/r…
|
| /openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/console/ |
| H A D | obmc-console_%.bbappend | 4 file://plat-80-obmc-console-uart.rules \ 10 …ll -m 0644 ${UNPACKDIR}/plat-80-obmc-console-uart.rules ${D}${base_libdir}/udev/rules.d/80-obmc-co…
|
| /openbmc/phosphor-host-ipmid/transport/serialbridge/ |
| H A D | serialbridged.cpp | 44 stdplus::ManagedFd uart = stdplus::fd::open( in execute() local 53 IO ioSource(event, uart.get(), EPOLLIN | EPOLLET, in execute() 55 [&serialchannel, &uart, &bus, &slot](IO&, int, uint32_t) { in execute() 56 serialchannel->read(uart, bus, slot); in execute()
|
| /openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/console/ |
| H A D | obmc-console_%.bbappend | 9 file://plat-80-obmc-console-uart.rules \ 17 …ll -m 0644 ${UNPACKDIR}/plat-80-obmc-console-uart.rules ${D}${base_libdir}/udev/rules.d/80-obmc-co…
|