Skip to content

Commit

Permalink
mtd: mpc5121_nfc: Changed SVR check to allow MPC5123.
Browse files Browse the repository at this point in the history
The revision in SVR for MPC5123 is 3.  The NFC is the same as MPC5121
revision 2.

Signed-off-by: Steve Deiters <SteveDeiters@basler.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Steve Deiters authored and David Woodhouse committed May 10, 2010
1 parent 29da338 commit 6f1f3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/nand/mpc5121_nfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,10 @@ static int __devinit mpc5121_nfc_probe(struct of_device *op,

/*
* 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;
if (rev != 2) {
if ((rev != 2) && (rev != 3)) {
dev_err(dev, "SoC revision %u is not supported!\n", rev);
return -ENXIO;
}
Expand Down

0 comments on commit 6f1f3d0

Please sign in to comment.