]> git.baikalelectronics.ru Git - kernel.git/commit
soc/fsl/qe: only apply QE_General4 workaround on affected SoCs
authorValentin Longchamp <valentin.longchamp@keymile.com>
Fri, 17 Feb 2017 10:29:46 +0000 (11:29 +0100)
committerScott Wood <oss@buserror.net>
Sun, 30 Apr 2017 06:31:52 +0000 (01:31 -0500)
commitede0dc2659a54dc8f35832f0c917a46d334b7e0e
treedaaf87e69a71dd611f96cce73cfbdb80239a9257
parentfbb3f1b0ec9528d5c92acabdc3b85a9c7fc1b292
soc/fsl/qe: only apply QE_General4 workaround on affected SoCs

The QE_General4 workaround is only valid for the MPC832x and MPC836x
SoCs. The other SoCs that embed a QUICC engine are not affected by this
hardware bug and thus can use the computed divisors (this was
successfully tested on the T1040).

Similalry to what was done in commit 99643521d603 ("i2c: mpc: assign the
correct prescaler from SVR") in order to avoid changes in
the device tree nodes of the QE (with maybe a variant of the compatible
property), the PVR reg is read out to find out if the workaround must be
applied or not.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qe/qe.c