diff options
| -rw-r--r-- | arch/blackfin/Kconfig | 2 | ||||
| -rw-r--r-- | arch/blackfin/configs/BF527-EZKIT_defconfig | 1 | ||||
| -rw-r--r-- | arch/blackfin/include/asm/gpio.h | 14 |
3 files changed, 14 insertions, 3 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/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)) |
