vop full need to do rb swap when deal with rgb888/bgr888;
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I60fac72b21720fcf4f406c56fe7d9dc21ebf7635
some rockchip Soc platform just like rk3368, only have one crtc and
multi connector, we must consider the following pattern:
1. only connect lcd panel
-> show logo at lcd panel
2. connect lcd panel and hdmi, and the resolution is different
-> show uboot logo at mipi panel
-> show kernel logo at mipi panel
-> show android logo at hdmi panel
3. connect lcd panel and hdmi, and the solution is same.
-> show logo at lcd panel and hdmi panel at the same time,the path is:
crtc -> hdmi->hdmi panel
|-> mipi/edp/... -> lcd panel
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7fb8452ddd128ba70ba18f288500e71c1f03ca8b
Error when CONFIG_ROCKCHIP_RESOURCE_IMAGE is disabled
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I3e6dd7c5528409c37ad8fbdcf1cc7f5178253bb2
some pcb layout dual mipi/lvds channel maybe mistake. we can set
rockchip,dual-channel-swap = <1> to swap the dual channel at dts
file.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7398b83bff0fd0dedd77834ee2a8ff14f2ae11ea
Some bridge can't get tv edid such as rk1000 cvbs, but
at present bridge can't provide timing without edid. So
we add get_timing interface to provide timing.
Change-Id: Id74802a3bff8140e3677f6633788aacd021afc91
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Convert these two print info into debug info:
start get public phy
inno hdmi phy init success, save it
Change-Id: I1c5ad3d313b9ef1820e3445c0de3feda68857664
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
the bmp file has been processed when reserved equals BMP_PROCESSED_FLAG
Change-Id: I793582cdd4ee5ee2a774c7a0dee8d36c81ed4f4c
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
Silence debug messages if the panel/phy does not exist.
Change-Id: Ifa027017e9aa9af54992e26f2bbde7048b22bb04
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
The current implementation assumes that the only possible peripheral
device is a panel. Using an output bridge device should also be possible.
Such sequence is required by Rockchip RK618 bridge, which is a RGB
peripheral bridge device.
Change-Id: I3e4e5e9e23c8ed7c74ed1276946b7b54f4cd5ee8
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.
This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.h
and replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h>
#include <libfdt_env.h> -> #include <linux/libfdt_env.h>
Change-Id: I6c0f7e50e8b571106627f25ddac008a62bd2994e
Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The 'mcu-timing' may not in dts, and the following access will
cause assert of invalid of_node.
Change-Id: I98cfed0de471b8985642e7ffc14ab2e97ef6f575
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Remark: 3996562 (Add: Allow logo in 16bit or 32bit color BMP)
Change-Id: Ie5b1ed4af1c09ad0af3101b882278ecf3b8c6b35
Signed-off-by: Gaoyang Ye <gaoyang.ye@rock-chips.com>
we found the name value from the following function will
be null at rockchip_display_fixup(), so we instore this
value at display_state local parameter.
ofnode_read_string_index(node, "logo,kernel", 0, &name))
Change-Id: I18c6b2a699cf8063d4b9e43b7627c388746dcff0
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
The connector node may not be a child of root node, make it more generic.
Change-Id: I1a8a2176710579417f53953e6c1a813bf715f7a1
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Support tve in rk322x and rk322xh.
Tested in rk3328, rk3229, rk3128h.
Change-Id: I96a5034bced08e89bc9767ce7479ad4cf00ee4a5
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
hdmi without panel, so we must confirm panel->func
and panel_data->panel isn't NULL.
Change-Id: I87abec5d04e26bdab4cb643f7ed5757f3e31c918
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
the mcu screen need send init command through crtc, so we add
the function display_send_mcu_cmd() from panel to crtc.
Change-Id: Ide4a6043dff0a7b0040bf62b1aa1814f3c365235
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Kernel rkfb driver need a separate function to load the kernel bmp,
which is different with kernel using drm driver.
Change-Id: I01662bf88e47e685f2a4ee1c4306f1f7e69bed3b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Some rockchip SDK like rk3399 Android 6.0 is still using rkfb in
kernel as display framework, in this case we need to:
- use a separate dtb in U-Boot which is drm display node;
- disable CONFIG_USING_KERNEL_DTB in U-Boot
- pass the reserve memory for kernel rkfb in U-Boot
Change-Id: I80df05d3cf15dce203c4397544b65f80fde1d22a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
some platform like rk3288,rk3368 and px30, the rgb/lvds dclk
polarity need to config grf config, other platform can config
vop register to set dclk invert.
Change-Id: Ica3b7b388d7650628c08007b327753caeeba3b0e
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This merges the rockchip panel driver into the common driver.
This will make it easier to share code between the drivers and
eventually merge them into one driver.
Change-Id: I4c59e5f4f39ffc43b4d0339de8dfa23aec28220b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
check detail timing for the some resolution but different fps
Change-Id: I103060aff3a64e9e285b5a5f87e71528cd053728
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
(Cherry pick from commit 335b9e52fbf97edb43c75bb1bc21dd10db5616bc)
add vop post scale for some TV overscan
Change-Id: I1f310d9d65a8a0ea2a0d3100954ef4ff0a587f4d
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
(Cherry pick from commit 68d08545b912610f63a3cdb0e1e13ca44b1abc1f)