This patch adds vbus-supply for usb2 otg to support
vbus control in u-boot via kernel dtb.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ic1c414bef56e68cea79c0e316824b4d915e8d63e
In order to let combo phy check the mplla_state/mpllb_state.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I22da2ad35a12c1f135dcbb940e235f9cb179c439
Move devm_clk_bulk_get_all into rk_pcie_resource_get()
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I4115faaa1fd84f7c7b521a025c3b9682e920c362
ERROR: modpost: module flexbus_cif uses symbol dma_buf_put from namespace DMA_BUF, but does not import it.
ERROR: modpost: module flexbus_cif uses symbol dma_buf_fd from namespace DMA_BUF, but does not import it.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3a512a9b4efc899dc16b61b6cbc867d5cabe70d1
If logo display enabled, the rockchip_tve_encoder_loader_protect()
helps to set the tve enable/disable status and call
pm_runtime_get_sync()/pm_runtime_put(), which allows for
the continuation of the display state from the U-Boot stage.
In addition, fix the check of tve mode setting in .mode_set()
to avoid display flashing, which caused by the off/on switch of dac.
Change-Id: I6f1fcaf05cb6e362ce375e447c566fb5356c5380
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
It doesn't make sense to always enable tve/vdac clks in probing.
The clks dynamic switching can also help to reduce the power
consumption.
Change-Id: Id93b5552d6e984d7a6306508f5ee74b383a0d3c5
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
RK3528/RK3562/RK3576 NV12/NV21/NV15/NV51 format src_h must aligned as 2 line,
otherwise the last line will be error.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2df24bbaa318fb78bb632a6d9d42cbc4ee66656b
rk3506 evb USB flash drive mounting must support one ntfs format
before:
text data bss dec hex filename
4919662 2289888 114376 7323926 6fc116 vmlinux
after:
text data bss dec hex filename
5019134 2302528 114952 7436614 717946 vmlinux
Change-Id: I50fc0313db640e39b2cd46325bf7966357c3198d
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
During system suspend and resume, the iddig control
registers maybe changed unexpectedly because of some
reasons, such as grf lost power or modified in phy
tuning, it will cause otg host mode invalid after
system resume if the otg port was forced to host mode
by iddig registers before enter suspend.
This patch check the otg port mode and iddig status
in resume, if the otg port in force host mode and the
iddig status has changed during resume, it recovery
the iddig control regs for host mode.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I881736718db6ee5cf42c0cff58f3c2629cb29928
1. set trust size:0x62000
2. set ramoops start:0x83000, size:0x2d000
Change-Id: I140599f2286e363fbb7607cea9b6824be4c4ade3
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
before:
text data bss dec hex filename
4919662 2289888 114376 7323926 6fc116 vmlinux
after:
text data bss dec hex filename
4817210 2235024 110208 7162442 6d4a4a vmlinux
Change-Id: I66ff62436bafa48242cec573901195220e84fbac
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
The current arm32 architecture does not yet support the
HAVE_LD_DEAD_CODE_DATA_ELIMINATION feature. arm32 is widely used in
embedded scenarios, and enabling this feature would be beneficial for
reducing the size of the kernel image.
In order to make this work, we keep the necessary tables by annotating
them with KEEP, also it requires further changes to linker script to KEEP
some tables and wildcard compiler generated sections into the right place.
When using ld.lld for linking, KEEP is not recognized within the OVERLAY
command, and Ard proposed a concise method to solve this problem.
It boots normally with defconfig, vexpress_defconfig and tinyconfig.
The size comparison of zImage is as follows:
defconfig vexpress_defconfig tinyconfig
5137712 5138024 424192 no dce
5032560 4997824 298384 dce
2.0% 2.7% 29.7% shrink
When using smaller config file, there is a significant reduction in the
size of the zImage.
We also tested this patch on a commercially available single-board
computer, and the comparison is as follows:
a15eb_config
2161384 no dce
2092240 dce
3.2% shrink
The zImage size has been reduced by approximately 3.2%, which is 70KB on
2.1M.
Change-Id: Id2c136f7c992c6699c6c576ada46bfb025378f78
Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com>
Tested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit ed0f941022515ff40473ea5335769a5dc2524a3f)
1. Fix the csc matrix. For YUV709L to YUV709L, YUV601L to
YUV601L, YUV2020L to YUV2020L, The csc matrix should be
identity matrix. For YUV601L to YUV709L, modeify the csc
matrix.
2. optimize the final calculation result. Use the new r2y
and y2r matrix for csc yuv2yuv and rgb2rgb case. A simple
round is used for csc yuv2yuv and rgb2rgb case for a more
precise result.
Change-Id: I51f1b597c2aa3edcb66bc359df709b9b61a97b52
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>