mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* arch/arm/mach-w90x900/include/mach/regs-serial.h
|
|
*
|
|
* Copyright (c) 2008 Nuvoton technology corporation
|
|
* All rights reserved.
|
|
*
|
|
* Wan ZongShun <mcuos.com@gmail.com>
|
|
*
|
|
* Based on arch/arm/mach-s3c2410/include/mach/regs-serial.h
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_REGS_SERIAL_H
|
|
#define __ASM_ARM_REGS_SERIAL_H
|
|
|
|
#define UART0_BA W90X900_VA_UART
|
|
#define UART1_BA (W90X900_VA_UART+0x100)
|
|
#define UART2_BA (W90X900_VA_UART+0x200)
|
|
#define UART3_BA (W90X900_VA_UART+0x300)
|
|
#define UART4_BA (W90X900_VA_UART+0x400)
|
|
|
|
#define UART0_PA W90X900_PA_UART
|
|
#define UART1_PA (W90X900_PA_UART+0x100)
|
|
#define UART2_PA (W90X900_PA_UART+0x200)
|
|
#define UART3_PA (W90X900_PA_UART+0x300)
|
|
#define UART4_PA (W90X900_PA_UART+0x400)
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct w90x900_uart_clksrc {
|
|
const char *name;
|
|
unsigned int divisor;
|
|
unsigned int min_baud;
|
|
unsigned int max_baud;
|
|
};
|
|
|
|
struct w90x900_uartcfg {
|
|
unsigned char hwport;
|
|
unsigned char unused;
|
|
unsigned short flags;
|
|
unsigned long uart_flags;
|
|
|
|
unsigned long ucon;
|
|
unsigned long ulcon;
|
|
unsigned long ufcon;
|
|
|
|
struct w90x900_uart_clksrc *clocks;
|
|
unsigned int clocks_size;
|
|
};
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __ASM_ARM_REGS_SERIAL_H */
|
|
|