Bryan Wu
397861cd80
Blackfin arch: fix bug - gpio_bank() macros messed up bank number caculating with positioning a gpio
...
The whole story:
Before BF51x merged, all the MAX_BLACKFIN_GPIOS are integral multiple of GPIO_BANKSIZE (= 16).
But BF51x provides MAX_BLACKFIN_GPIOS = 40 which includes 3 banks and the 3rd bank has only 8
GPIO pins.
Therefore, gpio_bank() macros is correct when you try to find a GPIO in which bank (GPIO_35 is
in bank 2). But on BF51x gpio_bank(MAX_BLACKFIN_GPIOS) only gives out 2 banks instead of 3
banks for some static array initialization.
This patch add a new macros gpio_bank_n() and GPIO_BANK_NUM to do bank number caculating and
remain the gpio_bank() macros for positioning a gpio in which bank.
Signed-off-by: Bryan Wu <cooloney@kernel.org>
2008-11-18 17:48:22 +08:00
..
2008-08-27 10:51:02 +08:00
2009-01-06 15:59:10 -08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-27 18:21:43 +08:00
2008-10-13 11:33:43 +08:00
2009-01-01 10:12:17 +10:30
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-06 18:10:28 -08:00
2008-08-27 10:51:02 +08:00
2008-10-16 23:39:12 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-09 14:11:57 +08:00
2008-10-16 23:33:53 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00
2008-10-28 18:19:29 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-16 15:40:05 +02:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-16 22:31:56 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-06 18:10:28 -08:00
2008-08-27 10:51:02 +08:00
2008-10-13 14:07:19 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-08 17:30:01 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-10 18:21:45 +08:00
2008-10-09 15:22:56 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-06 18:10:28 -08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-16 23:55:41 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-08 14:43:47 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00