I don't know why rk_vmap_contig_pfn is not work on ARM32 platform.
May need more debug on this issue. Refactor dma_buf_vmap to use vmap
directly just let things go on.
Change-Id: I9aded08ddb75a6fb8745111a897ab5566d82a71d
Signed-off-by: Simon Xue <xxm@rock-chips.com>
On encoder slice output mode the timing of each slice can be recorded.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Iceac5b8488dbfa85068e1460709f278cc2d3ebe4
even multiples of 128 (act w/h) require a scaling factor -1
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I8dc3faeb3863fbf4f285ca8423ac8633fdc36de4
This adds the necessary data for handling otp on the rv1106.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7a608546148faaeaa5a31506e90825f5295c5b97
Fixes: 37d5c1a6fd ("opp: Add a summary tree in debugfs")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I70c97957b48abe2417857f8aff5d4175d418b1e6
Most of the products are not using SPI devices, remove it from
rv1106_defconfig for minimum configuration.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I6cf8c1f0431096d519a48facfb4e154ee75c2365
To solve the problem that the flag bits of other interfaces are
overwritten after mipi is enabled in the co-display case
Signed-off-by: Lei Chen <lei.chen@rock-chips.com>
Change-Id: I9eeea20165cb43da38879456eb10f6253e60bccb
take 1280x720@60Hz which pclk is 74.25Mhz as an example, the dsi
lane rate should set 445500 Kbps/lane(pclk x bpp = lane_rate x lanes)
when mipi work in no video burst pulse/event, therefore the PLL should
output the rate of Kbps/ksps level for normal display.
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I63bf5717e2da521b7af18d88c906b86e30a71488
Also change UCLAMP_BUCKETS_COUNT to 20 copy form ANDROID-GKI.
Using the default setting 5 means the first bucket contains the
uclamp values from 0 to 19 (in percentage), in this case, if the
uclamp.min setting of a group is under 20, it will fall into this
bucket with other groups that have uclamp.min set to 0, which
increase the possibility of over boost. By setting the bucket
count to 20 will ease this situation, while a uclamp.min greater
than 4 will fall into a different bucket.
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I982a81acc303374aaf8defc004d08dd635402771
Also change UCLAMP_BUCKETS_COUNT to 20 copy form ANDROID-GKI.
Using the default setting 5 means the first bucket contains the
uclamp values from 0 to 19 (in percentage), in this case, if the
uclamp.min setting of a group is under 20, it will fall into this
bucket with other groups that have uclamp.min set to 0, which
increase the possibility of over boost. By setting the bucket
count to 20 will ease this situation, while a uclamp.min greater
than 4 will fall into a different bucket.
Change-Id: Ibc6e1cb4358cfd6f9cda784b43d754545b893d7d
Signed-off-by: Liang Chen <cl@rock-chips.com>
Both DP and MIPI get pixelclk from dclk_out as follow:
DP: dclkx_out(DIV)->dpn_pixelclk(MUX)
MIPI:dclkx_out(DIV)->mipi_clk_src(MUX)->mipi_pixelclk(DIV)
When a video port coonect DP, it will calculate dclk rate first,
then dclk out rate, finally dp pixelclk rate. When a video Port
connect to MIPI it will calculate mipi_pixelclk rate first.
The different calculation method may get different dclk rate or
divider ratio. When a video port connect to a DP and MIPI, DP
or MIPI may get the wrong pixel rate. So they need use the same
method to calculate pixelclk.
When A video port connect DP and MIPI, the mipi_pixelclk
is set first, and set the mipi_pixelclk divide value. Then
dp_pixelclk is set, which will modify dclk_out divide value
and cause the mipi_pixelclk change.
So when calculate the mipi_pixelclk, we calculate the dclk_out
first to avoid the mipi_pixelclk be modified when DP set
dp_pixelclk.
For uboot logo display, Depend on commit from u-boot(branch:
next-dev):
(I6037e12d8b6 drm/rockchip: vop2: change dclk calculate method
for mipi)
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I53c3247ce1eb728dad7f480d86b65d3f922ab6d4
Change cpu dynamic-power-coefficient across EAS data.
Change-Id: I06e3d4e8e05d8c42d3d2de74c8369ba51c575e66
Signed-off-by: Liang Chen <cl@rock-chips.com>
dma_fd buffer has been mapped by cryptodev and does not need to
be mapped again.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ic28bebe3b169dfc4cb1fde4457122277f32294bf
CRYPTO V1/V2 do not support multi-threading, so it is necessary
to add a hold mechanism in Cryptodev to prevent abnormal consequences
caused by multi-threading calls.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ifd5ff6b102c81c8ac44c16f9689d5219c7fa5a56
CONFIG_LS_UCS14620 is used to enable light sensor ucs14620
which found on rk3588s tablet rk806 single board.
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: Ib824361aacd7cf44fb2125f151f85b590c793e2b
CONFIG_PS_UCS14620 is used to enable proximitily sensor ucs14620
which found on rk3588s tablet rk806 single board.
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: I94a8dd2a4d86f3f1feb201eeb2dc7b3d56601adc