def_mode picture_aspect_ratio is no HDMI_PICTURE_ASPECT_NONE,
but Android set mode, the picture_aspect_ratio is HDMI_PICTURE_ASPECT_NONE,
When comparing the new mode with the old mode, the two are inconsistent,
so the mode will be changed.
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: Ide07f9f7251a4ad22d4c27136005be77f1dfd4e2
Actually from test, it seems the expected DATA timeout is broken
for some CMD transfers which is wired, so we have to add
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL for sdhci core to always set max
timeout value
Change-Id: Ib41ca137f700f939a13c9f9d0fc30cb8590f1183
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Set SSC downward spread spectrum for PCIe and set proper
RMJ for inner 100M and external 100M refclk.
Change-Id: Ic7d9d1651f7687858e6c5e399bc98ee03b5ee964
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This is back from android mainline with conflict fix from
(f2bcdb43a7 ANDROID: staging: ion: Skip sync if not mapped)
Only sync the sg-list of an Ion dma-buf attachment when the attachment
is actually mapped on the device.
dma-bufs may be synced at any time. It can be reached from user space
via DMA_BUF_IOCTL_SYNC, so there are no guarantees from callers on when
syncs may be attempted, and dma_buf_end_cpu_access() and
dma_buf_begin_cpu_access() may not be paired.
Since the sg_list's dma_address isn't set up until the buffer is used
on the device, and dma_map_sg() is called on it, the dma_address will be
NULL if sync is attempted on the dma-buf before it's mapped on a device.
Change-Id: I11f7c13cfc7fa9672df803457c1708e60bf51ae7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Gate bus clock will make DLL module lost tuning value.
Change-Id: I3af2d7c6601acbdeb4eb732e597d7d5725e0354b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Fixes: 008340a82 ("drivers: rkflash: Change to use the api which the oob area available")
Change-Id: I140aa76a2acb73271ba04b7060030dc06a2353e6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Clear UDMA interrupt first before starting a new transfer. Otherwise,
the new interrupt corresponding to new transfer may be cleared
when clear the last interrupt which finally cause transfer timeout.
Change-Id: I4d232e41cdfaa68178cdd99942aefa717032c1b9
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This is needed by rk3566-rk817-tablet-rkg11 with mic array
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I6c1083b402273bfa1492c9a2f851a76a5c71ab7d
ydsoc error can lead to charge or discharge become slow.
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: Ie17f0064eda3723378f49caef08bca212c322d70
This patch adds a new function rockchip_combphy_parse_dt()
to parse devicetree for combphy, and get reset properties
for later reset control.
Change-Id: I41821ec9c99a866b04c4514f0fbca55d118b7175
Signed-off-by: William Wu <william.wu@rock-chips.com>
ES7210 is a 4-ch ADC with I2S interface for Microphone Array
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I71faf344eb8b058349a7a889eae296115cc788c8
sound/soc/codecs/cx2072x.c:778:3: warning: comparison of distinct pointer types ('typeof ((frac_num)) *' (aka 'unsigned long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Wcompare-distinct-pointer-types]
do_div(frac_num, 7);
^~~~~~~~~~~~~~~~~~~
sound/soc/codecs/cx2072x.c:1001:9: warning: comparison of distinct pointer types ('typeof ((div)) *' (aka 'unsigned long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Wcompare-distinct-pointer-types]
mod = do_div(div, bclk_rate);
^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iab3ff22c4bea8144fd566b6fe64da6c1aef24455
sound/soc/codecs/es8323.c:139:27: warning: variable 'es8323_pga_sel' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static const char * const es8323_pga_sel[] = {
^
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id17a0005cc933317e906107a51b22696020c0a51
This patch creates an usb2 phy attribute group and
provides an attribute "otg_mode" for otg port to
force otg mode independently of the voltage of otg
id pin.
In order to implement the force mode function, we can
select otg plug indicator output (AKA iddig) from GRF,
and set GRF USB otg plug indicator to "0" or "1" to
control iddig status.
Attention, we set iddig to "0" by disable idpullup rather
than set GRF, the otg_suspendm will be set to 1 to enable
the disconnect detection module, and the LS_PAR_EN will be
set to 1 to enable low speed device enumerate.
Usage:
[1] Force host mode
echo host > /sys/devices/platform/<u2phy dev name>/otg_mode
[2] Force peripheral mode
echo peripheral > /sys/devices/platform/<u2phy dev name>/otg_mode
[3] Force otg mode
echo otg > /sys/devices/platform/<u2phy dev name>/otg_mode
For RV1109 and RV1126 EVB, the <u2phy dev name> is ff4c0000.usb2-phy.
Change-Id: Icba5e4a3d2aae6cd1df5435d64fd0caea4348ec2
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
NVR demo board use DCLK_VOP1 drive VGA monitor, which should
as accuracy as possible.
Change-Id: Ie19174cf2b0c951216c8f5e1850758a9df66be0b
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
In order to make loopback slave into LPBK.Active state,
we add "rockchip,lpbk-master" for DTU to force it as a
remote loopback master device. Nothing needed for slave.
Change-Id: Id851ad8e34e29939f12f76cb132d942bc059a811
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This is workaround solution for IC design:
esmart can't support scale down when actual_w % 16 == 1.
Change-Id: I0fa090c5e28b79e644ef31ea1184b724b9d32ffa
Signed-off-by: Sandy Huang <hjc@rock-chips.com>