greybus: replace Ara references
Replace all occurrences of the term "Ara" with "GMP" in core. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>hifive-unleashed-5.1
parent
6c298035a1
commit
23931ffb9a
|
@ -114,7 +114,7 @@ static void bootrom_es2_fixup_vid_pid(struct gb_bootrom *bootrom)
|
||||||
struct gb_interface *intf = connection->bundle->intf;
|
struct gb_interface *intf = connection->bundle->intf;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!(intf->quirks & GB_INTERFACE_QUIRK_NO_ARA_IDS))
|
if (!(intf->quirks & GB_INTERFACE_QUIRK_NO_GMP_IDS))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ret = gb_operation_sync(connection, GB_BOOTROM_TYPE_GET_VID_PID,
|
ret = gb_operation_sync(connection, GB_BOOTROM_TYPE_GET_VID_PID,
|
||||||
|
|
|
@ -31,11 +31,11 @@
|
||||||
#define DME_DDBL1_MANUFACTURERID 0x5003
|
#define DME_DDBL1_MANUFACTURERID 0x5003
|
||||||
#define DME_DDBL1_PRODUCTID 0x5004
|
#define DME_DDBL1_PRODUCTID 0x5004
|
||||||
|
|
||||||
#define DME_TOSHIBA_ARA_VID 0x6000
|
#define DME_TOSHIBA_GMP_VID 0x6000
|
||||||
#define DME_TOSHIBA_ARA_PID 0x6001
|
#define DME_TOSHIBA_GMP_PID 0x6001
|
||||||
#define DME_TOSHIBA_ARA_SN0 0x6002
|
#define DME_TOSHIBA_GMP_SN0 0x6002
|
||||||
#define DME_TOSHIBA_ARA_SN1 0x6003
|
#define DME_TOSHIBA_GMP_SN1 0x6003
|
||||||
#define DME_TOSHIBA_ARA_INIT_STATUS 0x6101
|
#define DME_TOSHIBA_GMP_INIT_STATUS 0x6101
|
||||||
|
|
||||||
/* DDBL1 Manufacturer and Product ids */
|
/* DDBL1 Manufacturer and Product ids */
|
||||||
#define TOSHIBA_DMID 0x0126
|
#define TOSHIBA_DMID 0x0126
|
||||||
|
@ -60,7 +60,7 @@ static int gb_interface_read_ara_dme(struct gb_interface *intf)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unless this is a Toshiba bridge, bail out until we have defined
|
* Unless this is a Toshiba bridge, bail out until we have defined
|
||||||
* standard Ara attributes.
|
* standard GMP attributes.
|
||||||
*/
|
*/
|
||||||
if (intf->ddbl1_manufacturer_id != TOSHIBA_DMID) {
|
if (intf->ddbl1_manufacturer_id != TOSHIBA_DMID) {
|
||||||
dev_err(&intf->dev, "unknown manufacturer %08x\n",
|
dev_err(&intf->dev, "unknown manufacturer %08x\n",
|
||||||
|
@ -68,21 +68,21 @@ static int gb_interface_read_ara_dme(struct gb_interface *intf)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_ARA_VID,
|
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_GMP_VID,
|
||||||
&intf->vendor_id);
|
&intf->vendor_id);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_ARA_PID,
|
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_GMP_PID,
|
||||||
&intf->product_id);
|
&intf->product_id);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_ARA_SN0, &sn0);
|
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_GMP_SN0, &sn0);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_ARA_SN1, &sn1);
|
ret = gb_interface_dme_attr_get(intf, DME_TOSHIBA_GMP_SN1, &sn1);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ static int gb_interface_read_dme(struct gb_interface *intf)
|
||||||
|
|
||||||
if (intf->ddbl1_manufacturer_id == TOSHIBA_DMID &&
|
if (intf->ddbl1_manufacturer_id == TOSHIBA_DMID &&
|
||||||
intf->ddbl1_product_id == TOSHIBA_ES2_BRIDGE_DPID) {
|
intf->ddbl1_product_id == TOSHIBA_ES2_BRIDGE_DPID) {
|
||||||
intf->quirks |= GB_INTERFACE_QUIRK_NO_ARA_IDS;
|
intf->quirks |= GB_INTERFACE_QUIRK_NO_GMP_IDS;
|
||||||
intf->quirks |= GB_INTERFACE_QUIRK_NO_INIT_STATUS;
|
intf->quirks |= GB_INTERFACE_QUIRK_NO_INIT_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,7 +377,7 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)
|
||||||
if (intf->quirks & GB_INTERFACE_QUIRK_NO_INIT_STATUS)
|
if (intf->quirks & GB_INTERFACE_QUIRK_NO_INIT_STATUS)
|
||||||
attr = DME_T_TST_SRC_INCREMENT;
|
attr = DME_T_TST_SRC_INCREMENT;
|
||||||
else
|
else
|
||||||
attr = DME_TOSHIBA_ARA_INIT_STATUS;
|
attr = DME_TOSHIBA_GMP_INIT_STATUS;
|
||||||
|
|
||||||
ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr,
|
ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr,
|
||||||
DME_SELECTOR_INDEX_NULL, &value);
|
DME_SELECTOR_INDEX_NULL, &value);
|
||||||
|
@ -793,7 +793,7 @@ struct device_type greybus_interface_type = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A Greybus module represents a user-replaceable component on an Ara
|
* A Greybus module represents a user-replaceable component on a GMP
|
||||||
* phone. An interface is the physical connection on that module. A
|
* phone. An interface is the physical connection on that module. A
|
||||||
* module may have more than one interface.
|
* module may have more than one interface.
|
||||||
*
|
*
|
||||||
|
@ -1282,7 +1282,7 @@ int gb_interface_add(struct gb_interface *intf)
|
||||||
|
|
||||||
switch (intf->type) {
|
switch (intf->type) {
|
||||||
case GB_INTERFACE_TYPE_GREYBUS:
|
case GB_INTERFACE_TYPE_GREYBUS:
|
||||||
dev_info(&intf->dev, "Ara VID=0x%08x, PID=0x%08x\n",
|
dev_info(&intf->dev, "GMP VID=0x%08x, PID=0x%08x\n",
|
||||||
intf->vendor_id, intf->product_id);
|
intf->vendor_id, intf->product_id);
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
case GB_INTERFACE_TYPE_UNIPRO:
|
case GB_INTERFACE_TYPE_UNIPRO:
|
||||||
|
|
|
@ -20,7 +20,7 @@ enum gb_interface_type {
|
||||||
|
|
||||||
#define GB_INTERFACE_QUIRK_NO_CPORT_FEATURES BIT(0)
|
#define GB_INTERFACE_QUIRK_NO_CPORT_FEATURES BIT(0)
|
||||||
#define GB_INTERFACE_QUIRK_NO_INIT_STATUS BIT(1)
|
#define GB_INTERFACE_QUIRK_NO_INIT_STATUS BIT(1)
|
||||||
#define GB_INTERFACE_QUIRK_NO_ARA_IDS BIT(2)
|
#define GB_INTERFACE_QUIRK_NO_GMP_IDS BIT(2)
|
||||||
#define GB_INTERFACE_QUIRK_FORCED_DISABLE BIT(3)
|
#define GB_INTERFACE_QUIRK_FORCED_DISABLE BIT(3)
|
||||||
#define GB_INTERFACE_QUIRK_LEGACY_MODE_SWITCH BIT(4)
|
#define GB_INTERFACE_QUIRK_LEGACY_MODE_SWITCH BIT(4)
|
||||||
#define GB_INTERFACE_QUIRK_NO_BUNDLE_ACTIVATE BIT(5)
|
#define GB_INTERFACE_QUIRK_NO_BUNDLE_ACTIVATE BIT(5)
|
||||||
|
|
Loading…
Reference in New Issue