linux/arch/blackfin
Barry Song d3cc71f71a spi/bfin_spi: redo GPIO CS handling
The common SPI layers take care of detecting CS conflicts and preventing
two devices from claiming the same CS.  This causes problems for the GPIO
CS support we currently have as we are using CS0 to mean "GPIO CS".  But
if we have multiple devices using a GPIO CS, the common SPI layers see
multiple devices using the virtual "CS0" and reject any such attempts.

To make both work, we introduce an offset define.  This represents the
max number of hardware CS values that the SPI peripheral supports.  If
the CS is below this limit, we know we can use the hardware CS.  If it's
above, we treat it as a GPIO CS.  This keeps the CS unique as seen by
the common code and prevents conflicts.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-18 02:49:36 -04:00
..
boot Blackfin: add support for LZO compressed kernels 2010-08-06 12:55:53 -04:00
configs defconfig reduction 2010-08-14 22:26:53 +02:00
include/asm spi/bfin_spi: redo GPIO CS handling 2010-10-18 02:49:36 -04:00
kernel Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
lib Blackfin: optimize strncpy a bit 2010-05-22 14:19:11 -04:00
mach-bf518 Blackfin: punt duplicate SPORT MMR defines 2010-08-27 15:58:27 -04:00
mach-bf527 Blackfin: bf52x/bf54x boards: drop unused nand page size 2010-08-27 16:08:43 -04:00
mach-bf533 Blackfin: punt duplicate SPORT MMR defines 2010-08-27 15:58:27 -04:00
mach-bf537 Blackfin: punt duplicate SPORT MMR defines 2010-08-27 15:58:27 -04:00
mach-bf538 Blackfin: punt duplicate SPORT MMR defines 2010-08-27 15:58:27 -04:00
mach-bf548 Blackfin: bf52x/bf54x boards: drop unused nand page size 2010-08-27 16:08:43 -04:00
mach-bf561 Blackfin: punt duplicate SPORT MMR defines 2010-08-27 15:58:27 -04:00
mach-common Blackfin: wire up new fanotify/prlimit64 syscalls 2010-08-23 04:24:09 -04:00
mm Blackfin: use atomic kmalloc in L1 alloc so it too can be atomic 2010-05-22 14:19:12 -04:00
oprofile Blackfin arch: remove hardware PM code, oprofile not use it 2009-01-07 23:14:39 +08:00
ADI_BSD.txt Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin 2010-08-09 21:01:11 -07:00
Kconfig.debug Blackfin: allow NMI watchdog to be used w/RETN as a scratch reg 2010-05-22 14:19:04 -04:00
Makefile Blackfin: add support for LZO compressed kernels 2010-08-06 12:55:53 -04:00