ARM: dts: rockchip: rk3288 hevc using same clk freqs as android
authorRandy Li <randy.li@rock-chips.com>
Wed, 30 Nov 2016 03:21:51 +0000 (11:21 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 7 Dec 2016 02:56:54 +0000 (10:56 +0800)
If you meet a performance issue, I would suggest you to set
500MHZ for ACLK_HEVC at rk3288. It could solve the decoding quite
slow for some video resources.

Change-Id: Iedc2bc90fb13ae89d204dc6b5f5d897acae6812d
Signed-off-by: Randy Li <randy.li@rock-chips.com>
arch/arm/boot/dts/rk3288.dtsi

index 131759906f0a08880e6b2507abb173ca9571d487..d23c920fe7b6c93bc9b6e15ffd546496e867851e 100644 (file)
                        <&cru SCLK_HEVC_CABAC>;
                clock-names = "aclk_vcodec", "hclk_vcodec", "clk_core",
                        "clk_cabac";
+               /*
+                * The 4K hevc would also work well with 500/125/300/300,
+                * no more err irq and reset request.
+                */
+               assigned-clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>,
+                                 <&cru SCLK_HEVC_CORE>,
+                                 <&cru SCLK_HEVC_CABAC>;
+               assigned-clock-rates = <400000000>, <100000000>,
+                                      <300000000>, <300000000>;
+
                resets = <&cru SRST_HEVC>;
                reset-names = "video";
                power-domains = <&power RK3288_PD_HEVC>;