Lines Matching +full:reboot +full:- +full:offset
1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/reboot.h>
20 #include <asm/emergency-restart.h>
25 * intention to reset, reboot or power off the system. This 8051 device has
36 static unsigned int mem_serial_in(struct uart_port *p, int offset) in mem_serial_in() argument
38 offset = offset << p->regshift; in mem_serial_in()
39 return readl(p->membase + offset); in mem_serial_in()
49 * errata number 9 in Errata - B step.
52 static unsigned int ce4100_mem_serial_in(struct uart_port *p, int offset) in ce4100_mem_serial_in() argument
56 if (offset == UART_IIR) { in ce4100_mem_serial_in()
57 offset = offset << p->regshift; in ce4100_mem_serial_in()
58 ret = readl(p->membase + offset); in ce4100_mem_serial_in()
72 ret = mem_serial_in(p, offset); in ce4100_mem_serial_in()
76 static void ce4100_mem_serial_out(struct uart_port *p, int offset, int value) in ce4100_mem_serial_out() argument
78 offset = offset << p->regshift; in ce4100_mem_serial_out()
79 writel(value, p->membase + offset); in ce4100_mem_serial_out()
91 if (up->iotype != UPIO_MEM32) { in ce4100_serial_fixup()
92 up->uartclk = 14745600; in ce4100_serial_fixup()
93 up->mapbase = 0xdffe0200; in ce4100_serial_fixup()
95 up->mapbase & PAGE_MASK); in ce4100_serial_fixup()
96 up->membase = in ce4100_serial_fixup()
98 up->membase += up->mapbase & ~PAGE_MASK; in ce4100_serial_fixup()
99 up->mapbase += port * 0x100; in ce4100_serial_fixup()
100 up->membase += port * 0x100; in ce4100_serial_fixup()
101 up->iotype = UPIO_MEM32; in ce4100_serial_fixup()
102 up->regshift = 2; in ce4100_serial_fixup()
103 up->irq = 4; in ce4100_serial_fixup()
106 up->iobase = 0; in ce4100_serial_fixup()
107 up->serial_in = ce4100_mem_serial_in; in ce4100_serial_fixup()
108 up->serial_out = ce4100_mem_serial_out; in ce4100_serial_fixup()
146 * By default, the reboot method is ACPI which is supported by the in x86_ce4100_early_setup()
149 * reboot. By using BOOT_KBD we ensure proper system reboot as in x86_ce4100_early_setup()