diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-28 16:55:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-28 16:55:49 -0400 |
commit | 0151f94f2e61c39858e714a5d92244b0e5a7fdf5 (patch) | |
tree | 2506632249220ce509ecacde35c630d74ffb2031 /arch/blackfin/include | |
parent | 7c730ccdc1188b97f5c8cb690906242c7ed75c22 (diff) | |
parent | d6879c585b7f8c2f3eb2f7e7beac806af4e9755c (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
Blackfin arch: be less noisy when gets a gpio conflict after kernel has booted
Blackfin arch: add RSI's definitions to bf514 and bf516
Blackfin arch: add link-time asserts to make sure on-chip regions dont overflow
Blackfin arch: sport spi needs 6 gpio pins
Blackfin arch: add sport-spi related resource stuff to board file
Blackfin arch: Blacklist Hibernate (PM_SUSPEND_MEM) on BF561 as well
Blackfin arch: Privide BF537-STAMP platform data of ADP5520 Multifunction driver
Blackfin arch: enable the platfrom PATA driver with CF Cards
Blackfin arch: clean up sports header file
Blackfin arch: convert BF5{18,27,48}_FAMILY to CONFIG_BF{51,52,54}x
Blackfin arch: bf51x processors also have 8 timers
Blackfin arch: add a check to make sure only Blackfin GPIOs may generate IRQs
Blackfin arch: update default kernel configuration
Blackfin arch: include linux headers that this one uses definitions from fro sport drivers
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r-- | arch/blackfin/include/asm/bfin5xx_spi.h | 2 | ||||
-rw-r--r-- | arch/blackfin/include/asm/bfin_sport.h | 9 | ||||
-rw-r--r-- | arch/blackfin/include/asm/gpio.h | 7 | ||||
-rw-r--r-- | arch/blackfin/include/asm/gptimers.h | 6 |
4 files changed, 17 insertions, 7 deletions
diff --git a/arch/blackfin/include/asm/bfin5xx_spi.h b/arch/blackfin/include/asm/bfin5xx_spi.h index 1306e6b22946..0292d58f9362 100644 --- a/arch/blackfin/include/asm/bfin5xx_spi.h +++ b/arch/blackfin/include/asm/bfin5xx_spi.h | |||
@@ -110,7 +110,7 @@ | |||
110 | struct bfin5xx_spi_master { | 110 | struct bfin5xx_spi_master { |
111 | u16 num_chipselect; | 111 | u16 num_chipselect; |
112 | u8 enable_dma; | 112 | u8 enable_dma; |
113 | u16 pin_req[4]; | 113 | u16 pin_req[7]; |
114 | }; | 114 | }; |
115 | 115 | ||
116 | /* spi_board_info.controller_data for SPI slave devices, | 116 | /* spi_board_info.controller_data for SPI slave devices, |
diff --git a/arch/blackfin/include/asm/bfin_sport.h b/arch/blackfin/include/asm/bfin_sport.h index 65a651db5b07..b558908e1c79 100644 --- a/arch/blackfin/include/asm/bfin_sport.h +++ b/arch/blackfin/include/asm/bfin_sport.h | |||
@@ -9,6 +9,13 @@ | |||
9 | #ifndef __BFIN_SPORT_H__ | 9 | #ifndef __BFIN_SPORT_H__ |
10 | #define __BFIN_SPORT_H__ | 10 | #define __BFIN_SPORT_H__ |
11 | 11 | ||
12 | #ifdef __KERNEL__ | ||
13 | #include <linux/cdev.h> | ||
14 | #include <linux/mutex.h> | ||
15 | #include <linux/sched.h> | ||
16 | #include <linux/wait.h> | ||
17 | #endif | ||
18 | |||
12 | #define SPORT_MAJOR 237 | 19 | #define SPORT_MAJOR 237 |
13 | #define SPORT_NR_DEVS 2 | 20 | #define SPORT_NR_DEVS 2 |
14 | 21 | ||
@@ -119,7 +126,7 @@ struct sport_dev { | |||
119 | int tx_len; | 126 | int tx_len; |
120 | int tx_sent; | 127 | int tx_sent; |
121 | 128 | ||
122 | int sport_err_irq; | 129 | int err_irq; |
123 | 130 | ||
124 | struct mutex mutex; /* mutual exclusion semaphore */ | 131 | struct mutex mutex; /* mutual exclusion semaphore */ |
125 | struct task_struct *task; | 132 | struct task_struct *task; |
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h index d4a082ef75b4..fe139619351f 100644 --- a/arch/blackfin/include/asm/gpio.h +++ b/arch/blackfin/include/asm/gpio.h | |||
@@ -110,7 +110,7 @@ | |||
110 | * MODIFICATION HISTORY : | 110 | * MODIFICATION HISTORY : |
111 | **************************************************************/ | 111 | **************************************************************/ |
112 | 112 | ||
113 | #ifndef BF548_FAMILY | 113 | #ifndef CONFIG_BF54x |
114 | void set_gpio_dir(unsigned, unsigned short); | 114 | void set_gpio_dir(unsigned, unsigned short); |
115 | void set_gpio_inen(unsigned, unsigned short); | 115 | void set_gpio_inen(unsigned, unsigned short); |
116 | void set_gpio_polar(unsigned, unsigned short); | 116 | void set_gpio_polar(unsigned, unsigned short); |
@@ -303,7 +303,10 @@ static inline void gpio_set_value(unsigned gpio, int value) | |||
303 | 303 | ||
304 | static inline int gpio_to_irq(unsigned gpio) | 304 | static inline int gpio_to_irq(unsigned gpio) |
305 | { | 305 | { |
306 | return (gpio + GPIO_IRQ_BASE); | 306 | if (likely(gpio < MAX_BLACKFIN_GPIOS)) |
307 | return gpio + GPIO_IRQ_BASE; | ||
308 | |||
309 | return -EINVAL; | ||
307 | } | 310 | } |
308 | 311 | ||
309 | static inline int irq_to_gpio(unsigned irq) | 312 | static inline int irq_to_gpio(unsigned irq) |
diff --git a/arch/blackfin/include/asm/gptimers.h b/arch/blackfin/include/asm/gptimers.h index 0520d2aac8f3..b0f847ae4bf4 100644 --- a/arch/blackfin/include/asm/gptimers.h +++ b/arch/blackfin/include/asm/gptimers.h | |||
@@ -15,16 +15,16 @@ | |||
15 | #include <asm/blackfin.h> | 15 | #include <asm/blackfin.h> |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * BF537/BF527: 8 timers: | 18 | * BF51x/BF52x/BF537: 8 timers: |
19 | */ | 19 | */ |
20 | #if defined(BF527_FAMILY) || defined(BF537_FAMILY) | 20 | #if defined(CONFIG_BF51x) || defined(CONFIG_BF52x) || defined(BF537_FAMILY) |
21 | # define MAX_BLACKFIN_GPTIMERS 8 | 21 | # define MAX_BLACKFIN_GPTIMERS 8 |
22 | # define TIMER0_GROUP_REG TIMER_ENABLE | 22 | # define TIMER0_GROUP_REG TIMER_ENABLE |
23 | #endif | 23 | #endif |
24 | /* | 24 | /* |
25 | * BF54x: 11 timers (BF542: 8 timers): | 25 | * BF54x: 11 timers (BF542: 8 timers): |
26 | */ | 26 | */ |
27 | #if defined(BF548_FAMILY) | 27 | #if defined(CONFIG_BF54x) |
28 | # ifdef CONFIG_BF542 | 28 | # ifdef CONFIG_BF542 |
29 | # define MAX_BLACKFIN_GPTIMERS 8 | 29 | # define MAX_BLACKFIN_GPTIMERS 8 |
30 | # else | 30 | # else |