Configuration is flexible than hard code, and minimal changes.
Change-Id: I15835fcbf198252410feb3feb6080ca047388ce1
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
if CONFIG_IOMMU_SUPPORT=n, log:
error: 'const struct iommu_ops' has no member named 'flush_iotlb_all'
if (domain && domain->ops && domain->ops->flush_iotlb_all)
Change-Id: I8268e0b5d5a513d1c55b0c755c479049b13bdeb7
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Add this config option to reduce memory usage, if it was not necessary.
./ksize.sh drivers/net/ethernet/stmicro/
before size: 82879 Bytes
after size: 59075 Bytes
save size: 23804 Bytes
Change-Id: I5f6b4573d7358c3b6f046e960c7ddf7d53541b14
Signed-off-by: David Wu <david.wu@rock-chips.com>
Add this config option to reduce memory usage, if it was not necessary.
./ksize.sh drivers/net/ethernet/stmicro/
before size: 94474 Bytes
after size: 82879 Bytes
save size: 11595 Bytes
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I828130d961846a955b998d63afffbabcc9dd5925
After power up, the cs and clock is in default status, and the cs-high
and clock polarity dts property configuration will take no effect until
the calling of rockchip_spi_config in the first transmission.
So preset them to make sure a correct voltage before the the first
transmission comming.
Change-Id: Ib00336a3ebda6e04bdb33c56c7da419bfb6efdd9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Linux system will set hdmi properties when system boot
When some properties such as quant_range was set, dw_hdmi_setup()
will be called. HDMI status may not be config correctly. So if HDMI
is not properly initialized, don't call dw_hdmi_setup() when
these properties was set.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I6956e50161a4a5bd579f7174c73977d2e33da0c5
Fixes: ad3cad3616 ("drm/rockchip: analogix_dp: Covert to use bulk clk")
Change-Id: I5a980fdef172013138293c999a00014141a0ffbd
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
isp20 bridge will config gain and image dma address when isp
frame start interrupt event, and frame end update. But no
actual update if frame start and frame end together. One read
back is the same as the start interrupt event, so to update
bridge mi this.
Change-Id: I697128fd60c3e38eb2ed163a5a94df8c4c018241
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This reverts commit 20d8a7925f.
Generally, we cannot guarantee that the paths of capture and
playback need to be turned on by default after resume, which
can be manually controlled by the user layer. In this way, the
problem of asymmetrical clock operation can also be corrected
after resume.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I1cb7b364313a7573032851fe0c2970cf1a078b0a
RK356X has the same issue as RV1126/RV1109 that caused by
dte fetch time limit, So we can set BIT(31) of register 0x24 default
to 1 as a workaround.
Change-Id: Ib0d1fd110aa0349145a63f7c4be5ce77ed6ab4e4
Fixes: fcbec99d51 ("iommu: rockchip: disable fetch dte time limit")
Signed-off-by: Simon Xue <xxm@rock-chips.com>
No need to use CONFIG_MALI_BIFROST_FOR_LINUX
after px30/rk3326 Android and Linux device
use the same bifrost_device_driver "drivers/gpu/arm/bifrost".
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: Ia4c9c79be2c10d5d708a8ea1bb4bc5d49c97267b
Because they are no longer useful,
after rk3288/rk3399 Android and Linux device
use the same midgard_device_driver "drivers/gpu/arm/midgard".
Change-Id: I7ccc3c99fdfdde5a0ea12a7f3e1931fd5f1ce4cb
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Add this config option to reduce memory usage, if it was not necessary.
./ksize.sh drivers/net/ethernet/stmicro/
before size: 105216 Bytes
after size: 94474 Bytes
save size: 10742 Bytes
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I96c88d5eb5109fc956a85b8685e1746d76545a87
1. vop lite can't support pixel-alpha + scale and can support global
alpha + scale;
2. global alpha must be non-premul alpha mode;
3. vop lite and vop full premul alpha config bit is reversed;
4. vop full add premul and non-premul config from userspace;
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ic42892eac39f07a41d46ed1a77398862f37894c0
This patch fixes the ramoops right register for kernel.
check the '/sys/fs/pstore/console-ramoops-0' after the reboot system.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I345ca0b497031c5d18c2b10eb661efe39a4b3025
1) Enable LT6911UXC and LT8619C
Enable lt6911uxc HDMI to MIPI CSI-2 bridge driver for hdmi-in
application. Which found on rk3568-evb2-lp4x-v10.
Enable lt8619c HDMI to BT656/BT1120 bridge driver for hdmi-in
application. Which found on rk3568-evb6-ddr3-v10.
2) Enable CONFIG_DEVFREQ_EVENT_ROCKCHIP_NOCP
This add the devfreq-event driver for Rockchip SoC. It provides NoC
(Network on Chip) Probe counters to monitor traffic statistics.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I7d4e50329ff9576f5e16599b04c6b7af37d5d306
enable sleep vol when resume, if not reboot will failed after sleep out
by vdd_cpu off
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: If56bc9894abb37b771ed1097e0deb73c679cc315
Allow codec driver register callback function for plug event.
The callback registration flow:
dw-hdmi <--- hw-hdmi-i2s-audio <--- hdmi-codec
dw-hdmi-i2s-audio implements hook_plugged_cb op
so codec driver can register the callback.
dw-hdmi exports a function dw_hdmi_set_plugged_cb so platform device
can register the callback.
When connector plug/unplug event happens, report this event using the
callback.
Make sure that audio and drm are using the single source of truth for
connector status.
Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Link: https://lore.kernel.org/r/20191028071930.145899-2-cychiang@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit a9c82d63ca)
Change-Id: Ieea468bf53165e2436996b453b048db049bcbf67
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
When build with rv1126_defconfig:
before:
text data bss dec hex filename
7820 144 0 7964 1f1c drivers/media/platform/rockchip/cif/hw.o
after:
text data bss dec hex filename
4301 144 0 4445 115d drivers/media/platform/rockchip/cif/hw.o
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I0dee5f7f43da3eb58a65342319ccb77b5501e0ce
When build with rv1126_defconfig:
before:
text data bss dec hex filename
17063 144 0 17207 4337 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.o
after:
text data bss dec hex filename
7387 144 0 7531 1d6b drivers/net/ethernet/stmicro/stmmac/dwmac-rk.o
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I941f79357f686f5d35e727abea2fe26c4ea0dafa
When build with rv1126_defconfig:
before:
text data bss dec hex filename
8796 156 4 8956 22fc drivers/soc/rockchip/rockchip_pvtm.o
after:
text data bss dec hex filename
4508 156 4 4668 123c drivers/soc/rockchip/rockchip_pvtm.o
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8c49713ebc48586aa4f08fb3ec965890c2beb1a2
This is an attempt to rehash commit 0cf884e819 ("usb: dwc2: add bus
suspend/resume for dwc2") on ToT. That commit was reverted in commit
b0bb9bb6ce ("Revert "usb: dwc2: add bus suspend/resume for dwc2"")
because apparently it broke the Altera SOCFPGA.
With all the changes that have happened to dwc2 in the meantime, it's
possible that the Altera SOCFPGA will just magically work with this
change now. ...and it would be good to get bus suspend/resume
implemented.
This change is a forward port of one that's been living in the Chrome
OS 3.14 kernel tree.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iba408750729ce6c8f1cb0c94a5e8891c7b240014
(cherry picked from commit 6f6d70597c)