Home
last modified time | relevance | path

Searched refs:uart (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/external/arm-trusted-firmware/plat/mediatek/mt8183/drivers/uart/
Duart.c20 struct mt_uart *uart; in mt_uart_restore() local
27 uart = &uart_save_addr[uart_idx]; in mt_uart_restore()
28 base = uart->base; in mt_uart_restore()
31 mmio_write_32(UART_EFR(base), uart->registers.efr); in mt_uart_restore()
32 mmio_write_32(UART_LCR(base), uart->registers.lcr); in mt_uart_restore()
33 mmio_write_32(UART_FCR(base), uart->registers.fcr); in mt_uart_restore()
36 mmio_write_32(UART_HIGHSPEED(base), uart->registers.highspeed); in mt_uart_restore()
37 mmio_write_32(UART_FRACDIV_L(base), uart->registers.fracdiv_l); in mt_uart_restore()
38 mmio_write_32(UART_FRACDIV_M(base), uart->registers.fracdiv_m); in mt_uart_restore()
40 uart->registers.lcr | UART_LCR_DLAB); in mt_uart_restore()
[all …]
/external/u-boot/board/astro/mcf5373l/
Dmcf5373l.c91 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 …]
/external/u-boot/drivers/serial/
Dserial_s5p.c62 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 …]
Dmcfuart.c30 static int mcf_serial_init_common(uart_t *uart, int port_idx, int baudrate) in mcf_serial_init_common() argument
37 writeb(UART_UCR_RESET_RX, &uart->ucr); in mcf_serial_init_common()
38 writeb(UART_UCR_RESET_TX, &uart->ucr); in mcf_serial_init_common()
39 writeb(UART_UCR_RESET_ERROR, &uart->ucr); in mcf_serial_init_common()
40 writeb(UART_UCR_RESET_MR, &uart->ucr); in mcf_serial_init_common()
43 writeb(0, &uart->uimr); in mcf_serial_init_common()
46 writeb(UART_UCSR_RCS_SYS_CLK | UART_UCSR_TCS_SYS_CLK, &uart->ucsr); in mcf_serial_init_common()
48 writeb(UART_UMR_BC_8 | UART_UMR_PM_NONE, &uart->umr); in mcf_serial_init_common()
49 writeb(UART_UMR_SB_STOP_BITS_1, &uart->umr); in mcf_serial_init_common()
56 writeb((u8)((counter & 0xff00) >> 8), &uart->ubg1); in mcf_serial_init_common()
[all …]
Dserial_meson.c44 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 …]
Dserial_sti_asc.c70 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 …]
Dserial_pxa.c177 #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 …]
/external/u-boot/arch/arm/mach-uniphier/debug-uart/
DMakefile4 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
/external/u-boot/doc/device-tree-bindings/serial/
Domap_serial.txt4 - 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";
Dsnps-dw-apb-uart.txt4 - 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";
/external/u-boot/arch/m68k/dts/
Dmcf5441x.dtsi19 uart0: uart@fc060000 {
20 compatible = "fsl,mcf-uart";
25 uart1: uart@fc064000 {
26 compatible = "fsl,mcf-uart";
31 uart2: uart@fc068000 {
32 compatible = "fsl,mcf-uart";
37 uart3: uart@fc06c000 {
38 compatible = "fsl,mcf-uart";
Dmcf5329.dtsi18 uart0: uart@fc060000 {
19 compatible = "fsl,mcf-uart";
24 uart1: uart@fc064000 {
25 compatible = "fsl,mcf-uart";
30 uart2: uart@fc068000 {
31 compatible = "fsl,mcf-uart";
Dmcf537x.dtsi18 uart0: uart@fc060000 {
19 compatible = "fsl,mcf-uart";
24 uart1: uart@fc064000 {
25 compatible = "fsl,mcf-uart";
30 uart2: uart@fc068000 {
31 compatible = "fsl,mcf-uart";
Dmcf5208.dtsi18 uart0: uart@fc060000 {
19 compatible = "fsl,mcf-uart";
24 uart1: uart@fc064000 {
25 compatible = "fsl,mcf-uart";
30 uart2: uart@fc068000 {
31 compatible = "fsl,mcf-uart";
Dmcf5282.dtsi25 uart0: uart@200 {
26 compatible = "fsl,mcf-uart";
31 uart1: uart@240 {
32 compatible = "fsl,mcf-uart";
37 uart2: uart@280 {
38 compatible = "fsl,mcf-uart";
Dmcf523x.dtsi25 uart0: uart@200 {
26 compatible = "fsl,mcf-uart";
31 uart1: uart@240 {
32 compatible = "fsl,mcf-uart";
37 uart2: uart@280 {
38 compatible = "fsl,mcf-uart";
Dmcf5275.dtsi25 uart0: uart@200 {
26 compatible = "fsl,mcf-uart";
31 uart1: uart@240 {
32 compatible = "fsl,mcf-uart";
37 uart2: uart@280 {
38 compatible = "fsl,mcf-uart";
Dmcf5271.dtsi25 uart0: uart@200 {
26 compatible = "fsl,mcf-uart";
31 uart1: uart@240 {
32 compatible = "fsl,mcf-uart";
37 uart2: uart@280 {
38 compatible = "fsl,mcf-uart";
Dmcf5253.dtsi25 uart0: uart@1c0 {
26 compatible = "fsl,mcf-uart";
31 uart1: uart@200 {
32 compatible = "fsl,mcf-uart";
37 uart3: uart@c00 {
38 compatible = "fsl,mcf-uart";
Dmcf5301x.dtsi19 uart0: uart@fc060000 {
20 compatible = "fsl,mcf-uart";
25 uart1: uart@fc064000 {
26 compatible = "fsl,mcf-uart";
31 uart2: uart@fc068000 {
32 compatible = "fsl,mcf-uart";
Dmcf5445x.dtsi19 uart0: uart@fc060000 {
20 compatible = "fsl,mcf-uart";
25 uart1: uart@fc064000 {
26 compatible = "fsl,mcf-uart";
31 uart2: uart@fc068000 {
32 compatible = "fsl,mcf-uart";
Dmcf5227x.dtsi19 uart0: uart@fc060000 {
20 compatible = "fsl,mcf-uart";
25 uart1: uart@fc064000 {
26 compatible = "fsl,mcf-uart";
31 uart2: uart@fc068000 {
32 compatible = "fsl,mcf-uart";
Dmcf5272.dtsi25 uart0: uart@100 {
26 compatible = "fsl,mcf-uart";
31 uart1: uart@140 {
32 compatible = "fsl,mcf-uart";
/external/u-boot/arch/arm/dts/
Dk3-j721e-main.dtsi74 compatible = "ti,j721e-uart", "ti,am654-uart";
87 compatible = "ti,j721e-uart", "ti,am654-uart";
100 compatible = "ti,j721e-uart", "ti,am654-uart";
113 compatible = "ti,j721e-uart", "ti,am654-uart";
126 compatible = "ti,j721e-uart", "ti,am654-uart";
139 compatible = "ti,j721e-uart", "ti,am654-uart";
152 compatible = "ti,j721e-uart", "ti,am654-uart";
165 compatible = "ti,j721e-uart", "ti,am654-uart";
178 compatible = "ti,j721e-uart", "ti,am654-uart";
191 compatible = "ti,j721e-uart", "ti,am654-uart";
/external/u-boot/arch/arm/mach-rockchip/rk3328/
Drk3328.c62 struct rk_uart * const uart = (void *)UART2_BASE; in board_debug_uart_init() local
83 writel(0x83, &uart->lcr); in board_debug_uart_init()
84 writel(0x1, &uart->rbr); in board_debug_uart_init()
85 writel(0x3, &uart->lcr); in board_debug_uart_init()
99 writel(0x1, &uart->sfe); in board_debug_uart_init()

12345678910>>...13