Home
last modified time | relevance | path

Searched full:usart (Results 1 – 25 of 101) sorted by relevance

12345

/openbmc/qemu/hw/char/
H A Davr_usart.c2 * AVR USART
31 AVRUsartState *usart = opaque; in avr_usart_can_receive() local
33 if (usart->data_valid || !(usart->csrb & USART_CSRB_RXEN)) { in avr_usart_can_receive()
41 AVRUsartState *usart = opaque; in avr_usart_receive() local
43 assert(!usart->data_valid); in avr_usart_receive()
44 usart->data = buffer[0]; in avr_usart_receive()
45 usart->data_valid = true; in avr_usart_receive()
46 usart->csra |= USART_CSRA_RXC; in avr_usart_receive()
47 if (usart->csrb & USART_CSRB_RXCIE) { in avr_usart_receive()
48 qemu_set_irq(usart->rxc_irq, 1); in avr_usart_receive()
[all …]
H A Dtrace-events110 stm32l4x5_usart_read(uint64_t addr, uint32_t data) "USART: Read <0x%" PRIx64 "> -> 0x%" PRIx32 ""
111 stm32l4x5_usart_write(uint64_t addr, uint32_t data) "USART: Write <0x%" PRIx64 "> <- 0x%" PRIx32 ""
112 stm32l4x5_usart_rx(uint8_t c) "USART: got character 0x%x from backend"
113 stm32l4x5_usart_tx(uint8_t c) "USART: character 0x%x sent to backend"
114 stm32l4x5_usart_tx_pending(void) "USART: character send to backend pending"
115 stm32l4x5_usart_irq_raised(uint32_t reg) "USART: IRQ raised: 0x%08"PRIx32
116 stm32l4x5_usart_irq_lowered(void) "USART: IRQ lowered"
117 stm32l4x5_usart_overrun_detected(uint8_t current, uint8_t received) "USART: Overrun detected, RDR='…
118 stm32l4x5_usart_receiver_not_enabled(uint8_t ue_bit, uint8_t re_bit) "USART: Receiver not enabled, …
119 stm32l4x5_usart_update_params(int speed, uint8_t parity, int data, int stop) "USART: speed: %d, par…
/openbmc/u-boot/drivers/serial/
H A Datmel_usart.c29 static void atmel_serial_setbrg_internal(atmel_usart3_t *usart, int id, in atmel_serial_setbrg_internal() argument
42 writel(USART3_BF(CD, divisor), &usart->brgr); in atmel_serial_setbrg_internal()
45 static void atmel_serial_init_internal(atmel_usart3_t *usart) in atmel_serial_init_internal() argument
51 if (!(readl(&usart->csr) & USART3_BIT(TXEMPTY))) in atmel_serial_init_internal()
54 writel(USART3_BIT(RSTRX) | USART3_BIT(RSTTX), &usart->cr); in atmel_serial_init_internal()
57 static void atmel_serial_activate(atmel_usart3_t *usart) in atmel_serial_activate() argument
64 &usart->mr); in atmel_serial_activate()
65 writel(USART3_BIT(RXEN) | USART3_BIT(TXEN), &usart->cr); in atmel_serial_activate()
78 atmel_usart3_t *usart = (atmel_usart3_t *)CONFIG_USART_BASE; in atmel_serial_init() local
80 atmel_serial_init_internal(usart); in atmel_serial_init()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/serial/
H A Datmel,at91-usart.yaml5 $id: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#
8 title: Atmel Universal Synchronous Asynchronous Receiver/Transmitter (USART)
17 - atmel,at91rm9200-usart
18 - atmel,at91sam9260-usart
21 - const: atmel,at91rm9200-usart
24 - const: atmel,at91sam9260-usart
26 - const: microchip,sam9x60-usart
27 - const: atmel,at91sam9260-usart
30 - const: microchip,sam9x60-usart
32 - const: atmel,at91sam9260-usart
[all …]
H A Ddigicolor-usart.txt1 Binding for Conexant Digicolor USART
3 Note: this binding is only applicable for using the USART peripheral as
4 UART. USART also support synchronous serial protocols like SPI and I2S. Use
8 - compatible : should be "cnxt,cx92755-usart".
9 - reg: Should contain USART controller registers location and length.
10 - interrupts: Should contain a single USART controller interrupt.
11 - clocks: Must contain phandles to the USART clock
23 compatible = "cnxt,cx92755-usart";
/openbmc/linux/arch/arm/boot/dts/microchip/
H A Dsam9x60.dtsi15 #include <dt-bindings/mfd/at91-usart.h>
175 compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
188 clock-names = "usart";
189 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
244 compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
246 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
258 clock-names = "usart";
374 compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
387 clock-names = "usart";
388 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
[all …]
H A Dsama5d3_uart.dtsi12 #include <dt-bindings/mfd/at91-usart.h>
41 compatible = "atmel,at91sam9260-usart";
43 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
48 clock-names = "usart";
53 compatible = "atmel,at91sam9260-usart";
55 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
60 clock-names = "usart";
H A Dat91sam9x5_usart3.dtsi4 * 4 USART.
11 #include <dt-bindings/mfd/at91-usart.h>
46 compatible = "atmel,at91sam9260-usart";
48 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
56 clock-names = "usart";
H A Dat91sam9260.dtsi14 #include <dt-bindings/mfd/at91-usart.h>
534 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
536 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
541 clock-names = "usart";
546 compatible = "atmel,at91sam9260-usart";
548 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
555 clock-names = "usart";
560 compatible = "atmel,at91sam9260-usart";
562 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
569 clock-names = "usart";
[all …]
H A Dsama5d2.dtsi12 #include <dt-bindings/mfd/at91-usart.h>
443 compatible = "atmel,at91sam9260-usart";
445 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
455 clock-names = "usart";
460 compatible = "atmel,at91sam9260-usart";
462 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
472 clock-names = "usart";
477 compatible = "atmel,at91sam9260-usart";
479 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
489 clock-names = "usart";
[all …]
H A Dat91rm9200.dtsi16 #include <dt-bindings/mfd/at91-usart.h>
598 compatible = "atmel,at91rm9200-dbgu", "atmel,at91rm9200-usart";
600 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
605 clock-names = "usart";
610 compatible = "atmel,at91rm9200-usart";
612 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
619 clock-names = "usart";
624 compatible = "atmel,at91rm9200-usart";
626 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
633 clock-names = "usart";
[all …]
H A Dat91sam9x5.dtsi16 #include <dt-bindings/mfd/at91-usart.h>
676 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
678 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
686 clock-names = "usart";
691 compatible = "atmel,at91sam9260-usart";
693 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
701 clock-names = "usart";
706 compatible = "atmel,at91sam9260-usart";
708 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
716 clock-names = "usart";
[all …]
H A Dat91sam9n12.dtsi14 #include <dt-bindings/mfd/at91-usart.h>
578 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
580 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
585 clock-names = "usart";
604 compatible = "atmel,at91sam9260-usart";
606 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
611 clock-names = "usart";
616 compatible = "atmel,at91sam9260-usart";
618 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
623 clock-names = "usart";
[all …]
H A Dat91sam9rl.dtsi14 #include <dt-bindings/mfd/at91-usart.h>
177 compatible = "atmel,at91sam9260-usart";
179 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
186 clock-names = "usart";
191 compatible = "atmel,at91sam9260-usart";
193 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
200 clock-names = "usart";
205 compatible = "atmel,at91sam9260-usart";
207 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
214 clock-names = "usart";
[all …]
H A Dat91sam9261.dtsi12 #include <dt-bindings/mfd/at91-usart.h>
181 compatible = "atmel,at91sam9260-usart";
183 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
190 clock-names = "usart";
195 compatible = "atmel,at91sam9260-usart";
197 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
204 clock-names = "usart";
209 compatible = "atmel,at91sam9260-usart";
211 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
218 clock-names = "usart";
[all …]
H A Dsama5d4.dtsi11 #include <dt-bindings/mfd/at91-usart.h>
280 compatible = "atmel,at91sam9260-usart";
282 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
294 clock-names = "usart";
440 compatible = "atmel,at91sam9260-usart";
442 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
454 clock-names = "usart";
459 compatible = "atmel,at91sam9260-usart";
461 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
473 clock-names = "usart";
[all …]
/openbmc/linux/drivers/mfd/
H A Dat91-usart.c3 * Driver for AT91 USART
11 #include <dt-bindings/mfd/at91-usart.h>
29 device_property_read_u32(&pdev->dev, "atmel,usart-mode", &opmode); in at91_usart_mode_probe()
39 dev_err(&pdev->dev, "atmel,usart-mode has an invalid value %u\n", in at91_usart_mode_probe()
49 { .compatible = "atmel,at91rm9200-usart" },
50 { .compatible = "atmel,at91sam9260-usart" },
67 MODULE_DESCRIPTION("AT91 USART MFD driver");
/openbmc/qemu/tests/qtest/
H A Dstm32l4x5_usart-test.c18 /* Use USART 1 ADDR, assume the others work the same */
55 /* No USART interrupts are less than 32 */ in check_nvic_pending()
63 /* No USART interrupts are less than 32 */ in clear_nvic_pending()
163 /* TODO: Enable usart via gpio */ in init_clocks()
195 /* Enable the transmitter, the receiver and the USART. */ in init_uart()
346 * For each USART device, enable its clock in RCC in test_clock_enable()
351 check_clock(qts, "machine/soc/usart[0]/clk", RCC_APB2ENR, 14); in test_clock_enable()
352 check_clock(qts, "machine/soc/usart[1]/clk", RCC_APB1ENR1, 17); in test_clock_enable()
353 check_clock(qts, "machine/soc/usart[2]/clk", RCC_APB1ENR1, 18); in test_clock_enable()
368 qtest_add_func("stm32l4x5/usart/write_read", test_write_read); in main()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Datmel-flexcom.txt4 controller and an USART. Only one function can be used at a time and is chosen
11 I/O registers (without USART, TWI or SPI registers).
16 (including USART, TWI and SPI registers).
18 - <1> for USART
31 - ../serial/atmel-usart.txt
/openbmc/u-boot/arch/arm/mach-at91/include/mach/
H A Dat91sam9260.h29 #define ATMEL_ID_USART0 6 /* USART 0 */
30 #define ATMEL_ID_USART1 7 /* USART 1 */
31 #define ATMEL_ID_USART2 8 /* USART 2 */
46 #define ATMEL_ID_USART3 23 /* USART 3 */
47 #define ATMEL_ID_USART4 24 /* USART 4 */
155 # define ATMEL_ID_USART5 25 /* USART 5 */
162 # define ATMEL_ID_USART5 25 /* USART 5 */
H A Dat91sam9rl.h26 #define ATMEL_ID_USART0 6 /* USART 0 */
27 #define ATMEL_ID_USART1 7 /* USART 1 */
28 #define ATMEL_ID_USART2 8 /* USART 2 */
29 #define ATMEL_ID_USART3 9 /* USART 3 */
H A Dat91rm9200.h18 #define ATMEL_ID_USART0 6 /* USART 0 */
19 #define ATMEL_ID_USART1 7 /* USART 1 */
20 #define ATMEL_ID_USART2 8 /* USART 2 */
21 #define ATMEL_ID_USART3 9 /* USART 3 */
/openbmc/qemu/include/hw/char/
H A Dstm32l4x5_usart.h2 * STM32L4X5 USART (Universal Synchronous Asynchronous Receiver Transmitter)
12 * The STM32L4X5 USART is heavily inspired by the stm32f2xx_usart
25 #define TYPE_STM32L4X5_USART_BASE "stm32l4x5-usart-base"
26 #define TYPE_STM32L4X5_USART "stm32l4x5-usart"
/openbmc/u-boot/arch/arm/dts/
H A Dsama5d3_uart.dtsi57 compatible = "atmel,at91sam9260-usart";
63 clock-names = "usart";
68 compatible = "atmel,at91sam9260-usart";
74 clock-names = "usart";
H A Dat91sam9x5_usart3.dtsi3 * 4 USART.
55 compatible = "atmel,at91sam9260-usart";
64 clock-names = "usart";

12345