Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cc9d08d authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz
Browse files

mfd: wm5102: Mark DSP memory regions as volatile and readable



We can cache some of them but this is simpler for now.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent f1c68e4d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1826,6 +1826,12 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
	case ARIZONA_DSP1_STATUS_3:
		return true;
	default:
		if ((reg >= 0x100000 && reg < 0x106000) ||
		    (reg >= 0x180000 && reg < 0x180800) ||
		    (reg >= 0x190000 && reg < 0x194800) ||
		    (reg >= 0x1a8000 && reg < 0x1a9800))
			return true;
		else
			return false;
	}
}