crypto: omap - Updates omap sham device related platform code
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / plat-omap / include / plat / multi.h
blobf235d32cd9429f9c104572e06bfdaf281d11ecc0
1 /*
2 * Support for compiling in multiple OMAP processors
4 * Copyright (C) 2010 Nokia Corporation
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.
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.
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
22 #ifndef __PLAT_OMAP_MULTI_H
23 #define __PLAT_OMAP_MULTI_H
26 * Test if multicore OMAP support is needed
28 #undef MULTI_OMAP1
29 #undef MULTI_OMAP2
30 #undef OMAP_NAME
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 #if (defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3))
65 # if (defined(OMAP_NAME) || defined(MULTI_OMAP1))
66 # error "OMAP1 and OMAP2 can't be selected at the same time"
67 # endif
68 #endif
69 #ifdef CONFIG_ARCH_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_ARCH_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_OMAP3430
86 # ifdef OMAP_NAME
87 # undef MULTI_OMAP2
88 # define MULTI_OMAP2
89 # else
90 # define OMAP_NAME omap3430
91 # endif
92 #endif
94 #endif /* __PLAT_OMAP_MULTI_H */