diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/Kconfig | 2 | ||||
-rw-r--r-- | arch/blackfin/configs/BF527-EZKIT_defconfig | 1 | ||||
-rw-r--r-- | arch/blackfin/include/asm/cmpxchg.h | 3 | ||||
-rw-r--r-- | arch/blackfin/include/asm/gpio.h | 14 |
4 files changed, 16 insertions, 4 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index c1269a1085e1..373a6902d8fa 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -823,7 +823,7 @@ config CACHELINE_ALIGNED_L1 | |||
823 | bool "Locate cacheline_aligned data to L1 Data Memory" | 823 | bool "Locate cacheline_aligned data to L1 Data Memory" |
824 | default y if !BF54x | 824 | default y if !BF54x |
825 | default n if BF54x | 825 | default n if BF54x |
826 | depends on !SMP && !BF531 | 826 | depends on !SMP && !BF531 && !CRC32 |
827 | help | 827 | help |
828 | If enabled, cacheline_aligned data is linked | 828 | If enabled, cacheline_aligned data is linked |
829 | into L1 data memory. (less latency) | 829 | into L1 data memory. (less latency) |
diff --git a/arch/blackfin/configs/BF527-EZKIT_defconfig b/arch/blackfin/configs/BF527-EZKIT_defconfig index 9ccc18a6b4df..90b175323644 100644 --- a/arch/blackfin/configs/BF527-EZKIT_defconfig +++ b/arch/blackfin/configs/BF527-EZKIT_defconfig | |||
@@ -147,6 +147,7 @@ CONFIG_USB_OTG_BLACKLIST_HUB=y | |||
147 | CONFIG_USB_MON=y | 147 | CONFIG_USB_MON=y |
148 | CONFIG_USB_MUSB_HDRC=y | 148 | CONFIG_USB_MUSB_HDRC=y |
149 | CONFIG_USB_MUSB_BLACKFIN=y | 149 | CONFIG_USB_MUSB_BLACKFIN=y |
150 | CONFIG_MUSB_PIO_ONLY=y | ||
150 | CONFIG_USB_STORAGE=y | 151 | CONFIG_USB_STORAGE=y |
151 | CONFIG_USB_GADGET=y | 152 | CONFIG_USB_GADGET=y |
152 | CONFIG_RTC_CLASS=y | 153 | CONFIG_RTC_CLASS=y |
diff --git a/arch/blackfin/include/asm/cmpxchg.h b/arch/blackfin/include/asm/cmpxchg.h index ba2484f4cb2a..c05868cc61c1 100644 --- a/arch/blackfin/include/asm/cmpxchg.h +++ b/arch/blackfin/include/asm/cmpxchg.h | |||
@@ -122,7 +122,8 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, | |||
122 | (unsigned long)(n), sizeof(*(ptr)))) | 122 | (unsigned long)(n), sizeof(*(ptr)))) |
123 | #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) | 123 | #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) |
124 | 124 | ||
125 | #include <asm-generic/cmpxchg.h> | 125 | #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) |
126 | #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) | ||
126 | 127 | ||
127 | #endif /* !CONFIG_SMP */ | 128 | #endif /* !CONFIG_SMP */ |
128 | 129 | ||
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h index 5a25856381ff..12d3571b5232 100644 --- a/arch/blackfin/include/asm/gpio.h +++ b/arch/blackfin/include/asm/gpio.h | |||
@@ -244,16 +244,26 @@ static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) | |||
244 | return -EINVAL; | 244 | return -EINVAL; |
245 | } | 245 | } |
246 | 246 | ||
247 | static inline int gpio_get_value(unsigned gpio) | 247 | static inline int __gpio_get_value(unsigned gpio) |
248 | { | 248 | { |
249 | return bfin_gpio_get_value(gpio); | 249 | return bfin_gpio_get_value(gpio); |
250 | } | 250 | } |
251 | 251 | ||
252 | static inline void gpio_set_value(unsigned gpio, int value) | 252 | static inline void __gpio_set_value(unsigned gpio, int value) |
253 | { | 253 | { |
254 | return bfin_gpio_set_value(gpio, value); | 254 | return bfin_gpio_set_value(gpio, value); |
255 | } | 255 | } |
256 | 256 | ||
257 | static inline int gpio_get_value(unsigned gpio) | ||
258 | { | ||
259 | return __gpio_get_value(gpio); | ||
260 | } | ||
261 | |||
262 | static inline void gpio_set_value(unsigned gpio, int value) | ||
263 | { | ||
264 | return __gpio_set_value(gpio, value); | ||
265 | } | ||
266 | |||
257 | static inline int gpio_to_irq(unsigned gpio) | 267 | static inline int gpio_to_irq(unsigned gpio) |
258 | { | 268 | { |
259 | if (likely(gpio < MAX_BLACKFIN_GPIOS)) | 269 | if (likely(gpio < MAX_BLACKFIN_GPIOS)) |