How can I read USB Node and PHY configuration registers from xgdb ?
I cannot find any information how to use sysreg command
Read USB Node and PHY configuration registers from xgdb
Thanks, I already have a look to this thread but I can't find information about fields to access USB node and USB PHY configuration registers.
The thread describe how to access node configuration registers
The thread describe how to access node configuration registers
Hi. Have you seen the details inside the XU208 datasheet? There is info on the USB Node and PHY inside this document. Perhaps this is what you are after?
That's exactly the information I want to read but through xgdb. I have to use "sysreg" command.
As far as I understand the sysreg syntax command is "sysreg read $node $switch $reg".
To access node configuration $node = 0, $switch = 1 and $reg is the register address.
But I can't find which parameter values I have to use to access USB node and phy registers.
As far as I understand the sysreg syntax command is "sysreg read $node $switch $reg".
To access node configuration $node = 0, $switch = 1 and $reg is the register address.
But I can't find which parameter values I have to use to access USB node and phy registers.
I think you may have answered your own question...
Start with $reg = 0 and validate that the response = Device ID as per datasheet - no harm to test since this is a RO = read only register.
then proceed as per datasheet with:
$reg = 4 ; Node configuration register
and so on...USB node and PHY offsets are listed in the same document.
Is this what you are after?
$reg = 0 ; Device Identification RegisterTo access node configuration $node = 0, $switch = 1 and $reg is the register address.
Start with $reg = 0 and validate that the response = Device ID as per datasheet - no harm to test since this is a RO = read only register.
then proceed as per datasheet with:
$reg = 4 ; Node configuration register
and so on...USB node and PHY offsets are listed in the same document.
Is this what you are after?