Also move set clk_sel from vpu_service_power_on to vcodec_subdev_probe.
It only need set one time.
Fixes: 1cace329a8 ("video: rockchip: vpu: use device tree to find out target SoC")
Change-Id: I41aed6296188ed2fb5eb26a2430b19dcc2916b22
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
If sink does't support YCBCR420 deep color, we return default
8bit.
In YCBCR420 mode, tmdsclock is half of RGB444 mode.
Change-Id: Ie3a1f8ca4bbe4b3bae5d7c9ea823fc798721a73a
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
To support YCBCR420 10bit, we need to enable mpll output divider.
It is also compatible with YCBCR420 8bit mode.
Change-Id: I6028cfb045efd05c2cb2b9920e32901ea5aa95dc
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
According to HDMI 1.4b specification: If the transmitted video
format has timing such that the phase of the first pixel of
every Video Data Period corresponds to pixel packing phase 0
(e.g. 10P0, 12P0, 16P0), the Source may set the Default_Phase
bit in the GCP. The Sink may use this bit to optimize its filtering
or handling of the PP field.
This means that for 10-bit mode the Htotal must be dividable by 4;
for 12-bit mode, the Htotal must be divisible by 2.
Change-Id: I02e632d095141cbabcba06dc1321ae0dc69dc736
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
After supportting atomic update flush for connector, output color
may be changed in the atomic update flush. It is need to separate
vop color configuration into a new function vop_update_csc, and
update output color both in atomic flush and vop_crtc_enable.
Change-Id: Ie530aaba846ddac0c68f114e081a12968b783476
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Introduce dw_hdmi_connector_atomic_flush to implement connector
atomic_flush.
Only when enc_in_encoding/enc_out_encoding/enc_in_bus_format/
enc_out_bus_format changed, dw_hdmi_setup is called.
Introduce previous_pixelclock/previous_tmdsclock/mtmdsclock to
determine whether PHY needs initialization. If phy is power off,
or mpixelclock/mtmdsclock is different to previous value, phy is
neet to be reinitialized.
Change-Id: I1984fb188ba486de18f6d51b7a51320bbf2bc27d
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Support to reserve memory region for ion device.
Change-Id: Ib951abd2f24560a204de94f3d51b79c7c1ad75da
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Add deinit gpiod for camera sensor when probe failed.
The video_device->ctrl_handler = NULL in soc_camera, in order to
VIDIOC_CTRL call v4l2_ioctl_ops.
Change-Id: Idf2d8bf2c8d56ec921084dcd74220ed3c5541427
Signed-off-by: Peng Zhou <benjo.zhou@rock-chips.com>
As the cpu frequency is less than 816MHz, the HDMI display maybe
probably cause a flower screen as below log[0]. And Kylin used the rk3036g
series SoCs that the max cpu frequency supported the 1GHz, not 1.2GHz.
In a word, keep the cpu frequency to 1GHz for kylin board.
log[0]:
[26.498843] rk_iommu 10118300.iommu: Enable stall request timed out,
status: 0x000011
[26.528809] rk_iommu 10118300.iommu: Disable paging request timed out,
status: 0x000011
[26.598849] rk_iommu 10118300.iommu: Enable stall request timed out,
status: 0x000011
[26.607579] rockchip-vop 10118000.vop: Failed to attach iommu device
[26.614916] rockchip-vop 10118000.vop: failed to attach dma mapping, -110
..
Change-Id: I8e1d4527b649d8857a9d80a121c10935a4cd1030
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
As the ap6212 used on kylin board, the kylin always got the error log
when we connected the AP. Says:
..
[ 70.169440] CFG80211-ERROR) wl_cfg80211_get_station :
wl_cfg80211_get_station: if_counters not supported ret=-23
[ 70.184371] CFG80211-ERROR) wl_cfg80211_get_station :
wl_cfg80211_get_station: if_counters not supported ret=-23
..
And the normal status, the ap6212 wifi always print the ssid and channel
message for output. Says:
..
[ 125.172243] wl_run_escan: LEGACY_SCAN sync ID: 4, bssidx: 0
[ 178.181897] wl_run_escan: LEGACY_SCAN sync ID: 5, bssidx: 0
[ 241.192452] wl_run_escan: LEGACY_SCAN sync ID: 6, bssidx: 0
..
The AP6212 don't need these logs for default status.
Change-Id: I43455bcc277e380daf15ee91a1436cdc81a95039
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Some platform doesn't support that, disable this feature at
the probing time.
Change-Id: I80618ea52a6796f932ce5748288c4fa61bef51ea
Signed-off-by: Randy Li <randy.li@rock-chips.com>
When printk to pstore console, we ignore log level. So
/sys/fs/pstore/console-ramoops-0 should keep full kernel log.
Change-Id: I87ea3418741c117523a9e872ae7ace4dac0cd9d3
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
update rtl8723cs wifi driver to version v5.2.1.7_25082.20171108_COEX20170626-1a00
Change-Id: Ibe11dcb9b3592dfd7f554c20814b3233da87ff24
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
update rtl8723ds wifi driver to version v5.2.15.1_25011.20171107_COEX20171025-2020
Change-Id: Ifbf94c2ebc7c7d8e529910d77f6094d0ae4f7907
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
Move cif from rk3368-android.dtsi to rk3368-px5-evb-android.dts.
Redefine pinctrl for isp in rk3368-px5-evb-android.dts.
Change-Id: Ie8cd56cef507482b7d5e974a02f79279f0984aed
Signed-off-by: Peng Zhou <benjo.zhou@rock-chips.com>
rate is not correct in interrupt mode, so just return and we
always use poll mode
Change-Id: I494600852907a8fff6599305195f5b4ccdb0bf7c
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
snd_timer_notify1() is called outside the spinlock and it retakes the
lock after the unlock. This is rather racy, and it's safer to move
snd_timer_notify() call inside the main spinlock.
The patch also contains a slight refactoring / cleanup of the code.
Now all start/stop/continue/pause look more symmetric and a bit better
readable.
Bug: 37240993
Change-Id: Ib90099f88c8b04928a8cdd2808cd9e16da6d519c
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Siqi Lin <siqilin@google.com>