Home
last modified time | relevance | path

Searched refs:UART1_REG (Results 1 – 4 of 4) sorted by relevance

/linux/arch/arm/mach-orion5x/
H A Dtsx09-common.c22 #define UART1_REG(x) (UART1_VIRT_BASE + ((UART_##x) << 2)) macro
32 writel(0x83, UART1_REG(LCR)); in qnap_tsx09_power_off()
33 writel(divisor & 0xff, UART1_REG(DLL)); in qnap_tsx09_power_off()
34 writel((divisor >> 8) & 0xff, UART1_REG(DLM)); in qnap_tsx09_power_off()
35 writel(0x03, UART1_REG(LCR)); in qnap_tsx09_power_off()
36 writel(0x00, UART1_REG(IER)); in qnap_tsx09_power_off()
37 writel(0x00, UART1_REG(FCR)); in qnap_tsx09_power_off()
38 writel(0x00, UART1_REG(MCR)); in qnap_tsx09_power_off()
41 writel('A', UART1_REG(TX)); in qnap_tsx09_power_off()
H A Dterastation_pro2-setup.c159 #define UART1_REG(x) (UART1_VIRT_BASE + ((UART_##x) << 2)) macro
169 while (!(readl(UART1_REG(LSR)) & UART_LSR_DR)) { in tsp2_miconread()
177 buf[i] = readl(UART1_REG(RX)); in tsp2_miconread()
189 while (!(readl(UART1_REG(LSR)) & UART_LSR_THRE)) in tsp2_miconwrite()
191 writel(buf[i++], UART1_REG(TX)); in tsp2_miconwrite()
275 writel(0x83, UART1_REG(LCR)); in tsp2_power_off()
276 writel(divisor & 0xff, UART1_REG(DLL)); in tsp2_power_off()
277 writel((divisor >> 8) & 0xff, UART1_REG(DLM)); in tsp2_power_off()
278 writel(0x1b, UART1_REG(LCR)); in tsp2_power_off()
279 writel(0x00, UART1_REG(IER)); in tsp2_power_off()
[all …]
H A Dkurobox_pro-setup.c181 #define UART1_REG(x) (UART1_VIRT_BASE + ((UART_##x) << 2)) macro
191 while (!(readl(UART1_REG(LSR)) & UART_LSR_DR)) { in kurobox_pro_miconread()
199 buf[i] = readl(UART1_REG(RX)); in kurobox_pro_miconread()
211 while (!(readl(UART1_REG(LSR)) & UART_LSR_THRE)) in kurobox_pro_miconwrite()
213 writel(buf[i++], UART1_REG(TX)); in kurobox_pro_miconwrite()
297 writel(0x83, UART1_REG(LCR)); in kurobox_pro_power_off()
298 writel(divisor & 0xff, UART1_REG(DLL)); in kurobox_pro_power_off()
299 writel((divisor >> 8) & 0xff, UART1_REG(DLM)); in kurobox_pro_power_off()
300 writel(0x1b, UART1_REG(LCR)); in kurobox_pro_power_off()
301 writel(0x00, UART1_REG(IER)); in kurobox_pro_power_off()
[all …]
/linux/drivers/power/reset/
H A Dqnap-poweroff.c21 #define UART1_REG(x) (base + ((UART_##x) << 2)) macro
60 writel(0x83, UART1_REG(LCR)); in qnap_power_off()
61 writel(divisor & 0xff, UART1_REG(DLL)); in qnap_power_off()
62 writel((divisor >> 8) & 0xff, UART1_REG(DLM)); in qnap_power_off()
63 writel(0x03, UART1_REG(LCR)); in qnap_power_off()
64 writel(0x00, UART1_REG(IER)); in qnap_power_off()
65 writel(0x00, UART1_REG(FCR)); in qnap_power_off()
66 writel(0x00, UART1_REG(MCR)); in qnap_power_off()
69 writel(cfg->cmd, UART1_REG(TX)); in qnap_power_off()