AT91: Added a generic way to setup AT91 serial ports in Kconfig
[linux-2.6/pdupreez.git] / arch / arm / mach-at91 / uart.h
blob48c4cb266d7ab2b13071170d63cd5fc1e8b436ee
1 /*
2 * linux/arch/arm/mach-at91/uart.c
4 * Copyright (C) 2008 Pieter du Preez <pdupreez@gmail.com>
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
21 #include <linux/dma-mapping.h>
24 * As we the following defines are checked by the compiler,
25 * we need to assign some dummy values to them, as they may
26 * not be defined by Kconfig.
29 #ifndef CONFIG_AT91_DBGU_DEV_NR
30 #define CONFIG_AT91_DBGU_DEV_NR -1
31 #endif
33 #ifndef CONFIG_AT91_USART0_DEV_NR
34 #define CONFIG_AT91_USART0_DEV_NR -1
35 #endif
37 #ifndef CONFIG_AT91_USART1_DEV_NR
38 #define CONFIG_AT91_USART1_DEV_NR -1
39 #endif
41 #ifndef CONFIG_AT91_USART2_DEV_NR
42 #define CONFIG_AT91_USART2_DEV_NR -1
43 #endif
45 #ifndef CONFIG_AT91_USART3_DEV_NR
46 #define CONFIG_AT91_USART3_DEV_NR -1
47 #endif
49 #ifndef CONFIG_AT91_USART4_DEV_NR
50 #define CONFIG_AT91_USART4_DEV_NR -1
51 #endif
53 #ifndef CONFIG_AT91_USART5_DEV_NR
54 #define CONFIG_AT91_USART5_DEV_NR -1
55 #endif