aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-10-03 14:23:43 -0400
committerTony Lindgren <tony@atomide.com>2012-10-18 19:13:41 -0400
commitdc843280c954877b8a196e59a9f92cd8b94c2d25 (patch)
tree7341354c14364feea450348643c133d1e1d1164a /arch
parent2a296c8f89bc6aaf91b255c7d631fcbbfaf840ec (diff)
ARM: OMAP: Merge plat/multi.h into plat/cpu.h
This is private to cpu.h and no other places should need to include it and we can drop the include in mach-omap2/io.c. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/io.c3
-rw-r--r--arch/arm/plat-omap/include/plat/cpu.h96
-rw-r--r--arch/arm/plat-omap/include/plat/multi.h120
3 files changed, 96 insertions, 123 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 60dede839a35..b373cb59845c 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -27,12 +27,11 @@
27 27
28#include <plat/serial.h> 28#include <plat/serial.h>
29#include <plat/omap-pm.h> 29#include <plat/omap-pm.h>
30#include "omap_hwmod.h"
31#include <plat/multi.h>
32#include <plat-omap/dma-omap.h> 30#include <plat-omap/dma-omap.h>
33 31
34#include "../plat-omap/sram.h" 32#include "../plat-omap/sram.h"
35 33
34#include "omap_hwmod.h"
36#include "soc.h" 35#include "soc.h"
37#include "iomap.h" 36#include "iomap.h"
38#include "voltage.h" 37#include "voltage.h"
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h
index 67da857783ce..bfd9c5f5ee14 100644
--- a/arch/arm/plat-omap/include/plat/cpu.h
+++ b/arch/arm/plat-omap/include/plat/cpu.h
@@ -33,7 +33,101 @@
33#ifndef __ASSEMBLY__ 33#ifndef __ASSEMBLY__
34 34
35#include <linux/bitops.h> 35#include <linux/bitops.h>
36#include <plat/multi.h> 36
37/*
38 * Test if multicore OMAP support is needed
39 */
40#undef MULTI_OMAP1
41#undef MULTI_OMAP2
42#undef OMAP_NAME
43
44#ifdef CONFIG_ARCH_OMAP730
45# ifdef OMAP_NAME
46# undef MULTI_OMAP1
47# define MULTI_OMAP1
48# else
49# define OMAP_NAME omap730
50# endif
51#endif
52#ifdef CONFIG_ARCH_OMAP850
53# ifdef OMAP_NAME
54# undef MULTI_OMAP1
55# define MULTI_OMAP1
56# else
57# define OMAP_NAME omap850
58# endif
59#endif
60#ifdef CONFIG_ARCH_OMAP15XX
61# ifdef OMAP_NAME
62# undef MULTI_OMAP1
63# define MULTI_OMAP1
64# else
65# define OMAP_NAME omap1510
66# endif
67#endif
68#ifdef CONFIG_ARCH_OMAP16XX
69# ifdef OMAP_NAME
70# undef MULTI_OMAP1
71# define MULTI_OMAP1
72# else
73# define OMAP_NAME omap16xx
74# endif
75#endif
76#ifdef CONFIG_ARCH_OMAP2PLUS
77# if (defined(OMAP_NAME) || defined(MULTI_OMAP1))
78# error "OMAP1 and OMAP2PLUS can't be selected at the same time"
79# endif
80#endif
81#ifdef CONFIG_SOC_OMAP2420
82# ifdef OMAP_NAME
83# undef MULTI_OMAP2
84# define MULTI_OMAP2
85# else
86# define OMAP_NAME omap2420
87# endif
88#endif
89#ifdef CONFIG_SOC_OMAP2430
90# ifdef OMAP_NAME
91# undef MULTI_OMAP2
92# define MULTI_OMAP2
93# else
94# define OMAP_NAME omap2430
95# endif
96#endif
97#ifdef CONFIG_ARCH_OMAP3
98# ifdef OMAP_NAME
99# undef MULTI_OMAP2
100# define MULTI_OMAP2
101# else
102# define OMAP_NAME omap3
103# endif
104#endif
105#ifdef CONFIG_ARCH_OMAP4
106# ifdef OMAP_NAME
107# undef MULTI_OMAP2
108# define MULTI_OMAP2
109# else
110# define OMAP_NAME omap4
111# endif
112#endif
113
114#ifdef CONFIG_SOC_OMAP5
115# ifdef OMAP_NAME
116# undef MULTI_OMAP2
117# define MULTI_OMAP2
118# else
119# define OMAP_NAME omap5
120# endif
121#endif
122
123#ifdef CONFIG_SOC_AM33XX
124# ifdef OMAP_NAME
125# undef MULTI_OMAP2
126# define MULTI_OMAP2
127# else
128# define OMAP_NAME am33xx
129# endif
130#endif
37 131
38/* 132/*
39 * Omap device type i.e. EMU/HS/TST/GP/BAD 133 * Omap device type i.e. EMU/HS/TST/GP/BAD
diff --git a/arch/arm/plat-omap/include/plat/multi.h b/arch/arm/plat-omap/include/plat/multi.h
deleted file mode 100644
index 324d31b14852..000000000000
--- a/arch/arm/plat-omap/include/plat/multi.h
+++ /dev/null
@@ -1,120 +0,0 @@
1/*
2 * Support for compiling in multiple OMAP processors
3 *
4 * Copyright (C) 2010 Nokia Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 */
21
22#ifndef __PLAT_OMAP_MULTI_H
23#define __PLAT_OMAP_MULTI_H
24
25/*
26 * Test if multicore OMAP support is needed
27 */
28#undef MULTI_OMAP1
29#undef MULTI_OMAP2
30#undef OMAP_NAME
31
32#ifdef CONFIG_ARCH_OMAP730
33# ifdef OMAP_NAME
34# undef MULTI_OMAP1
35# define MULTI_OMAP1
36# else
37# define OMAP_NAME omap730
38# endif
39#endif
40#ifdef CONFIG_ARCH_OMAP850
41# ifdef OMAP_NAME
42# undef MULTI_OMAP1
43# define MULTI_OMAP1
44# else
45# define OMAP_NAME omap850
46# endif
47#endif
48#ifdef CONFIG_ARCH_OMAP15XX
49# ifdef OMAP_NAME
50# undef MULTI_OMAP1
51# define MULTI_OMAP1
52# else
53# define OMAP_NAME omap1510
54# endif
55#endif
56#ifdef CONFIG_ARCH_OMAP16XX
57# ifdef OMAP_NAME
58# undef MULTI_OMAP1
59# define MULTI_OMAP1
60# else
61# define OMAP_NAME omap16xx
62# endif
63#endif
64#ifdef CONFIG_ARCH_OMAP2PLUS
65# if (defined(OMAP_NAME) || defined(MULTI_OMAP1))
66# error "OMAP1 and OMAP2PLUS can't be selected at the same time"
67# endif
68#endif
69#ifdef CONFIG_SOC_OMAP2420
70# ifdef OMAP_NAME
71# undef MULTI_OMAP2
72# define MULTI_OMAP2
73# else
74# define OMAP_NAME omap2420
75# endif
76#endif
77#ifdef CONFIG_SOC_OMAP2430
78# ifdef OMAP_NAME
79# undef MULTI_OMAP2
80# define MULTI_OMAP2
81# else
82# define OMAP_NAME omap2430
83# endif
84#endif
85#ifdef CONFIG_ARCH_OMAP3
86# ifdef OMAP_NAME
87# undef MULTI_OMAP2
88# define MULTI_OMAP2
89# else
90# define OMAP_NAME omap3
91# endif
92#endif
93#ifdef CONFIG_ARCH_OMAP4
94# ifdef OMAP_NAME
95# undef MULTI_OMAP2
96# define MULTI_OMAP2
97# else
98# define OMAP_NAME omap4
99# endif
100#endif
101
102#ifdef CONFIG_SOC_OMAP5
103# ifdef OMAP_NAME
104# undef MULTI_OMAP2
105# define MULTI_OMAP2
106# else
107# define OMAP_NAME omap5
108# endif
109#endif
110
111#ifdef CONFIG_SOC_AM33XX
112# ifdef OMAP_NAME
113# undef MULTI_OMAP2
114# define MULTI_OMAP2
115# else
116# define OMAP_NAME am33xx
117# endif
118#endif
119
120#endif /* __PLAT_OMAP_MULTI_H */