Use irq trigger flags to setup interrupt, support interrupt level
low and falling edge.
Signed-off-by: Jason Zhang <jason.zhang@rock-chips.com>
Change-Id: I463eda0e7c405a7f0bfb170ed50a889ee1fe2ed4
It's used for the other processor to signal ARM via mailbox, that's
means the other processor is EOL.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I38ee434ec8ee1bb0841fd0c178f24192f6d74bdf
1. pre-map all 4G range to a reserve page with "IOMMU_PRIV"
2. iommu_unmap will remap to the reserve page
Change-Id: Id019dfc720b00abac1572245fd523fed4e40361d
Signed-off-by: Simon Xue <xxm@rock-chips.com>
1. Add support for devices with devfreq feature.
2. If use dev_pm_opp_set_rate(), it will fail to set clk rate
when only one opp in the latest kernel.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I935cca49caec1a0658c6aec8d64e04ea65260ce9
The default read margin is 4, it may not match the initial voltage.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I24c2ee3141f2259c83f2a5219c579115dff4d260
The default read margin is 4, it may not match the initial voltage.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I9be7a75a34b3b460c3253be9a2a1860c0778fa08
1.Check the data in second page
2.Fix V7-T:
undefined reference to `__stack_chk_guard' .. undefined reference to `__stack_chk_fail'
Change-Id: Ie494a6c0898fdc58601c4db925afbc5ba1a7e09e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
timeout
Dwc2 controller will call phy init function during probe, Current code
will schedule otg_sm_work immediately after phy init, if we don't plug
in usb cable at this time, phy will power off soon after, this will
cause dwc2 do core soft reset failed.
To resolve this problem, We use typec_vbus_det property to distinguish
whether otg_sm_work needs to be executed immediately, If not needed,
delay 1 second.
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: I191c8f2b83673e8712afea1d642224ae1ae2eb97
PD_ESMART will be closed at esmart layers attathed to VPs config done + FS,
but different VP FS time is different, this maybe lead to PD_ESMART closed
at wrong time and display error, so we don't dynamic turn on/off PD_ESMART
when have more than one display.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2c5ada04992dd52ad72951198e327de540ba1974
Enable rockchip iep module by default.
Tested on RK3399 EVB IND board as below.
root@linaro-alip:~# dmesg |grep IEP
[ 3.258719] iep: IEP Power ON
[ 3.258758] iep: IEP Power OFF
[ 3.258780] iep: IEP Driver loaded successfully
...
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I80452a89a05e210a4dba0261c302517544b40c31
config isp procfs note to set debug mode:
BIT(0) for show isp reg
BIT(1) for dump bay3d iir/cur/ds buf once
BIT(8) for skip aiq params update
BIT(9) for skip hw params update, only for same w & h & bayer
example:
1.show isp reg info
echo mode=0x1 > /proc/rkisp0-vir0
cat /proc/rkisp0-vir0
2.dump bay3d iir/cur/ds buf to /tmp
echo mode=0x2 > /proc/rkisp0-vir0
3.skip aiq params update
echo mode=0x100 > /proc/rkisp0-vir0
echo 0x2200=0 0x538=0x800080 > /proc/rkisp0-vir0
4.skip hw params update
echo mode=0x200 > /proc/rkisp0-vir0
5.close debug mode
echo mode=0 > /proc/rkisp0-vir0
case 3 or 4 also can will with 1 and 2, such as mode=0x103
Change-Id: I64b41a1685453e12481c4ad9d22de8caf56eb2bf
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This patch enabled CONFIG_SQUASHFS_XZ that includes support for reading
Squashfs file systems compressed with XZ compression. XZ gives better
compression than the default zlib compression, that enable it on linux
platform by default.
The snap can't work issue that found on some popular latest llnux OS,
as below error log with snap.
$snap install hello-world
Filesystem uses "xz" compression. This is not supported
error: system does not fully support snapd: cannot mount squashfs image
using "squashfs": mount: /tmp/sanity-mountpoint-583983220: wrong fs type,
bad option, bad superblock on /dev/loop0, missing codepage or helper
program, or other error.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I54426d8e30ab4d4f9ca2f9477d780d797e56bfce
In this case playback_path set to ON, and then play music.
when playback close, stream mute power off the dac,
but the playback_path do not be set to OFF, so we must
power on the dac again.
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I7baa8518ccbb567cb146c5739f9a125da320e674
This patch try to reset DTOP_DIGEN_CLKE during hook power up
after finish configure digital registers, avoid to the incorrect
work status.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iaa7eb3ebf41d0a55ddf8005bcaeccae2c60656eb
[Fix and using new sound APIs (snd_soc_kcontrol_component()/snd_soc_component_get_drvdata())]
Change-Id: I52487370ce33b057d9cf774b7c0cef06f2c98bca
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
[Fix and using new sound APIs (snd_soc_kcontrol_component()/snd_soc_component_get_drvdata())]
Change-Id: I6bc36626a8952ef28789dfacf57c2b27580a3467
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Put off irq request in case the interrupt may occur and the irq handler
is not get ready yet at the probe time.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I269d98ddbd8368c24b783b0e53703f19366301c0
The client can invoke rockchip_mbox_read_msg() to read the last message
in the related mailbox channel.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ia9b78bfc04341648f98db4363ca94b66ebe2cee5
Don't break iommu_attach_device.
iommu_attach_device will break if iommu shared by two or more masters
Change-Id: Ifd1c652341e2270bfde57ebe1e0cd00d51d38eec
Signed-off-by: Simon Xue <xxm@rock-chips.com>
The deserializers convert a singleor dual-link GMSL2
serial input to embedded DisplayPort (eDP), enabling
display of high-resolution RGB888 video.
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ief4d5a8ca9ed42c5954c8fc1403da58bebee4730
The MAX96776/MAX96778 deserializers convert singleor
dual-link GMSL™ serial input to embedded DisplayPort
(eDP) v1.4a. 600MHz PCLK capability and decompression
of VESA 3:1 DSC v1.1 enable transport of 4K (UHD),
24-bit, 60fps video over a single coax or twisted pair
link. The MAX96776/MAX96778 also send and receive
sidechannel and peripheral control data to enable
full-duplex single-wire transmission of video and
bidirectional data.
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I3c07fc1053ae6080cb1cca1bfb9bca5fb38bb563
T3-p1 with 650mV output voltage is the best signal via the test.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I5c2bd3ab0c235f3079925a03a59c419ad37da485
This series in order to have the default MMC alias.
The mmc default alias:
mmc0 = &sdhci;
mmc1 = &sdmmc;
mmc2 = &sdio0;
The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I27b5645200a645bee6c3dc2f4e95cdb23ba19ab8