2009-12-08 09:47:48     Need info on using GPIO as SPI slave selects

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2009-12-08 09:47:48     Need info on using GPIO as SPI slave selects

kumar v (INDIA)

Message: 83244   

 

Hi,

 

I am using BF527 EZKIT, I would like use PG5 and PG6 as SPI slave selects. I will be using the SVN trunk for my testing on the board.

 

In the platform file by making below changes:

 

.chip_select = 0x00,

 

.cs_gpio = GPIO_PG5

 

similarly for slave 2 by making .chip_select = 0x00 and .cs_gpio = GPIO_PG6 will I be able to access the SPI slaves from the drivers without any problem?

 

Because I read in the below tracker raised by Barry Song, that spi driver throws a error "chipselect 0 already in use":

 

  blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=5689

 

Is this issue resolved in the latest trunk? I will be starting my testing very soon, your feedbacks will help.

 

Thanks.

QuoteReplyEditDelete

 

 

2009-12-08 09:51:40     Need info on using GPIO as SPI slave selects

Michael Hennerich (GERMANY)

Message: 83245    The issue is fixed on trunk.

 

You now would use:

 

.chip_select = GPIO_PG5 + MAX_CTRL_CS, /* GPIO controlled SSEL */

 

.cs_gpio does no longer exist.

 

-Michael

Attachments

    Outcomes