Private
Public Access
2
0

spi-pinmap: seperated bus from slave select.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Thomas Ingleby
2014-05-20 16:50:38 +01:00
committed by Brendan Le Foll
parent 94941f5100
commit b7c2b701aa
2 changed files with 4 additions and 2 deletions

View File

@@ -142,7 +142,8 @@ typedef struct {
*/
typedef struct {
/*@{*/
double bus_id; /**< The Bus ID as exposed to the system. */
unsigned int bus_id; /**< The Bus ID as exposed to the system. */
unsigned int slave_s; /**< Slave select */
maa_boolean_t three_wire; /**< Is the bus only a three wire system */
unsigned int sclk; /**< Serial Clock */
unsigned int mosi; /**< Master Out, Slave In. */

View File

@@ -261,7 +261,8 @@ maa_intel_galileo_rev_d()
b->spi_bus_count = 1;
b->def_spi_bus = 0;
b->spi_bus[0].bus_id = 1.0;
b->spi_bus[0].bus_id = 1;
b->spi_bus[0].slave_s = 0;
b->spi_bus[0].cs = 10;
b->spi_bus[0].mosi = 11;
b->spi_bus[0].miso = 12;