UPSTREAM: arm64: dts: rockchip: add gmac needed pclk for rk3399 pd
authorJeffy Chen <jeffy.chen@rock-chips.com>
Mon, 14 Nov 2016 04:36:39 +0000 (12:36 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 28 Nov 2016 09:58:08 +0000 (17:58 +0800)
commit183f198ab71e611e375db654ddf00b3362ca8074
treec584210ca3b1f15af5330333292b11458f9e0059
parent939aa1c5095fe0c4b81efb34b4e6a547379cea8a
UPSTREAM: arm64: dts: rockchip: add gmac needed pclk for rk3399 pd

This patch fixes that sometimes hang at start-up time of the system.
As the below log:
...
[   11.136543] calling  pm_genpd_debug_init+0x0/0x60 @ 1
[   11.141602] initcall pm_genpd_debug_init+0x0/0x60 returned 0 after 11 usecs
[   11.148558] calling  genpd_poweroff_unused+0x0/0x84 @ 1
<hang>

In some cases, the rk3399 should turn off the gmac power domain to save
power if some boards didn't register the gmac device node for rk3399.
Then, rk3399 need to make sure the gmac's pclk enabled if we need
operate the gmac power domain. (Due to the NOC had enabled always)

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(am from git/mmind/linux-rockchip.git branch for-next
 commit 2afc1db0c5bad5da75556889ebc3e75661be9028)

Change-Id: I8425b83e617de9eafaa093c3342b8e6082eb4112
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399.dtsi