mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
83ef3338a2
This patch introduces support for the tcc platform by creating an arch/arm/plat-tcc and arch/arm/mach-tcc8k directories and adding basic include files plus Kconfig and Makefile. Signed-off-by: "Hans J. Koch" <hjk@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
35 lines
596 B
C
35 lines
596 B
C
/*
|
|
* Copyright (C) 2009 Hans J. Koch <hjk@linutronix.de>
|
|
*
|
|
* This file is licensed under the terms of the GPL version 2.
|
|
*/
|
|
|
|
#include <linux/serial_reg.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <mach/tcc8k-regs.h>
|
|
|
|
unsigned int system_rev;
|
|
|
|
#define ID_MASK 0x7fff
|
|
|
|
static void putc(int c)
|
|
{
|
|
u32 *uart_lsr = (u32 *)(UART_BASE_PHYS + (UART_LSR << 2));
|
|
u32 *uart_tx = (u32 *)(UART_BASE_PHYS + (UART_TX << 2));
|
|
|
|
while (!(*uart_lsr & UART_LSR_THRE))
|
|
barrier();
|
|
*uart_tx = c;
|
|
}
|
|
|
|
static inline void flush(void)
|
|
{
|
|
}
|
|
|
|
/*
|
|
* nothing to do
|
|
*/
|
|
#define arch_decomp_setup()
|
|
#define arch_decomp_wdog()
|