linux/arch/blackfin/kernel
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
..
cplb-mpu Blackfin arch: use the new bfin_addr_dcachable() function 2008-10-16 23:25:34 +08:00
cplb-nompu Blackfin arch: fix bug - Fail to boot jffs2 kernel for BF561 with SMP patch 2008-10-27 18:12:53 +08:00
asm-offsets.c Blackfin arch: ptrace - make sure PT_ORIG_R0 and PT_ORIG_P0 offsets are declared 2008-10-09 15:22:56 +08:00
bfin_dma_5xx.c Blackfin arch: remove most BUG_ON channel checks 2008-10-29 11:06:03 +08:00
bfin_gpio.c Blackfin arch: fix bug - gpio_bank() macros messed up bank number caculating with positioning a gpio 2008-11-18 17:48:22 +08:00
bfin_ksyms.c Blackfin arch: drop unused exports and comment remaining exports 2008-10-28 11:12:17 +08:00
dma-mapping.c [Blackfin] arch: __FUNCTION__ is gcc-specific, use __func__ 2008-04-23 09:39:01 +08:00
early_printk.c Blackfin arch: emulate a TTY over the EMUDAT/JTAG interface 2008-10-10 17:37:52 +08:00
entry.S Blackfin arch: move include/asm-blackfin header files to arch/blackfin 2008-08-27 10:51:02 +08:00
fixed_code.S [Blackfin] arch: fix wrong header name in comment 2008-05-07 11:41:26 +08:00
flat.c
gptimers.c Blackfin arch: Cleanup no functional changes 2008-05-20 16:42:39 +08:00
init_task.c take init_fs to saner place 2008-12-31 18:07:42 -05:00
irqchip.c Blackfin arch: fix bug - kernel boot fails when Spinlock and rw-lock debugging enabled 2008-06-25 12:02:07 +08:00
kgdb.c Blackfin arch: add supporting for kgdb 2008-10-13 14:07:19 +08:00
Makefile Blackfin arch: Do not need this dualcore test module in kernel. 2008-07-19 20:53:46 +08:00
module.c Blackfin arch: Extend sram malloc to handle L2 SRAM. 2008-07-19 15:42:41 +08:00
process.c Blackfin arch: fix bug - shared lib function in L2 failed be called 2008-10-28 15:57:49 +08:00
ptrace.c Blackfin arch: ptrace - fix off-by-one check on end of memory regions 2008-10-10 17:26:57 +08:00
reboot.c Blackfin arch: use the Blackfin on-chip ROM to do software reset when possible 2008-10-13 11:33:43 +08:00
setup.c Blackfin arch: dont warn when running a kernel on the oldest supported silicon 2008-10-28 13:58:15 +08:00
signal.c [Blackfin] arch: disable single stepping when delivering a signal 2008-05-07 11:41:26 +08:00
sys_bfin.c unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
time-ts.c cpumask: convert struct clock_event_device to cpumask pointers. 2008-12-13 21:20:26 +10:30
time.c [Blackfin] arch: Functional power management support: Add support for cpu frequency scaling 2008-04-25 04:58:29 +08:00
traps.c Blackfin arch: Fix typo when adding CONFIG_DEBUG_VERBOSE 2008-10-28 11:36:11 +08:00
vmlinux.lds.S Blackfin arch: convert L2 defines to be the same as the L1 defines 2008-08-13 16:16:11 +08:00