Commit d849a938 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Fix tusb3.1 detection for newer chips

Looks like the die ID can be >= 2 on tusb3.1 chips.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent e3ed84c0
......@@ -44,7 +44,7 @@ static u8 tusb_get_revision(struct musb *musb)
if (TUSB_REV_MAJOR(rev) == 3) {
die_id = TUSB_DIDR1_HI_CHIP_REV(musb_readl(tbase,
TUSB_DIDR1_HI));
if (die_id == TUSB_DIDR1_HI_REV_31)
if (die_id >= TUSB_DIDR1_HI_REV_31)
rev |= 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment