1 comment:
File src/ec/google/chromeec/ec.c:
Patch Set #9, Line 1490: *port_map = resp.reserved;
i wanted to use this method in depthcharge but it was rejected there. […]
Ah, I see. That's true, it can be obtained that way, but we do not have any of that info in the devicetree yet. It is being added right now, see CB:45878.
So then, the way to get at the data would be (on top of the patch mentioned above):
In ec_acpi, use the EC's `struct device *dev` config (chip_info) to get mux_conn[0] for port 0 and mux_conn[1] for port 1. Those dev's config has `usb2_port_number` and `usb3_port_number` fields, which are what we need here. That should go in the mainboard code too, as it's for chromeec boards right now.
To view, visit change 42078. To unsubscribe, or for help writing mail filters, visit settings.