spi: add ti-ssp spi master driver
This patch adds an SPI master implementation that operates on top of an underlying TI-SSP port. Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Cyril Chemparathy <cyril@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
parent
03df0f6294
commit
a72aeefebe
4 changed files with 419 additions and 0 deletions
|
@ -32,6 +32,12 @@ struct ti_ssp_data {
|
|||
struct ti_ssp_dev_data dev_data[2];
|
||||
};
|
||||
|
||||
struct ti_ssp_spi_data {
|
||||
unsigned long iosel;
|
||||
int num_cs;
|
||||
void (*select)(int cs);
|
||||
};
|
||||
|
||||
/*
|
||||
* Sequencer port IO pin configuration bits. These do not correlate 1-1 with
|
||||
* the hardware. The iosel field in the port data combines iosel1 and iosel2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue