summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index bf0332a..229a8f7 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -422,21 +422,21 @@ static int mts_ap_eeprom_load(void)
memcpy(&ap1_eeprom, mts_ap1_eeprom, sizeof(mts_ap1_eeprom));
if (mts_ap1_eeprom[0] == 0xFF) {
- log_error("uninitialized eeprom on daughter card");
+ log_error("uninitialized eeprom on accessory card");
return -EIO;
} else if (mts_ap1_eeprom[0] == 0x00) {
- log_info("no daughter card inserted");
+ log_info("no accessory card inserted");
return 0;
}
has_accessory_card_port_1 = true;
- log_info("daughter card vendor-id: %.32s", ap1_eeprom.vendor_id);
- log_info("daughter card product-id: %.32s", ap1_eeprom.product_id);
- log_info("daughter card device-id: %.32s", ap1_eeprom.device_id);
- log_info("daughter card hw-version: %.32s", ap1_eeprom.hw_version);
+ log_info("accessory card vendor-id: %.32s", ap1_eeprom.vendor_id);
+ log_info("accessory card product-id: %.32s", ap1_eeprom.product_id);
+ log_info("accessory card device-id: %.32s", ap1_eeprom.device_id);
+ log_info("accessory card hw-version: %.32s", ap1_eeprom.hw_version);
/* TODO: only show the mac address if this is the ethernet card */
- log_info("daughter card mac-addr: %02X:%02X:%02X:%02X:%02X:%02X",
+ log_info("accessory card mac-addr: %02X:%02X:%02X:%02X:%02X:%02X",
ap1_eeprom.mac_addr[0],
ap1_eeprom.mac_addr[1],
ap1_eeprom.mac_addr[2],
@@ -614,41 +614,40 @@ static int __init mts_io_init(void)
mts_ap1_product_id = MTDC_NONE;
ret = mts_ap_eeprom_load();
if (ret) {
- /* error reading the EEPROM from the daughter card */
- log_error("error reading daughter card eeprom: %d", ret);
- log_error("unable to initialize daughter card");
- goto error1;
+ /* error reading the EEPROM from the accessory card */
+ log_error("error reading accessory card eeprom: %d", ret);
+ log_error("unable to initialize accessory card");
} else if (has_accessory_card_port_1) {
- /* no error and we have a daughter card */
+ /* no error and we have a accessory card */
if (strstr(ap1_eeprom.product_id, PRODUCT_ID_MTDC_GPIOB)) {
mts_ap1_product_id = MTDC_GPIOB_0_0;
}
switch(mts_ap1_product_id) {
case MTDC_GPIOB_0_0:
- log_debug("adding GPIO daughter card attributes");
- if (! mtr2_add_daughter_card_attributes()) {
- log_error("failed to add GPIO daughter card attributes");
+ log_debug("adding GPIO accessory card attributes");
+ if (! mtr2_add_accessory_card_attributes()) {
+ log_error("failed to add GPIO accessory card attributes");
goto error1;
} else {
- log_info("successfully added GPIO daughter card attributes");
+ log_info("successfully added GPIO accessory card attributes");
}
- log_debug("registering daughter card dout driver");
+ log_debug("registering accessory card dout driver");
ret = spi_register_driver(&mts_spi_dc_dout_driver);
if (ret) {
log_error("failed to register dc dout driver");
spi_unregister_driver(&mts_spi_dc_dout_driver);
goto error1;
}
- log_debug("registering daughter card din driver");
+ log_debug("registering accessory card din driver");
ret = spi_register_driver(&mts_spi_dc_din_driver);
if (ret) {
log_error("failed to register dc din driver");
spi_unregister_driver(&mts_spi_dc_din_driver);
goto error1;
}
- log_debug("registering daughter card adc driver");
+ log_debug("registering accessory card adc driver");
ret = spi_register_driver(&mts_spi_dc_adc_driver);
if (ret) {
log_error("failed to register dc adc driver");
@@ -658,7 +657,7 @@ static int __init mts_io_init(void)
break;
default:
- log_info("daughter card '%s' currently unsupported", ap1_eeprom.product_id);
+ log_info("accessory card '%s' currently unsupported", ap1_eeprom.product_id);
}
}
}