mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
Provide correct TCLK value for Kirkwood A1 silicon revision.
While there improve SOC ID output accordingly. Obtained from: Semihalf MFC after: 1 week
This commit is contained in:
parent
67d079f342
commit
bd50890544
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204764
@ -261,6 +261,8 @@ soc_identify(void)
|
||||
rev = "Z0";
|
||||
else if (r == 2)
|
||||
rev = "A0";
|
||||
else if (r == 3)
|
||||
rev = "A1";
|
||||
break;
|
||||
case MV_DEV_MV78100_Z0:
|
||||
dev = "Marvell MV78100 Z0";
|
||||
|
@ -176,11 +176,11 @@ get_tclk(void)
|
||||
/*
|
||||
* On Kirkwood TCLK is not configurable and depends on silicon
|
||||
* revision:
|
||||
* - A0 has TCLK hardcoded to 200 MHz.
|
||||
* - A0 and A1 have TCLK hardcoded to 200 MHz.
|
||||
* - Z0 and others have TCLK hardcoded to 166 MHz.
|
||||
*/
|
||||
soc_id(&dev, &rev);
|
||||
if (dev == MV_DEV_88F6281 && rev == 2)
|
||||
if (dev == MV_DEV_88F6281 && (rev == 2 || rev == 3))
|
||||
return (TCLK_200MHZ);
|
||||
|
||||
return (TCLK_166MHZ);
|
||||
|
Loading…
Reference in New Issue
Block a user