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:
Rafal Jaworowski 2010-03-05 19:45:45 +00:00
parent 67d079f342
commit bd50890544
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204764
2 changed files with 4 additions and 2 deletions

View File

@ -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";

View File

@ -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);