diff options
author | Tony Lindgren <tony@atomide.com> | 2009-10-20 12:40:47 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-10-20 12:40:47 -0400 |
commit | ce491cf85466c3377228c5a852ea627ec5136956 (patch) | |
tree | 3396aa3dc80ac30de662b59218d3bf788d105996 /arch/arm/plat-omap/include/mach/serial.h | |
parent | 3eff851b9dc1e84aa0822772e0be9afb0c973585 (diff) |
omap: headers: Move remaining headers from include/mach to include/plat
Move the remaining headers under plat-omap/include/mach
to plat-omap/include/plat. Also search and replace the
files using these headers to include using the right path.
This was done with:
#!/bin/bash
mach_dir_old="arch/arm/plat-omap/include/mach"
plat_dir_new="arch/arm/plat-omap/include/plat"
headers=$(cd $mach_dir_old && ls *.h)
omap_dirs="arch/arm/*omap*/ \
drivers/video/omap \
sound/soc/omap"
other_files="drivers/leds/leds-ams-delta.c \
drivers/mfd/menelaus.c \
drivers/mfd/twl4030-core.c \
drivers/mtd/nand/ams-delta.c"
for header in $headers; do
old="#include <mach\/$header"
new="#include <plat\/$header"
for dir in $omap_dirs; do
find $dir -type f -name \*.[chS] | \
xargs sed -i "s/$old/$new/"
done
find drivers/ -type f -name \*omap*.[chS] | \
xargs sed -i "s/$old/$new/"
for file in $other_files; do
sed -i "s/$old/$new/" $file
done
done
for header in $(ls $mach_dir_old/*.h); do
git mv $header $plat_dir_new/
done
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/mach/serial.h')
-rw-r--r-- | arch/arm/plat-omap/include/mach/serial.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/arch/arm/plat-omap/include/mach/serial.h b/arch/arm/plat-omap/include/mach/serial.h deleted file mode 100644 index e249186d26e2..000000000000 --- a/arch/arm/plat-omap/include/mach/serial.h +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/serial.h | ||
3 | * | ||
4 | * Copyright (C) 2009 Texas Instruments | ||
5 | * Addded OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_ARCH_SERIAL_H | ||
14 | #define __ASM_ARCH_SERIAL_H | ||
15 | |||
16 | #include <linux/init.h> | ||
17 | |||
18 | #if defined(CONFIG_ARCH_OMAP1) | ||
19 | /* OMAP1 serial ports */ | ||
20 | #define OMAP_UART1_BASE 0xfffb0000 | ||
21 | #define OMAP_UART2_BASE 0xfffb0800 | ||
22 | #define OMAP_UART3_BASE 0xfffb9800 | ||
23 | #define OMAP_MAX_NR_PORTS 3 | ||
24 | #elif defined(CONFIG_ARCH_OMAP2) | ||
25 | /* OMAP2 serial ports */ | ||
26 | #define OMAP_UART1_BASE 0x4806a000 | ||
27 | #define OMAP_UART2_BASE 0x4806c000 | ||
28 | #define OMAP_UART3_BASE 0x4806e000 | ||
29 | #define OMAP_MAX_NR_PORTS 3 | ||
30 | #elif defined(CONFIG_ARCH_OMAP3) | ||
31 | /* OMAP3 serial ports */ | ||
32 | #define OMAP_UART1_BASE 0x4806a000 | ||
33 | #define OMAP_UART2_BASE 0x4806c000 | ||
34 | #define OMAP_UART3_BASE 0x49020000 | ||
35 | #define OMAP_MAX_NR_PORTS 3 | ||
36 | #elif defined(CONFIG_ARCH_OMAP4) | ||
37 | /* OMAP4 serial ports */ | ||
38 | #define OMAP_UART1_BASE 0x4806a000 | ||
39 | #define OMAP_UART2_BASE 0x4806c000 | ||
40 | #define OMAP_UART3_BASE 0x48020000 | ||
41 | #define OMAP_UART4_BASE 0x4806e000 | ||
42 | #define OMAP_MAX_NR_PORTS 4 | ||
43 | #endif | ||
44 | |||
45 | #define OMAP1510_BASE_BAUD (12000000/16) | ||
46 | #define OMAP16XX_BASE_BAUD (48000000/16) | ||
47 | #define OMAP24XX_BASE_BAUD (48000000/16) | ||
48 | |||
49 | #define is_omap_port(pt) ({int __ret = 0; \ | ||
50 | if ((pt)->port.mapbase == OMAP_UART1_BASE || \ | ||
51 | (pt)->port.mapbase == OMAP_UART2_BASE || \ | ||
52 | (pt)->port.mapbase == OMAP_UART3_BASE) \ | ||
53 | __ret = 1; \ | ||
54 | __ret; \ | ||
55 | }) | ||
56 | |||
57 | #ifndef __ASSEMBLER__ | ||
58 | extern void __init omap_serial_early_init(void); | ||
59 | extern void omap_serial_init(void); | ||
60 | extern int omap_uart_can_sleep(void); | ||
61 | extern void omap_uart_check_wakeup(void); | ||
62 | extern void omap_uart_prepare_suspend(void); | ||
63 | extern void omap_uart_prepare_idle(int num); | ||
64 | extern void omap_uart_resume_idle(int num); | ||
65 | extern void omap_uart_enable_irqs(int enable); | ||
66 | #endif | ||
67 | |||
68 | #endif | ||