Lines Matching +full:power +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <asm/emergency-restart.h>
24 * responsible for signaling to the external Power Management Unit the
25 * intention to reset, reboot or power off the system. This 8051 device has
27 * to power off the system.
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.
57 offset = offset << p->regshift; in ce4100_mem_serial_in()
58 ret = readl(p->membase + offset); in ce4100_mem_serial_in()
78 offset = offset << p->regshift; in ce4100_mem_serial_out()
79 writel(value, p->membase + offset); in ce4100_mem_serial_out()
82 static void ce4100_serial_fixup(int port, struct uart_port *up, in ce4100_serial_fixup() argument
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()
148 * the bootloader will however issue a system power off instead of in x86_ce4100_early_setup()