Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * DaVinci serial device definitions
0004  *
0005  * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
0006  *
0007  * 2007 (c) MontaVista Software, Inc.
0008  */
0009 #ifndef __ASM_ARCH_SERIAL_H
0010 #define __ASM_ARCH_SERIAL_H
0011 
0012 #include <asm/memory.h>
0013 
0014 #include "hardware.h"
0015 
0016 #define DAVINCI_UART0_BASE  (IO_PHYS + 0x20000)
0017 #define DAVINCI_UART1_BASE  (IO_PHYS + 0x20400)
0018 #define DAVINCI_UART2_BASE  (IO_PHYS + 0x20800)
0019 
0020 #define DA8XX_UART0_BASE    (IO_PHYS + 0x042000)
0021 #define DA8XX_UART1_BASE    (IO_PHYS + 0x10c000)
0022 #define DA8XX_UART2_BASE    (IO_PHYS + 0x10d000)
0023 
0024 /* DaVinci UART register offsets */
0025 #define UART_DAVINCI_PWREMU     0x0c
0026 #define UART_DM646X_SCR         0x10
0027 #define UART_DM646X_SCR_TX_WATERMARK    0x08
0028 
0029 #ifndef __ASSEMBLY__
0030 #include <linux/platform_device.h>
0031 
0032 extern int davinci_serial_init(struct platform_device *);
0033 #endif
0034 
0035 #endif /* __ASM_ARCH_SERIAL_H */