opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[usbdev] Is tx_mode_se needed?

Open mdhayter opened this issue 6 years ago • 2 comments

Currently there is an output "tx_mode_se". Can we replace it by just controlling the enable on "se0"? If se0 enable is set then the tx is set to "differential" mode (i.e. d and se0) and if se0 is disabled then it is normal mode (dp and dn).

mdhayter avatar Jul 05 '20 21:07 mdhayter

Hi @mdhayter , This change will be a bit more invasive as those signals propagate through the top level. But yes, this can be done. Right now the enable for both se0 and tx_mode_se is statically set to one.

I am out of office this week, but will look into this next week.

vogelpi avatar Jul 06 '20 20:07 vogelpi

This is a fairly minor cleanup, so it doesn't need to take priority. However, I'd be in favor of removing the tx_mode_se pin from usbdev.

This seems pretty straightforward. Instead of hard-coding the enable for se0 to 1, we can assign it based on the TX configuration register. Then an integration can use the enable at the top level to drive the transceiver's mode pin, if needed. The pinmux will then lose an unnecessary DIO.

a-will avatar Jan 20 '22 16:01 a-will