summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/core.c
diff options
context:
space:
mode:
authorIbai Erkiaga <ibai.erkiaga-elorza@xilinx.com>2020-08-04 23:17:31 +0100
committerMichal Simek <michal.simek@xilinx.com>2020-09-23 10:31:40 +0200
commitfa793165daf74133a2aef7cb98cc9050e36f0b6c (patch)
tree087369aa412b393138c1ed330cdba494e72dc68e /drivers/usb/cdns3/core.c
parent2783e02da846e54387a022043f5880684dfd5e5e (diff)
xilinx: zynqmp: refactor silicon name function
Current algorithm used to get the silicon name is bit complicated and hard to follow. Updated to use more straightforward mechanism based on the Device ID code table (Table 1-2). The full IDCODE register is used (except device revision bits [31:28]) to get the device name and IDCODE2 value is used for identifying the variant. Additionally to make the algorithm bit more clear it also save some space as the devices table is slightly bit smaller. Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions