Commit 6f1f3d0a authored by Steve Deiters's avatar Steve Deiters Committed by David Woodhouse

mtd: mpc5121_nfc: Changed SVR check to allow MPC5123.

The revision in SVR for MPC5123 is 3.  The NFC is the same as MPC5121
revision 2.
Signed-off-by: default avatarSteve Deiters <SteveDeiters@basler.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 29da3380
...@@ -666,10 +666,10 @@ static int __devinit mpc5121_nfc_probe(struct of_device *op, ...@@ -666,10 +666,10 @@ static int __devinit mpc5121_nfc_probe(struct of_device *op,
/* /*
* Check SoC revision. This driver supports only NFC * Check SoC revision. This driver supports only NFC
* in MPC5121 revision 2. * in MPC5121 revision 2 and MPC5123 revision 3.
*/ */
rev = (mfspr(SPRN_SVR) >> 4) & 0xF; rev = (mfspr(SPRN_SVR) >> 4) & 0xF;
if (rev != 2) { if ((rev != 2) && (rev != 3)) {
dev_err(dev, "SoC revision %u is not supported!\n", rev); dev_err(dev, "SoC revision %u is not supported!\n", rev);
return -ENXIO; return -ENXIO;
} }
......
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