The flash memory in arduino 101 pĺatform is connected to the
SPI MST 0 device and the CS is connected to the GPIO 0.
The arduino 101 sensor sub-system core maps the SPI MST 0 device
to the "SPI_2" name and the SPI SS 0 device to the "SPI_0" name.
In the same manner the GPIO 0 is mapped to the "GPIO_2" name and
the GPIO SS 0 is mapped to the "GPIO_0" name.
This commit fixes the SPI device name and the GPIO name used by
the W25QXXDV flash memory.
Jira: ZEP-1672
Change-Id: Ifdd5b664498d0eaa6ad073853b811951fe19ab09
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
(cherry picked from commit 0212457c48)
51 lines
680 B
Plaintext
51 lines
680 B
Plaintext
|
|
if BOARD_ARDUINO_101_SSS
|
|
|
|
config BOARD
|
|
default "arduino_101_sss"
|
|
|
|
|
|
config FLASH_SIZE
|
|
default 128
|
|
|
|
|
|
config FLASH_BASE_ADDRESS
|
|
default 0x40034000
|
|
|
|
if GPIO_QMSI && BMI160 && BMI160_TRIGGER
|
|
|
|
config BMI160_GPIO_DEV_NAME
|
|
default GPIO_QMSI_1_NAME
|
|
|
|
endif # GPIO_QMSI && BMI160 && BMI160_TRIGGER
|
|
|
|
if FLASH && SPI
|
|
|
|
config SPI_FLASH_W25QXXDV
|
|
def_bool y
|
|
|
|
config SPI_CS_GPIO
|
|
def_bool y
|
|
|
|
config SPI_0_CS_GPIO_PIN
|
|
default 24
|
|
|
|
config SPI_0_CS_GPIO_PORT
|
|
default "GPIO_2"
|
|
|
|
config SPI_FLASH_W25QXXDV_SPI_NAME
|
|
default "SPI_2"
|
|
|
|
config SPI_FLASH_W25QXXDV_SPI_SLAVE
|
|
default 1
|
|
|
|
endif # FLASH && SPI
|
|
|
|
if BMI160
|
|
|
|
config BMI160_SPI_PORT_NAME
|
|
default "SPI_1"
|
|
endif
|
|
|
|
endif # BOARD_ARDUINO_101_SSS
|