linux/arch/avr32/mach-at32ap
Peter Ma 0708420370 avr32: function for independently setting up SPI slaves
at32ap_spi_setup_slaves() is exposed to allow the addition of SPI slaves
to a SPI bus that has already been registered.  This is especially
useful for add-on cards, which have their own board setup function.
at32ap_spi_add_device() has been slightly re-organized, but should be
transparent to existing users.

So to add a SPI slave, after a SPI bus has already been registered:

	/* Configure the list of slaves on SPI controller "id" */
	at32_spi_setup_slaves(id,spi_board_info,ARRAY_SIZE(spi_board_info));
 	/* Register the list of slaves */
 	spi_register_board_info(spi_board_info,ARRAY_SIZE(spi_board_info));

Signed-off-by: Peter Ma <pma@mediamatech.com>
[haavard.skinnemoen@atmel.com: trivial whitespace fix]
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
2009-08-27 10:20:58 +02:00
..
include/mach avr32: function for independently setting up SPI slaves 2009-08-27 10:20:58 +02:00
at32ap700x.c avr32: function for independently setting up SPI slaves 2009-08-27 10:20:58 +02:00
clock.c avr: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-05 10:29:35 +01:00
clock.h avr32: Hammerhead board support 2009-01-05 15:52:04 +01:00
cpufreq.c avr32: Scale loops_per_jiffy when cpu frequency changes 2008-10-23 15:18:33 +02:00
extint.c genirq: fix name space collisions of nr_irqs in arch/* 2008-10-16 16:53:30 +02:00
hmatrix.c avr32: Clean up HMATRIX code 2008-08-08 12:44:01 +02:00
hsmc.c avr32: Use <mach/foo.h> instead of <asm/arch/foo.h> 2008-08-05 14:36:57 +02:00
hsmc.h [PATCH] AVR32: Use __raw MMIO access for internal peripherals 2006-10-25 20:26:33 -07:00
intc.c avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00
intc.h [PATCH] AVR32: Use __raw MMIO access for internal peripherals 2006-10-25 20:26:33 -07:00
Kconfig [AVR32] Add support for AT32AP7001 and AT32AP7002 2008-01-25 08:31:41 +01:00
Makefile avr32: Clean up HMATRIX code 2008-08-08 12:44:01 +02:00
pdc.c avr32: Use platform_driver_probe for pdc platform driver 2008-09-22 09:51:03 +02:00
pio.c avr32: Allow reserving multiple pins at once 2009-01-05 12:16:13 +01:00
pio.h avr32: Fix typo of IFSR in a comment in the PIO header file 2008-07-04 09:48:05 +02:00
pm-at32ap700x.S avr32: pm_standby low-power ram bug fix 2008-09-01 13:04:09 +02:00
pm.c avr32: Add MMIO address definitions for certain controllers 2008-08-08 12:42:14 +02:00
pm.h avr32: Add MMIO address definitions for certain controllers 2008-08-08 12:42:14 +02:00
sdramc.h avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00