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

Commit 50a47e50 authored by Prakash Gupta's avatar Prakash Gupta
Browse files

ARM: dts: msm: fix qfprom register bits field for sdm670



Qfprom bit offset field expects value bitween 0-7
(Documentation/devicetree/bindings/nvmem/nvmem.txt).  This change fixes
commit 614664b8a1e2 ("ARM: dts: msm: Add qfprom node for sdm670").

Set bits offset to 0 and read number bits to desired offset. Client would
need to extract desired bits from the read value.

Use QFPROM RO register instead of RW.

Change-Id: If8ab33a4f019309b3d99dfdb2849e361206aa0f6
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent d0edcda0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2838,14 +2838,14 @@

	qfprom: qfprom@0x780000 {
		compatible	= "qcom,qfprom";
		reg		= <0x00780000 0x1000>;
		reg		= <0x00784000 0x1000>;
		#address-cells	= <1>;
		#size-cells	= <1>;
		ranges;

		minor_rev: minor_rev@0x78014c {
		minor_rev: minor_rev@0x78414c {
			reg = <0x14c 0x4>;
			bits = <0x1c 0x2>;
			bits = <0 30>; /* Access 30 bits from bit offset 0 */
		};
	};