quark_se: sensor: use consistent device names for GPIO, SPI and I2C

Rename devices. For example, the two i2c devices in the
quark se sensor sub-system will have name string "I2C_0"
and "I2C_1", while the other two i2c devices accessible to
both x86 and arc will have name string "I2C_2" and "I2C_3".
This is valid only when you build arc binary. 

It does not apply if you build x86 or arm binary. Similar change is
also made for GPIO and SPI.

Jira: ZEP-1588 ZEP-1614

Change-Id: Ibad4486e70e0aaf287763514a5a9d28b43bca094
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
Baohong Liu 2017-02-02 14:39:57 -08:00 committed by Anas Nashif
commit a1b8ed0ac6

View file

@ -87,6 +87,9 @@ config GPIO_QMSI_0
if GPIO_QMSI_0
config GPIO_QMSI_0_NAME
default "GPIO_2"
config GPIO_QMSI_0_IRQ_PRI
default 1
@ -97,6 +100,9 @@ config GPIO_QMSI_1
if GPIO_QMSI_1
config GPIO_QMSI_1_NAME
default "GPIO_3"
config GPIO_QMSI_1_IRQ_PRI
default 1
@ -114,6 +120,9 @@ config GPIO_QMSI_SS_0
if GPIO_QMSI_SS_0
config GPIO_QMSI_SS_0_NAME
default "GPIO_0"
config GPIO_QMSI_SS_0_IRQ_PRI
default 1
@ -124,6 +133,9 @@ config GPIO_QMSI_SS_1
if GPIO_QMSI_SS_1
config GPIO_QMSI_SS_1_NAME
default "GPIO_1"
config GPIO_QMSI_SS_1_IRQ_PRI
default 1
@ -142,6 +154,9 @@ config I2C_QMSI
config I2C_0
def_bool y
config I2C_0_NAME
default "I2C_2"
config I2C_0_IRQ_PRI
default 1
@ -151,6 +166,9 @@ config I2C_0_DEFAULT_CFG
config I2C_1
def_bool y
config I2C_1_NAME
default "I2C_3"
config I2C_1_IRQ_PRI
default 1
@ -172,12 +190,18 @@ config I2C_QMSI_SS
config I2C_SS_0
def_bool y
config I2C_SS_0_NAME
default "I2C_0"
config I2C_SS_0_DEFAULT_CFG
default 0x12
config I2C_SS_1
def_bool y
config I2C_SS_1_NAME
default "I2C_1"
config I2C_SS_1_DEFAULT_CFG
default 0x12
@ -233,12 +257,18 @@ config SPI_QMSI
config SPI_0
def_bool y
config SPI_0_NAME
default "SPI_2"
config SPI_0_IRQ_PRI
default 1
config SPI_1
def_bool y
config SPI_1_NAME
default "SPI_3"
config SPI_1_IRQ_PRI
default 1
@ -248,12 +278,18 @@ config SPI_QMSI_SS
config SPI_SS_0
def_bool y
config SPI_SS_0_NAME
default "SPI_0"
config SPI_SS_0_IRQ_PRI
default 1
config SPI_SS_1
def_bool y
config SPI_SS_1_NAME
default "SPI_1"
config SPI_SS_1_IRQ_PRI
default 1