Skip to content

Commit 6d9230e

Browse files
committed
ARM: omap2: remove include/mach/ subdirectory
mach/serial.h is only included from arch/arm/mach-omap2/serial.h, and the other two files are unused and empty. Remove the directory by relocating the contents of mach/serial.h and dropping all other references. Reviewed-by: Tony Lindgren <tony@atomide.com> Tested-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 0e7add1 commit 6d9230e

5 files changed

Lines changed: 66 additions & 76 deletions

File tree

arch/arm/mach-omap2/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Makefile for the linux kernel.
44
#
55

6-
ccflags-y := -I$(srctree)/$(src)/include \
7-
-I$(srctree)/arch/arm/plat-omap/include
8-
96
# Common support
107
obj-y := id.o io.o control.o devices.o fb.o pm.o \
118
common.o dma.o omap-headsmp.o sram.o

arch/arm/mach-omap2/include/mach/hardware.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

arch/arm/mach-omap2/include/mach/irqs.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

arch/arm/mach-omap2/include/mach/serial.h

Lines changed: 0 additions & 66 deletions
This file was deleted.

arch/arm/mach-omap2/serial.h

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
1-
#include <mach/serial.h>
1+
/*
2+
* Copyright (C) 2009 Texas Instruments
3+
* Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
4+
*
5+
* This program is distributed in the hope that it will be useful,
6+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
7+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8+
* GNU General Public License for more details.
9+
*/
10+
11+
/* OMAP2 serial ports */
12+
#define OMAP2_UART1_BASE 0x4806a000
13+
#define OMAP2_UART2_BASE 0x4806c000
14+
#define OMAP2_UART3_BASE 0x4806e000
15+
16+
/* OMAP3 serial ports */
17+
#define OMAP3_UART1_BASE OMAP2_UART1_BASE
18+
#define OMAP3_UART2_BASE OMAP2_UART2_BASE
19+
#define OMAP3_UART3_BASE 0x49020000
20+
#define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */
21+
#define OMAP3_UART4_AM35XX_BASE 0x4809E000 /* Only on AM35xx */
22+
23+
/* OMAP4 serial ports */
24+
#define OMAP4_UART1_BASE OMAP2_UART1_BASE
25+
#define OMAP4_UART2_BASE OMAP2_UART2_BASE
26+
#define OMAP4_UART3_BASE 0x48020000
27+
#define OMAP4_UART4_BASE 0x4806e000
28+
29+
/* TI81XX serial ports */
30+
#define TI81XX_UART1_BASE 0x48020000
31+
#define TI81XX_UART2_BASE 0x48022000
32+
#define TI81XX_UART3_BASE 0x48024000
33+
34+
/* AM3505/3517 UART4 */
35+
#define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */
36+
37+
/* AM33XX serial port */
38+
#define AM33XX_UART1_BASE 0x44E09000
39+
40+
/* OMAP5 serial ports */
41+
#define OMAP5_UART1_BASE OMAP2_UART1_BASE
42+
#define OMAP5_UART2_BASE OMAP2_UART2_BASE
43+
#define OMAP5_UART3_BASE OMAP4_UART3_BASE
44+
#define OMAP5_UART4_BASE OMAP4_UART4_BASE
45+
#define OMAP5_UART5_BASE 0x48066000
46+
#define OMAP5_UART6_BASE 0x48068000
47+
48+
/* External port on Zoom2/3 */
49+
#define ZOOM_UART_BASE 0x10000000
50+
#define ZOOM_UART_VIRT 0xfa400000
51+
52+
#define OMAP_PORT_SHIFT 2
53+
#define ZOOM_PORT_SHIFT 1
54+
55+
#define OMAP24XX_BASE_BAUD (48000000/16)
56+
57+
#ifndef __ASSEMBLER__
58+
59+
struct omap_board_data;
60+
struct omap_uart_port_info;
61+
62+
extern void omap_serial_init(void);
63+
extern void omap_serial_board_init(struct omap_uart_port_info *platform_data);
64+
extern void omap_serial_init_port(struct omap_board_data *bdata,
65+
struct omap_uart_port_info *platform_data);
66+
#endif

0 commit comments

Comments
 (0)