diff options
author | Peter Ma <pma@mediamatech.com> | 2009-08-27 09:31:47 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-08-27 10:20:58 +0200 |
commit | 0708420370db7350b75cbf64b1eb80ad1b2a89df (patch) | |
tree | 7dcfc21d595bba183468199fb9565a8afbc3c13d /arch/h8300/kernel/signal.c | |
parent | avr32: re-instate MCI WP/CD pin assignments for ATNGW100 (diff) | |
download | linux-0708420370db7350b75cbf64b1eb80ad1b2a89df.tar.xz linux-0708420370db7350b75cbf64b1eb80ad1b2a89df.zip |
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>
Diffstat (limited to 'arch/h8300/kernel/signal.c')
0 files changed, 0 insertions, 0 deletions