stmmac: add ipq806x glue layer
Quoted 7 lines · Mathieu Olivari
Hi Dan,
You're right, that's a bug. The offset should be (x), and not (1 << x). We could either redefine the macro to be (x), or we just use <<gmac->iddirectly without a macro.
The reason why we haveNSS_COMMON_CLK_SRC_CTRL_RGMII&NSS_COMMON_CLK_SRC_CTRL_SGMIImacros is that the bit takes different values depending on the port. I can post a patch today if you want.
Yes, please. If you could give me a Reported-by: Dan Carpenter <[email protected]> tag, I would be grateful. Thanks!
regards,
dan carpenter