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

Commit db024e7b authored by Petar Sivenov's avatar Petar Sivenov Committed by Sreesudhan Ramakrish Ramkumar
Browse files

ARM: dts: msm: move VFE QOS,VBIF,DS to version specific DT



Adds separate platform specific VFE device tree files.
The QOS, VBIF and DS settings are constants and board dependent. Also
they can be different for same version of VFE hardware thus cannot be
automatically derived from its version register. This patch moves
these settings in version specific device tree files.

Change-Id: Id1c9709363254f214c744d6a723cc059bf0f6216
Signed-off-by: default avatarPetar Sivenov <psiven@codeaurora.org>
parent 1677ceb2
Loading
Loading
Loading
Loading
+45 −1
Original line number Diff line number Diff line
@@ -27,7 +27,10 @@ Required properties:
- ds-settings: danger/safe values to be written to registers (optional)
  NOTE: For all qos*, vbif*, ds* parameters, same SoC can have different
  hardware versions with different entries/registers/settings. They can be
  specified by adding version to the string e.g. qos-v2-settings.
  specified by adding version to the string e.g. qos-v2-settings. Also
  different SoC can have same hardware version and still different QOS, VBIF,
  and DS parameters. In this case they are exported if separate SoC version
  specific dts files.

Example:

@@ -79,3 +82,44 @@ Example:
                0x44441111 0x44441111 0x44441111
                0x44441111 0x00000103>;
   };

In version specific file one needs to move only entries that differ between
SoC versions with same VFE HW version:

	&vfe0 {
		qos-entries = <8>;
		qos-regs = <0x378 0x37C 0x380 0x384 0x388 0x38C
				0x390 0x394>;
		qos-settings = <0xAAA9AAA9
			0xAAA9AAA9
			0xAAA9AAA9
			0xAAA9AAA9
			0xAAA9AAA9
			0xAAA9AAA9
			0xAAA9AAA9
			0x0001AAA9>;
		vbif-entries = <1>;
		vbif-regs = <0x124>;
		vbif-settings = <0x3>;
		ds-entries = <17>;
		ds-regs = <0xBD8 0xBDC 0xBE0 0xBE4 0xBE8
			0xBEC 0xBF0 0xBF4 0xBF8 0xBFC 0xC00
			0xC04 0xC08 0xC0C 0xC10 0xC14 0xC18>;
		ds-settings = <0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x44441111
			0x00000103>;
	};
+88 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

&vfe0 {
	qos-entries = <8>;
	qos-regs = <0x378 0x37C 0x380 0x384 0x388 0x38C
			0x390 0x394>;
	qos-settings = <0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0x0001AAA9>;
	vbif-entries = <1>;
	vbif-regs = <0x124>;
	vbif-settings = <0x3>;
	ds-entries = <17>;
	ds-regs = <0xBD8 0xBDC 0xBE0 0xBE4 0xBE8
		0xBEC 0xBF0 0xBF4 0xBF8 0xBFC 0xC00
		0xC04 0xC08 0xC0C 0xC10 0xC14 0xC18>;
	ds-settings = <0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x00000103>;
};

&vfe1 {
	qos-entries = <8>;
	qos-regs = <0x378 0x37C 0x380 0x384 0x388 0x38C
			0x390 0x394>;
	qos-settings = <0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0x0001AAA9>;
	vbif-entries = <1>;
	vbif-regs = <0x124>;
	vbif-settings = <0x3>;
	ds-entries = <17>;
	ds-regs = <0xBD8 0xBDC 0xBE0 0xBE4 0xBE8
		0xBEC 0xBF0 0xBF4 0xBF8 0xBFC 0xC00
		0xC04 0xC08 0xC0C 0xC10 0xC14 0xC18>;
	ds-settings = <0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x44441111
		0x00000103>;
};
+88 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

&vfe0 {
	qos-entries = <8>;
	qos-regs = <0x378 0x37C 0x380 0x384 0x388 0x38C
			0x390 0x394>;
	qos-settings = <0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0x0001AAA9>;
	vbif-entries = <1>;
	vbif-regs = <0x124>;
	vbif-settings = <0x3>;
	ds-entries = <17>;
	ds-regs = <0xBD8 0xBDC 0xBE0 0xBE4 0xBE8
		0xBEC 0xBF0 0xBF4 0xBF8 0xBFC 0xC00
		0xC04 0xC08 0xC0C 0xC10 0xC14 0xC18>;
	ds-settings = <0x44441111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0x00000103>;
};

&vfe1 {
	qos-entries = <8>;
	qos-regs = <0x378 0x37C 0x380 0x384 0x388 0x38C
			0x390 0x394>;
	qos-settings = <0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0xAAA9AAA9
		0x0001AAA9>;
	vbif-entries = <1>;
	vbif-regs = <0x124>;
	vbif-settings = <0x3>;
	ds-entries = <17>;
	ds-regs = <0xBD8 0xBDC 0xBE0 0xBE4 0xBE8
		0xBEC 0xBF0 0xBF4 0xBF8 0xBFC 0xC00
		0xC04 0xC08 0xC0C 0xC10 0xC14 0xC18>;
	ds-settings = <0x44441111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0xCCCC1111
		0x00000103>;
};
+2 −2
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@
			320000000 0 0>;
	};

	qcom,vfe@fda10000 {
	vfe0: qcom,vfe@fda10000 {
		cell-index = <0>;
		compatible = "qcom,vfe46";
		reg = <0xfda10000 0x1000>,
@@ -260,7 +260,7 @@

	};

	qcom,vfe@fda14000 {
	vfe1: qcom,vfe@fda14000 {
		cell-index = <1>;
		compatible = "qcom,vfe46";
		reg = <0xfda14000 0x1000>,
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
#include "msm8994.dtsi"
#include "msm8994-coresight-v1.dtsi"
#include "msm8994-v1-pm.dtsi"
#include "msm8994-camera-v1.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. MSM 8994";
Loading