This reverts commit e5cb1f01cd.
This function is not stable.
u-boot should also revert this commit:
0b728e80d451 ("drm/rockchip: vop2: disabled aclk of video port when unused")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I8f3b1180c29a670433a12993f18b33716bef288f
Phy must be reset or GRF_HDPTX_STATUS will always show phy
is locked.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I9f1ade5ce6f744b1d9590f72b95bc18c58b6d12b
Make APIs and structure only visible in rk_heaps ranges
Change-Id: I396f6dc47210591647f52a2247abc969bb826245
Signed-off-by: Simon Xue <xxm@rock-chips.com>
LPM on the device appears to cause xHCI host controllers
to reset the usb device when run at USB 2.0 high speed,
then the device will enter suspend and unable to exit.
Change-Id: I185cfe2c01f6de20463b041bdf4dac54978f1ada
Signed-off-by: William Wu <william.wu@rock-chips.com>
List total buffer size on the last line
List each buffer size
Change-Id: I5ca932cf77d3fb041c90df38b1cd19f68665f3f3
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This adds optional vbus control for et7303 Type-C controller.
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
Change-Id: I7cd324f994962f212ff01dbd2b6073753151bfa9
Wlan devices support for RK platform has changed as the function driver
would cut down the power before host driver take place. So L2 must fail
now. We don't need to waste time for waiting for L2 to happen.
Meanwhile, given that the L2 handshake is a MSG TLP level operation, we
don't need such a long time to wait for timeout, in case some buggy devices
wouldn't support it.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I6bd9e54a9ace46c0d44e9f2fcfb1b5ced43136ab
1.Hdmirx DMA caused NOC abnormal pending during hot-plug operation,
resulting in system crash.Detect signal change as soon as possible
and reset hdmirx controller in FIQ to avoid hdmirx DMA exception.
2.Add hdmirx DMA reset operation when HDMI is unplugged and hdmirx
DMA is off.
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I89dfda97cc0e4a9ac366a87b134762e400675530
HDMIRX_HDMI interrupt is handled in FIQ and triggered by software
interrupt 468 in HDMIRX driver.
Change-Id: I9f3abb373198bcb615e7290621d6baa96de21a7f
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
According to the signal test results, it is recommended
to configure the value of TX DLL TAP as 0x9 for HS400.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I4f999020a2d1c1d415894fb58b63b55f700a1531
Add new ioctl cmd RIOCCRYPT_RSA_CRYPT for rsa encrypt/decrypt.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: If92e1a71b1ce4fcf6b414736cf6405a1d7b6334c
Support call same level initcall async in kthread.
Introduce kernel parameter "initcall_nr_threads" control how many threads.
initcall_nr_threads default is 0, which disable intcall async.
initcall_nr_threads=-1, auto selected the number of threads.
Save boot time about 29ms on rk3126-bnd-d708 board.
Change-Id: I04663d22500bc1d65ca5841fb08e4b57083d6b5e
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
The register of MMU_DTE_ADDR may effect for delay several us.
Change-Id: I74397a914313d9fe3d7c93de7b94b4b38dc61c7b
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
+CONFIG_FORCE_MAX_ZONEORDER=9
Set max zone order to 9, make the pagelock to be 1MiB size.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: If013d2dc092c85c89b325b4c646c814f9cf94fef
RV1103 doesn't have VBUSDET pin for the usb phy to
detect the USB VBUS, and the default status of bvalid
is inactive(low level), it cause the dwc3 controller
fail to start usb device connection, so it needs to
set bvalid to high by grf for RV1103.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If63c68270c14ff8fa402805a33ce3061f6f796ab
This patch enable the USB configs for basic device and
host functions.
With this patch, it also enable CONFIG_CONFIGFS_FS because
the USB Gadget F_FS depends on it.
I use size cmd to calculate the increased static memory.
before:
MODULE BYTES
kernel/drivers 1212734
kernel/fs 699540
after:
MODULE BYTES
kernel/drivers 1506379
kernel/fs 712940
And if we disable the CONFIG_DEBUG_FS, it can save 11441 Bytes
for xhci-debugfs driver.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Id23410e66c49fb54663e34a23e09e142d49c7dd9
In a typical read transfer, start completion flag is being set after
read finishes (notice ipd bit 4 being set):
trasnfer poll=0
i2c start
rk3x-i2c fdd40000.i2c: IRQ: state 1, ipd: 10
i2c read
rk3x-i2c fdd40000.i2c: IRQ: state 2, ipd: 1b
i2c stop
rk3x-i2c fdd40000.i2c: IRQ: state 4, ipd: 33
This causes I2C transfer being aborted in polled mode from a stop completion
handler:
trasnfer poll=1
i2c start
rk3x-i2c fdd40000.i2c: IRQ: state 1, ipd: 10
i2c read
rk3x-i2c fdd40000.i2c: IRQ: state 2, ipd: 0
rk3x-i2c fdd40000.i2c: IRQ: state 2, ipd: 1b
i2c stop
rk3x-i2c fdd40000.i2c: IRQ: state 4, ipd: 13
i2c stop
rk3x-i2c fdd40000.i2c: unexpected irq in STOP: 0x10
Clearing the START flag after read fixes the issue without any obvious
side effects.
This issue was dicovered on RK3566 when adding support for powering
off the RK817 PMIC.
Signed-off-by: Ondrej Jirman <megous@megous.com>
Reviewed-by: John Keeping <john@metanate.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
(cherry picked from commit 02fe0fbd8a)
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I9cf23d9a9bc9560a421c6fe13a82a6637d8a1432
For kernel 5.10, the interface functions of sign and
verify have changed and are not mandatory.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I2b94eaeaa5d0d3dd99ba86dd418338d9502c8aa5
* LPCM: BPCUV insertion by hw
* NLPCM/HBR: BPCUV insertion from stream
when BPCUV is from stream, we should not enable hw channel
status override which will replace CS with the hw one.
This fixes DD+ bitstream.
when BPCUV generated from HW, PBIT_FORCE_EN should be set
for Parity bit calculated internally.
This fixes no sound on some display devices.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I3aa0390d9dd7d217853394c74576749c36b84720