Skip to content

Commit

Permalink
[SPI] Define $SPI_PRIMARY_BUS buildVar
Browse files Browse the repository at this point in the history
Providing a buildVar to specify the SPI primary bus allows for the
override of the default (0) when the primary SPI bus differs.  The WP76
for example uses bus 1 as it's primary SPI bus.

Resolves: legatoproject#23
  • Loading branch information
dpfrey committed Feb 22, 2018
1 parent d8ed328 commit 1ba23f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/platformServices/spiService.adef
Expand Up @@ -31,7 +31,11 @@ requires:
{
device:
{
#if ${SPI_PRIMARY_BUS} = ""
[rw] /dev/spidev0.0 /dev/
#else
[rw] /dev/spidev${SPI_PRIMARY_BUS_CHOICE}.0 /dev/
#endif
}
}

Expand Down
1 change: 1 addition & 0 deletions targets/mdm9x07.sinc
Expand Up @@ -12,6 +12,7 @@ buildVars:
LEGATO_QMI_FWUPDATE_PA_SRC = ${PA_DIR}/qmi/src/components/le_pa_fwupdate/fdt/le_pa_fwupdate
LEGATO_QMI_UTIL_SRC = ${PA_DIR}/qmi/src/components/swiQmi/mdm9x28/swiQmi
LEGATO_QMI_RSIM_PA_SRC = ${PA_DIR}/qmi/src/components/le_pa_remotesim
SPI_PRIMARY_BUS = 1
}

#include mdm9xxx.sinc

0 comments on commit 1ba23f5

Please sign in to comment.