Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 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 |
Tony Lindgren | daa4949 | 2010-04-30 12:57:13 -0700 | [diff] [blame] | 64 | #ifdef CONFIG_ARCH_OMAP2PLUS |
Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 65 | # if (defined(OMAP_NAME) || defined(MULTI_OMAP1)) |
Tony Lindgren | daa4949 | 2010-04-30 12:57:13 -0700 | [diff] [blame] | 66 | # error "OMAP1 and OMAP2PLUS can't be selected at the same time" |
Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 67 | # endif |
| 68 | #endif |
Tony Lindgren | 59b479e | 2011-01-27 16:39:40 -0800 | [diff] [blame] | 69 | #ifdef CONFIG_SOC_OMAP2420 |
Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 70 | # ifdef OMAP_NAME |
| 71 | # undef MULTI_OMAP2 |
| 72 | # define MULTI_OMAP2 |
| 73 | # else |
| 74 | # define OMAP_NAME omap2420 |
| 75 | # endif |
| 76 | #endif |
Tony Lindgren | 59b479e | 2011-01-27 16:39:40 -0800 | [diff] [blame] | 77 | #ifdef CONFIG_SOC_OMAP2430 |
Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 78 | # ifdef OMAP_NAME |
| 79 | # undef MULTI_OMAP2 |
| 80 | # define MULTI_OMAP2 |
| 81 | # else |
| 82 | # define OMAP_NAME omap2430 |
| 83 | # endif |
| 84 | #endif |
Tony Lindgren | daa4949 | 2010-04-30 12:57:13 -0700 | [diff] [blame] | 85 | #ifdef CONFIG_ARCH_OMAP3 |
Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 86 | # ifdef OMAP_NAME |
| 87 | # undef MULTI_OMAP2 |
| 88 | # define MULTI_OMAP2 |
| 89 | # else |
Tony Lindgren | daa4949 | 2010-04-30 12:57:13 -0700 | [diff] [blame] | 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 |
Tony Lindgren | 1cf9d07 | 2010-02-15 09:27:24 -0800 | [diff] [blame] | 99 | # endif |
| 100 | #endif |
| 101 | |
| 102 | #endif /* __PLAT_OMAP_MULTI_H */ |