Commit a755a385 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by David Woodhouse
Browse files

mtd: nand: s3c2410_nand_setrate(): use correct macros for 2412/2440



Use the correct S3C2440_NFCONF_* macros for the mask for the 2412/2440
variants instead of the 2410 ones which use wrong bit positions.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 31bb999e
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -215,9 +215,9 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info)


	case TYPE_S3C2440:
	case TYPE_S3C2440:
	case TYPE_S3C2412:
	case TYPE_S3C2412:
		mask = (S3C2410_NFCONF_TACLS(tacls_max - 1) |
		mask = (S3C2440_NFCONF_TACLS(tacls_max - 1) |
			S3C2410_NFCONF_TWRPH0(7) |
			S3C2440_NFCONF_TWRPH0(7) |
			S3C2410_NFCONF_TWRPH1(7));
			S3C2440_NFCONF_TWRPH1(7));


		set = S3C2440_NFCONF_TACLS(tacls - 1);
		set = S3C2440_NFCONF_TACLS(tacls - 1);
		set |= S3C2440_NFCONF_TWRPH0(twrph0 - 1);
		set |= S3C2440_NFCONF_TWRPH0(twrph0 - 1);