mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 22:49:34 +07:00
ce78179ea6
This is a simple move of all header files that are no longer included by anything else from the include/mach directory to the platform directory itself as preparation for multiplatform support. The mach/uncompress.h headers are left in place for now, and are mildly modified to be independent of the other headers. They will be removed entirely when ARCH_MULTIPLATFORM gets enabled and they become obsolete. Rather than updating the path names inside of the comments of each header, I delete those comments to avoid having to update them again, should they get moved or copied another time. Link: https://lore.kernel.org/r/20190731195713.3150463-13-arnd@arndb.de Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
35 lines
655 B
C
35 lines
655 B
C
/*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#define UART0_PHYS_BASE (0xf1000000 + 0x12000)
|
|
|
|
#define UART_THR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x0))
|
|
#define UART_LSR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x14))
|
|
|
|
#define LSR_THRE 0x20
|
|
|
|
static void putc(const char c)
|
|
{
|
|
int i;
|
|
|
|
for (i = 0; i < 0x1000; i++) {
|
|
/* Transmit fifo not full? */
|
|
if (*UART_LSR & LSR_THRE)
|
|
break;
|
|
}
|
|
|
|
*UART_THR = c;
|
|
}
|
|
|
|
static void flush(void)
|
|
{
|
|
}
|
|
|
|
/*
|
|
* nothing to do
|
|
*/
|
|
#define arch_decomp_setup()
|