There are now two built-in phys ephy and sphy, so that use the
interface integrated_phy_power() as a public interface.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: If964436beeba1359a7ce7c764f85b50a6cf52bd7
Support RK630 ethernet PHY currently, this is a RMII PHY.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I444f9c5abd1dc5fe8067b79ddee93a801d7a28b9
The default used thermal with IPA on rockchip_linux_defconfig.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I8c928ea6c139db3d34af783bc9aa9d7e8987afc9
Switch to use CMDLINE partition instead of GPT partition.
This patch also disable MDOS partition which apply for FAT.
- CONFIG_MSDOS_PARTITION
- CONFIG_EFI_PARTITION
+ CONFIG_CMDLINE_PARTITION
Change-Id: Ic298b8fbe7f8d393ba722991717ae11f881d394c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
The sdio requires the cmd and data pins to pull up by soc.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ieef7128a280a9f39b226879f5b16559025dabe3b
If set dclk to the same frequency as before, the set_rate callback
won't be called. Hdmi phy is not configured correctly. So hdmi phy
must be configured in the clk enable callback.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ie780a5969b342595fa94c60dd58889b9bf2bb78b
In some condition, only 1 hdmi phy is enabled. The strategy
need judge which hdmi phy pll can be used.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ia36d3f3cf010a0322e4d51a85f980012b5ee2231
For ipc product not use GPT, kernel get the partition from cmdline.
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I3d4126edb1af89e9eb7d70a975fd1dfc4222262e
In addition, move rgb node from peri_grf to venc_grf.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ib4586cf83e4418ce51381bc0adf989e6f3e742a6
The vogrf register is cleared when system suspend. It need
config the hpd status when system resume.
Change-Id: I50419b8496ba389193238cae08e3710172f6c5be
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Fixes: b31df11baa ("drm/rockchip: dw-dp: force runtime PM suspend on system suspend")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iaf5ceb65584cbe613c0e5c37c9586bfc235259e8
It's better to force link into L2 before we power off devices,
especially if link is in L1. L2 routine is fully defined as:
1) host brings all downstream components back to D0 and L0 before
PCIe stack set D2hot to all devices.
2) send PME_Turn_Off to downstream components and wait for PME_To_Ack
3) check if we are ready to enter L23
4) check if link is already in L2
5) release all kinds of resources including power, #PERST, etc.
6) reset controller when resume
7) brings all downstream components to L0s and L1 after resume
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I27d7e41079d5e15b4a93d66aa8d6b9286e182ecd
This driver aimed at starting decompression as soon as
possible.
Change-Id: Ie29f43935f0642ae8c9c605d3ebc40292d4d1781
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
The current runtime suspend/resume do nothing when the
current_dr_role is not set. It may fail to do core init
in some scenes.
Test on RK3588 EVB2 or NVR Demo which have Type-A OTG
port, without this patch, the USB ADB enumeration failed
occasionally. When this error happens, we can find that
the register GUSB2PHYCFG(0) isn't initialized correctly.
It's because that during dwc3 probe, if the drd_work which
called from dwc3_drd_init() is scheduled behind the runtime
suspend process, the current_dr_role will be uninitialized,
this cause the runtime resume process doing nothing and put
the dwc3 phy in uninitialized status.
This patch add dwc3_core_init and dwc3_core_exit operation
for runtime suspend/resume when the current_dr_role is not
initialized.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I294bcf2ad68136e9eb24a9e4a1ad389e73c974d2
The RV1106 SoC have one channel TS-ADC(CPU).
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ib8485cd438feb5aab0e359ab1517ea263a6a978e
HASH_ALGO_SHA224 was misspelled as HASH_ALGO_SHA256.
In hMAC-224 algorithm, key digest errors occur when the key
length exceeds the blocksize length.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I38c20028b390f32fa7326e4b4e4adeb43902f2e0
This adds mailbox and pmu_mailbox nodes for RV1106 SoCs.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I2c1f6c9f64f0ec04d981c1491495611bc2cff09a
usleep shouldn't be used in an atomic context.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I9c6accd1b17488f4ad25b79681856c47fab29d20
Export the rfkill_get_wifi_power_state() for use by pcie-dw-rockchip.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I122d74da9271f2f808fbd474386994778561cbf8
1. disable crypto interrupt when crypto is idle
2. ahash init/update/final use hardware crypto
3. reset crypto cc before cipher/hash hardware init
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Id2c85c36c9f2fbe34af553b3ba12239e3cd281b4
1. add sha224/sha384 support.
2. XTS mode was removed due to panic on some platforms(RV1126 kernel 4.19).
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I339cb21c6abefa684f9d36e8faaa04d6ab43d3b1
1. On RV1126/RV1109, AES-192 dma-fd should not use hardware crypto.
2. Fixed a bug with CTR rk_iv_copyback in chain mode.
3. Modify cryptodev log information to reduce runtime logging.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ib197e0df4f0ff0c7f4cd20832f25be1b21e8cbf3