Commit 9affaa4a authored by Daniel Palmer's avatar Daniel Palmer Committed by Romain Perier
Browse files

ARM: mstar: Add OPP table for infinity



Add an OPP table for the inifinity chips so
that cpu frequency scaling can happen.

Co-authored-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarDaniel Palmer <daniel@0x0f.com>
Reviewed-by: default avatarRomain Perier <romain.perier@gmail.com>
parent 79f700c2
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -8,6 +8,40 @@

#include <dt-bindings/gpio/msc313-gpio.h>

/ {
	cpu0_opp_table: opp_table0 {
		compatible = "operating-points-v2";
		opp-shared;

		opp-240000000 {
			opp-hz = /bits/ 64 <240000000>;
			opp-microvolt = <1000000>;
			clock-latency-ns = <300000>;
		};

		opp-400000000 {
			opp-hz = /bits/ 64 <400000000>;
			opp-microvolt = <1000000>;
			clock-latency-ns = <300000>;
		};
		opp-600000000 {
			opp-hz = /bits/ 64 <600000000>;
			opp-microvolt = <1000000>;
			clock-latency-ns = <300000>;
		};

		opp-800000000 {
			opp-hz = /bits/ 64 <800000000>;
			opp-microvolt = <1000000>;
			clock-latency-ns = <300000>;
		};
	};
};

&cpu0 {
	operating-points-v2 = <&cpu0_opp_table>;
};

&imi {
	reg = <0xa0000000 0x16000>;
};