b200: Add a prop tree node usb_version

At /mboards/0/usb_version, we can now read back an int. It's either 2 or
3, depending on what we're using.
This commit is contained in:
Martin Braun 2020-04-02 14:11:51 -07:00 committed by Aaron Rossetto
parent 6791846221
commit e33619bcb6

View File

@ -483,6 +483,7 @@ b200_impl::b200_impl(
} // flush ctrl xport
_tree->create<double>(mb_path / "link_max_rate")
.set((usb_speed == 3) ? B200_MAX_RATE_USB3 : B200_MAX_RATE_USB2);
_tree->create<int>(mb_path / "usb_version").set(usb_speed);
////////////////////////////////////////////////////////////////////
// Async task structure