| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | mcfuart.c | 28 static int mcf_serial_init_common(uart_t *uart, int port_idx, int baudrate) in mcf_serial_init_common() argument 35 writeb(UART_UCR_RESET_RX, &uart->ucr); in mcf_serial_init_common() 36 writeb(UART_UCR_RESET_TX, &uart->ucr); in mcf_serial_init_common() 37 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in mcf_serial_init_common() 38 writeb(UART_UCR_RESET_MR, &uart->ucr); in mcf_serial_init_common() 41 writeb(0, &uart->uimr); in mcf_serial_init_common() 44 writeb(UART_UCSR_RCS_SYS_CLK | UART_UCSR_TCS_SYS_CLK, &uart->ucsr); in mcf_serial_init_common() 46 writeb(UART_UMR_BC_8 | UART_UMR_PM_NONE, &uart->umr); in mcf_serial_init_common() 47 writeb(UART_UMR_SB_STOP_BITS_1, &uart->umr); in mcf_serial_init_common() 54 writeb((u8)((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_init_common() [all …]
|
| H A D | serial_s5p.c | 63 static void __maybe_unused s5p_serial_init(struct s5p_uart *uart) in s5p_serial_init() argument 66 writel(0x3, &uart->ufcon); in s5p_serial_init() 67 writel(0, &uart->umcon); in s5p_serial_init() 69 writel(0x3, &uart->ulcon); in s5p_serial_init() 71 writel(0x245, &uart->ucon); in s5p_serial_init() 74 static void __maybe_unused s5p_serial_baud(struct s5p_uart *uart, uint uclk, in s5p_serial_baud() argument 81 writel(val / 16 - 1, &uart->ubrdiv); in s5p_serial_baud() 84 writew(udivslot[val % 16], &uart->rest.slot); in s5p_serial_baud() 86 writeb(val % 16, &uart->rest.value); in s5p_serial_baud() 93 struct s5p_uart *const uart = plat->reg; in s5p_serial_setbrg() local [all …]
|
| H A D | serial_meson.c | 47 static void meson_serial_init(struct meson_uart *uart) in meson_serial_init() argument 51 val = readl(&uart->control); in meson_serial_init() 53 writel(val, &uart->control); in meson_serial_init() 55 writel(val, &uart->control); in meson_serial_init() 57 writel(val, &uart->control); in meson_serial_init() 63 struct meson_uart *const uart = plat->reg; in meson_serial_probe() local 65 meson_serial_init(uart); in meson_serial_probe() 73 struct meson_uart *const uart = plat->reg; in meson_serial_getc() local 75 if (readl(&uart->status) & AML_UART_RX_EMPTY) in meson_serial_getc() 78 return readl(&uart->rfifo) & 0xff; in meson_serial_getc() [all …]
|
| H A D | serial_sti_asc.c | 71 struct sti_asc_uart *const uart = priv->regs; in sti_asc_pending() local 74 status = readl(&uart->status); in sti_asc_pending() 81 static int _sti_asc_serial_setbrg(struct sti_asc_uart *uart, int baudrate) in _sti_asc_serial_setbrg() argument 109 val = readl(&uart->control); in _sti_asc_serial_setbrg() 110 writel(val & ~RUN, &uart->control); in _sti_asc_serial_setbrg() 113 writel(t, &uart->baudrate); in _sti_asc_serial_setbrg() 115 writel(1, &uart->txreset); in _sti_asc_serial_setbrg() 116 writel(1, &uart->rxreset); in _sti_asc_serial_setbrg() 123 writel(val, &uart->control); in _sti_asc_serial_setbrg() 132 struct sti_asc_uart *const uart = priv->regs; in sti_asc_serial_setbrg() local [all …]
|
| H A D | serial_pxa.c | 178 #define pxa_uart(uart, UART) \ argument 179 int uart##_init(void) \ 184 void uart##_setbrg(void) \ 189 void uart##_putc(const char c) \ 194 void uart##_puts(const char *s) \ 199 int uart##_getc(void) \ 204 int uart##_tstc(void) \ 209 #define pxa_uart_desc(uart) \ argument 210 struct serial_device serial_##uart##_device = \ 212 .name = "serial_"#uart, \ [all …]
|
| H A D | serial_mxc.c | 283 struct mxc_uart *const uart = plat->reg; in mxc_serial_getc() local 285 if (readl(&uart->ts) & UTS_RXEMPTY) in mxc_serial_getc() 288 return readl(&uart->rxd) & URXD_RX_DATA; in mxc_serial_getc() 294 struct mxc_uart *const uart = plat->reg; in mxc_serial_putc() local 296 if (!(readl(&uart->ts) & UTS_TXEMPTY)) in mxc_serial_putc() 299 writel(ch, &uart->txd); in mxc_serial_putc() 307 struct mxc_uart *const uart = plat->reg; in mxc_serial_pending() local 308 uint32_t sr2 = readl(&uart->sr2); in mxc_serial_pending()
|
| /rk3399_rockchip-uboot/board/astro/mcf5373l/ |
| H A D | mcf5373l.c | 91 uart_t *uart; in rs_serial_init() local 96 uart = (uart_t *)(MMAP_UART0); in rs_serial_init() 99 uart = (uart_t *)(MMAP_UART1); in rs_serial_init() 102 uart = (uart_t *)(MMAP_UART2); in rs_serial_init() 105 uart = (uart_t *)(MMAP_UART0); in rs_serial_init() 111 writeb(UART_UCR_RESET_RX, &uart->ucr); in rs_serial_init() 112 writeb(UART_UCR_RESET_TX, &uart->ucr); in rs_serial_init() 113 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in rs_serial_init() 114 writeb(UART_UCR_RESET_MR, &uart->ucr); in rs_serial_init() 117 writeb(0, &uart->uimr); in rs_serial_init() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/debug-uart/ |
| H A D | Makefile | 6 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += debug-uart-ld4.o 7 obj-$(CONFIG_ARCH_UNIPHIER_PRO4) += debug-uart-pro4.o 8 obj-$(CONFIG_ARCH_UNIPHIER_SLD8) += debug-uart-sld8.o 9 obj-$(CONFIG_ARCH_UNIPHIER_PRO5) += debug-uart-pro5.o 10 obj-$(CONFIG_ARCH_UNIPHIER_PXS2) += debug-uart-pxs2.o 11 obj-$(CONFIG_ARCH_UNIPHIER_LD6B) += debug-uart-ld6b.o 12 obj-$(CONFIG_ARCH_UNIPHIER_LD11) += debug-uart-ld20.o 13 obj-$(CONFIG_ARCH_UNIPHIER_LD20) += debug-uart-ld20.o 16 obj-y += debug-uart.o
|
| /rk3399_rockchip-uboot/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 | qca,ar9330-uart.txt | 5 - compatible: Must be "qca,ar9330-uart" 21 uart0: uart@18020000 { 22 compatible = "qca,ar9330-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 | microchip,pic32-uart.txt | 4 - compatible: must be "microchip,pic32mzda-uart".
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3328/ |
| H A D | rk3328.c | 77 struct rk_uart * const uart = (void *)UART2_BASE; in board_debug_uart_init() local 98 writel(0x83, &uart->lcr); in board_debug_uart_init() 99 writel(0x1, &uart->rbr); in board_debug_uart_init() 100 writel(0x3, &uart->lcr); in board_debug_uart_init() 114 writel(0x1, &uart->sfe); in board_debug_uart_init()
|
| /rk3399_rockchip-uboot/board/freescale/ls1046aqds/ |
| H A D | ls1046aqds.c | 176 u8 uart; in board_early_init_f() local 198 uart = QIXIS_READ(brdcfg[14]); in board_early_init_f() 199 uart &= ~CFG_UART_MUX_MASK; in board_early_init_f() 200 uart |= CFG_LPUART_EN << CFG_UART_MUX_SHIFT; in board_early_init_f() 201 QIXIS_WRITE(brdcfg[14], uart); in board_early_init_f()
|
| /rk3399_rockchip-uboot/arch/arm/dts/ |
| H A D | exynos4.dtsi | 32 compatible = "samsung,exynos4210-uart"; 38 compatible = "samsung,exynos4210-uart"; 44 compatible = "samsung,exynos4210-uart"; 50 compatible = "samsung,exynos4210-uart"; 56 compatible = "samsung,exynos4210-uart";
|
| H A D | hi6220.dtsi | 165 uart0: uart@f8015000 { /* console */ 175 uart1: uart@f7111000 { 186 uart2: uart@f7112000 { 197 uart3: uart@f7113000 { 207 uart4: uart@f7114000 {
|
| H A D | imx6ull.dtsi | 303 compatible = "fsl,imx6ul-uart", 304 "fsl,imx6q-uart", "fsl,imx21-uart"; 316 compatible = "fsl,imx6ul-uart", 317 "fsl,imx6q-uart", "fsl,imx21-uart"; 1028 compatible = "fsl,imx6ul-uart", 1029 "fsl,imx6q-uart", "fsl,imx21-uart"; 1041 compatible = "fsl,imx6ul-uart", 1042 "fsl,imx6q-uart", "fsl,imx21-uart"; 1054 compatible = "fsl,imx6ul-uart", 1055 "fsl,imx6q-uart", "fsl,imx21-uart"; [all …]
|
| H A D | imx53.dtsi | 50 compatible = "fsl,imx7d-uart", "fsl,imx53-uart", "fsl,imx21-uart";
|
| H A D | exynos5.dtsi | 225 compatible = "samsung,exynos4210-uart"; 232 compatible = "samsung,exynos4210-uart"; 239 compatible = "samsung,exynos4210-uart"; 246 compatible = "samsung,exynos4210-uart";
|
| H A D | dm816x.dtsi | 375 uart1: uart@48020000 { 376 compatible = "ti,am3352-uart", "ti,omap3-uart"; 385 uart2: uart@48022000 { 386 compatible = "ti,am3352-uart", "ti,omap3-uart"; 395 uart3: uart@48024000 { 396 compatible = "ti,am3352-uart", "ti,omap3-uart";
|
| H A D | imx6sll.dtsi | 266 compatible = "fsl,imx6sll-uart", "fsl,imx6q-uart", "fsl,imx21-uart"; 278 compatible = "fsl,imx6sll-uart", "fsl,imx6q-uart", "fsl,imx21-uart"; 290 compatible = "fsl,imx6sll-uart", "fsl,imx6q-uart", "fsl,imx21-uart"; 341 compatible = "fsl,imx6sll-uart", "fsl,imx6q-uart", "fsl,imx21-uart"; 847 compatible = "fsl,imx6sll-uart", "fsl,imx6q-uart", "fsl,imx21-uart";
|
| H A D | imx6sl.dtsi | 217 compatible = "fsl,imx6sl-uart", 218 "fsl,imx6q-uart", "fsl,imx21-uart"; 230 compatible = "fsl,imx6sl-uart", 231 "fsl,imx6q-uart", "fsl,imx21-uart"; 243 compatible = "fsl,imx6sl-uart", 244 "fsl,imx6q-uart", "fsl,imx21-uart"; 304 compatible = "fsl,imx6sl-uart", 305 "fsl,imx6q-uart", "fsl,imx21-uart"; 317 compatible = "fsl,imx6sl-uart", 318 "fsl,imx6q-uart", "fsl,imx21-uart";
|
| /rk3399_rockchip-uboot/board/freescale/ls1043aqds/ |
| H A D | ls1043aqds.c | 237 u8 uart; in board_early_init_f() local 257 uart = QIXIS_READ(brdcfg[14]); in board_early_init_f() 258 uart &= ~CFG_UART_MUX_MASK; in board_early_init_f() 259 uart |= CFG_LPUART_EN << CFG_UART_MUX_SHIFT; in board_early_init_f() 260 QIXIS_WRITE(brdcfg[14], uart); in board_early_init_f()
|
| /rk3399_rockchip-uboot/arch/mips/dts/ |
| H A D | ar933x.dtsi | 69 uart0: uart@18020000 { 70 compatible = "qca,ar9330-uart";
|