/u-boot/board/nuvoton/common/ |
H A D | Makefile | 1 obj-$(CONFIG_SYS_SKIP_UART_INIT) += uart.o
|
/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 12 obj-y += debug-uart.o
|
/u-boot/drivers/serial/ |
H A D | serial_mcf.c | 14 * Minimal serial functions needed to use one of the uart ports 25 #include <asm/uart.h> 31 static int mcf_serial_init_common(uart_t *uart, int port_idx, int baudrate) argument 37 /* write to SICR: SIM2 = uart mode,dcd does not affect rx */ 38 writeb(UART_UCR_RESET_RX, &uart->ucr); 39 writeb(UART_UCR_RESET_TX, &uart->ucr); 40 writeb(UART_UCR_RESET_ERROR, &uart->ucr); 41 writeb(UART_UCR_RESET_MR, &uart->ucr); 44 writeb(0, &uart->uimr); 47 writeb(UART_UCSR_RCS_SYS_CLK | UART_UCSR_TCS_SYS_CLK, &uart 66 mcf_serial_setbrg_common(uart_t *uart, int baudrate) argument 98 uart_t *uart = (uart_t *)plat->base; local 112 uart_t *uart = (uart_t *)(plat->base); local 124 uart_t *uart = (uart_t *)(plat->base); local 134 uart_t *uart = (uart_t *)(plat->base); local [all...] |
H A D | serial_s5p.c | 19 #include <asm/arch/uart.h> 55 u8 port_id; /* uart port number */ 90 static void __maybe_unused s5p_serial_init(struct s5p_uart *uart) argument 93 writel(UFCON_FIFO_EN | UFCON_RX_FIFO_RESET, &uart->ufcon); 95 writel(UMCON_RESET_VAL, &uart->umcon); 97 writel(ULCON_WORD_8_BIT, &uart->ulcon); 100 UCON_RX_ERR_IRQ_EN | UCON_TX_IRQ_LEVEL, &uart->ucon); 103 static void __maybe_unused s5p_serial_baud(struct s5p_uart *uart, u8 reg_width, argument 110 writel(val / 16 - 1, &uart->ubrdiv); 113 writew(udivslot[val % 16], &uart 124 struct s5p_uart *const uart = plat->reg; local 147 struct s5p_uart *const uart = plat->reg; local 154 serial_err_check(const struct s5p_uart *const uart, int op) argument 176 struct s5p_uart *const uart = plat->reg; local 191 struct s5p_uart *const uart = plat->reg; local 208 struct s5p_uart *const uart = plat->reg; local 285 struct s5p_uart *uart = (struct s5p_uart *)CONFIG_VAL(DEBUG_UART_BASE); local 297 struct s5p_uart *uart = (struct s5p_uart *)CONFIG_VAL(DEBUG_UART_BASE); local [all...] |
H A D | serial_npcm.c | 42 u32 uart_clk; /* frequency of uart clock source */ 48 struct npcm_uart *uart = plat->reg; local 51 return readb(&uart->lsr) & LSR_RFDR ? 1 : 0; 53 return readb(&uart->lsr) & LSR_THRE ? 0 : 1; 59 struct npcm_uart *uart = plat->reg; local 61 if (!(readb(&uart->lsr) & LSR_THRE)) 64 writeb(ch, &uart->thr); 72 struct npcm_uart *uart = plat->reg; local 74 if (!(readb(&uart->lsr) & LSR_RFDR)) 77 return readb(&uart 83 struct npcm_uart *uart = plat->reg; local 103 struct npcm_uart *uart; local [all...] |
H A D | serial_meson.c | 65 static void meson_serial_set_baud(struct meson_uart *uart, ulong src_rate, u32 baud) argument 74 writel(val, &uart->reg5); 77 static void meson_serial_init(struct meson_uart *uart) argument 81 val = readl(&uart->control); 83 writel(val, &uart->control); 85 writel(val, &uart->control); 87 writel(val, &uart->control); 93 struct meson_uart *const uart = plat->reg; local 101 meson_serial_set_baud(uart, rate, CONFIG_BAUDRATE); 102 meson_serial_init(uart); 110 struct meson_uart *const uart = plat->reg; local 126 struct meson_uart *const uart = plat->reg; local 143 struct meson_uart *const uart = plat->reg; local 164 struct meson_uart *const uart = plat->reg; local 186 struct meson_uart *const uart = plat->reg; local [all...] |
H A D | serial_sti_asc.c | 73 struct sti_asc_uart *const uart = priv->regs; local 76 status = readl(&uart->status); 83 static int _sti_asc_serial_setbrg(struct sti_asc_uart *uart, int baudrate) argument 111 val = readl(&uart->control); 112 writel(val & ~RUN, &uart->control); 115 writel(t, &uart->baudrate); 117 writel(1, &uart->txreset); 118 writel(1, &uart->rxreset); 125 writel(val, &uart->control); 134 struct sti_asc_uart *const uart local 143 struct sti_asc_uart *const uart = priv->regs; local 156 struct sti_asc_uart *const uart = priv->regs; local [all...] |
H A D | serial_mxc.c | 325 struct mxc_uart *const uart = plat->reg; local 327 if (readl(&uart->ts) & UTS_RXEMPTY) 330 return readl(&uart->rxd) & URXD_RX_DATA; 336 struct mxc_uart *const uart = plat->reg; local 338 if (readl(&uart->ts) & UTS_TXFULL) 341 writel(ch, &uart->txd); 349 struct mxc_uart *const uart = plat->reg; local 350 uint32_t sr2 = readl(&uart->sr2); 383 { .compatible = "fsl,imx21-uart" }, 384 { .compatible = "fsl,imx53-uart" }, [all...] |
/u-boot/board/astro/mcf5373l/ |
H A D | mcf5373l.c | 20 #include <asm/uart.h> 94 uart_t *uart; local 99 uart = (uart_t *)(MMAP_UART0); 102 uart = (uart_t *)(MMAP_UART1); 105 uart = (uart_t *)(MMAP_UART2); 108 uart = (uart_t *)(MMAP_UART0); 113 /* write to SICR: SIM2 = uart mode,dcd does not affect rx */ 114 writeb(UART_UCR_RESET_RX, &uart->ucr); 115 writeb(UART_UCR_RESET_TX, &uart->ucr); 116 writeb(UART_UCR_RESET_ERROR, &uart 144 uart_t *uart; local 164 uart_t *uart; local 172 uart_t *uart; local [all...] |
/u-boot/board/rockchip/evb_rk3036/ |
H A D | evb_rk3036.c | 9 #include <asm/arch-rockchip/uart.h>
|
/u-boot/arch/arm/mach-rockchip/rk3328/ |
H A D | rk3328.c | 11 #include <asm/arch-rockchip/uart.h> 99 struct rk_uart * const uart = (void *)UART2_BASE; local 119 /* init uart baud rate 1500000 */ 120 writel(0x83, &uart->lcr); 121 writel(0x1, &uart->rbr); 122 writel(0x3, &uart->lcr); 136 writel(0x1, &uart->sfe);
|
/u-boot/board/rockchip/kylin_rk3036/ |
H A D | kylin_rk3036.c | 11 #include <asm/arch-rockchip/uart.h>
|
/u-boot/board/avionic-design/common/ |
H A D | tamonten.c | 20 #include <asm/arch-tegra/uart.h>
|
/u-boot/lib/efi_loader/ |
H A D | efi_device_path_to_text.c | 128 struct efi_device_path_uart *uart = local 133 s += sprintf(s, "Uart(%lld,%d,", uart->baud_rate, 134 uart->data_bits); 142 if (uart->parity < 6) 143 s += sprintf(s, "%c,", parity_str[uart->parity]); 145 s += sprintf(s, "%d,", uart->parity); 146 if (uart->stop_bits < 4) 147 s += sprintf(s, "%s)", stop_bits_str[uart->stop_bits]); 149 s += sprintf(s, "%d)", uart->stop_bits);
|
/u-boot/arch/x86/cpu/apollolake/ |
H A D | Makefile | 27 obj-y += uart.o
|
H A D | cpu_common.c | 15 #include <asm/arch/uart.h>
|
/u-boot/board/freescale/ls1028a/ |
H A D | ls1028a.c | 123 u8 uart; local 143 uart = QIXIS_READ(brdcfg[13]); 144 uart &= ~CFG_LPUART_MUX_MASK; 145 uart |= CFG_LPUART_EN; 146 QIXIS_WRITE(brdcfg[13], uart);
|
/u-boot/board/freescale/ls1046aqds/ |
H A D | ls1046aqds.c | 308 u8 uart; local 335 uart = QIXIS_READ(brdcfg[14]); 336 uart &= ~CFG_UART_MUX_MASK; 337 uart |= CFG_LPUART_EN << CFG_UART_MUX_SHIFT; 338 QIXIS_WRITE(brdcfg[14], uart);
|
/u-boot/arch/arm/mach-uniphier/ |
H A D | Makefile | 33 obj-$(CONFIG_DEBUG_UART_UNIPHIER) += debug-uart/
|
/u-boot/arch/mips/mach-jz47xx/jz4780/ |
H A D | pll.c | 511 void jz4780_clk_ungate_uart(const unsigned int uart) argument 515 if (uart == 0) 517 else if (uart == 1) 519 else if (uart == 2) 521 else if (uart == 3) 523 else if (uart == 4) 526 printf("%s[%i]: Invalid UART %d\n", __func__, __LINE__, uart);
|
/u-boot/board/freescale/ls1043aqds/ |
H A D | ls1043aqds.c | 438 u8 uart; local 463 uart = QIXIS_READ(brdcfg[14]); 464 uart &= ~CFG_UART_MUX_MASK; 465 uart |= CFG_LPUART_EN << CFG_UART_MUX_SHIFT; 466 QIXIS_WRITE(brdcfg[14], uart);
|
/u-boot/arch/arm/mach-s5pc1xx/include/mach/ |
H A D | cpu.h | 98 SAMSUNG_BASE(uart, UART_BASE)
|
/u-boot/arch/arm/mach-lpc32xx/ |
H A D | devices.c | 11 #include <asm/arch/uart.h>
|
/u-boot/arch/mips/mach-octeon/include/mach/ |
H A D | cvmx-ciu-defs.h | 1627 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_s 1648 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn30xx 1669 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn31xx 1686 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn38xx 1712 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn52xx 1736 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn56xx 1763 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn61xx 1789 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn66xx 1812 u64 uart : 2; member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cn70xx 1838 u64 uart member in struct:cvmx_ciu_intx_en0::cvmx_ciu_intx_en0_cnf71xx 1875 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_s 1899 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cn52xx 1922 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cn56xx 1939 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cn58xx 1963 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cn61xx 1989 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cn66xx 2012 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cn70xx 2038 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1c::cvmx_ciu_intx_en0_w1c_cnf71xx 2075 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_s 2099 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cn52xx 2122 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cn56xx 2139 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cn58xx 2163 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cn61xx 2189 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cn66xx 2212 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cn70xx 2238 u64 uart : 2; member in struct:cvmx_ciu_intx_en0_w1s::cvmx_ciu_intx_en0_w1s_cnf71xx 3088 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_s 3109 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn50xx 3133 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn52xx 3157 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn56xx 3175 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn58xx 3200 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn61xx 3226 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn66xx 3249 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cn70xx 3275 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0::cvmx_ciu_intx_en4_0_cnf71xx 3311 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_s 3335 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cn52xx 3358 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cn56xx 3375 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cn58xx 3399 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cn61xx 3425 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cn66xx 3448 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cn70xx 3474 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1c::cvmx_ciu_intx_en4_0_w1c_cnf71xx 3510 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_s 3534 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cn52xx 3557 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cn56xx 3574 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cn58xx 3598 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cn61xx 3624 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cn66xx 3647 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cn70xx 3673 u64 uart : 2; member in struct:cvmx_ciu_intx_en4_0_w1s::cvmx_ciu_intx_en4_0_w1s_cnf71xx 4487 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_s 4508 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn30xx 4529 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn31xx 4546 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn38xx 4572 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn52xx 4596 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn56xx 4623 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn61xx 4649 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn66xx 4672 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cn70xx 4698 u64 uart : 2; member in struct:cvmx_ciu_intx_sum0::cvmx_ciu_intx_sum0_cnf71xx 4736 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_s 4757 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn50xx 4781 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn52xx 4805 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn56xx 4823 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn58xx 4848 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn61xx 4874 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn66xx 4897 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cn70xx 4923 u64 uart : 2; member in struct:cvmx_ciu_intx_sum4::cvmx_ciu_intx_sum4_cnf71xx 4959 u64 uart : 2; member in struct:cvmx_ciu_int33_sum0::cvmx_ciu_int33_sum0_s 4984 u64 uart : 2; member in struct:cvmx_ciu_int33_sum0::cvmx_ciu_int33_sum0_cn63xx 5009 u64 uart : 2; member in struct:cvmx_ciu_int33_sum0::cvmx_ciu_int33_sum0_cn66xx 5032 u64 uart : 2; member in struct:cvmx_ciu_int33_sum0::cvmx_ciu_int33_sum0_cn70xx 5058 u64 uart : 2; member in struct:cvmx_ciu_int33_sum0::cvmx_ciu_int33_sum0_cnf71xx [all...] |
/u-boot/arch/mips/mach-jz47xx/include/mach/ |
H A D | jz4780.h | 90 void jz4780_clk_ungate_uart(const unsigned int uart);
|