In android 9,10,11,12,13, we have already support 16k wbs in
hardware level code. So, enable 16k support in kernel dts default.
Info:
In future, to support BTSCO 16k, it only need to change the
default setting of bluedroid's "DISABLE_WBS" setting.
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
Change-Id: Ide2435eb0fb9e8e0ffb705d8ba4b43af95dd37ff
In android 9,10,11,12,13, we have already support 16k wbs in
hardware level code. So, enable 16k support in kernel dts default.
Info:
In future, to support BTSCO 16k, it only need to change the
default setting of bluedroid's "DISABLE_WBS" setting.
Change-Id: I382bfdb47a6e13c54c53e8e666aecbad6e135f41
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
Switch to the RGA multicore device driver currently being maintained and
used.
Change-Id: I778772f29f63e02a6569b3ec7c0b96ecd3dc4f64
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
The SR register of the old version IP SPI slave tx transmission
process will remain in a busy state, so it needs to be processed
by determining the tx empty status bits filed.
Change-Id: If71ed842e2b7aed3cfe22d7bc401ea2d0bb1409b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Add transfer completion wait to improve software compatibility,
1.Support to adjust he timeount value if needed
2.Return the fail result when spi slave abort
Choose to discard the rx fifo data after slave abort instead of
attempting to modify xfer->len to change the framework layer
mechanism.
Change-Id: I6bb1ba0ba12ad7486117aff5e948616c8e768418
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
The default is DMA and IRQ transmission mode. You can change the
transmission mode to only support cpu polling transmission by adding
"rockchip,poll-only" to the device-tree node.
Change-Id: Icee3f4e899533ee51caab68fb85ec45f64b89d91
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
VOP in RK3308 supports global alpha and pixel alpha.
Only one alpha mode can be enabled at the same time.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia749deeb82a31b7e5298ca14586bbfb75606469f
If not assigned, the clock parent of DCLK_VOP2 will be
PLL_HPLL in uboot, which affects HDMI display.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ife948de756281ed197413301ce1b05ddb80fe3d9
we don't directly add all evb board to enable bt-sco cards
because it may take some i2s/pcm, which may use dma,
but dmas may limit.
so we just prepare this settings, then if any one who want to
support bt-sco, he/she can just add dts in board-level dts.
now, we just enable rk3568-evb1 and rk3566-evb1 just for example.
Diff in "rk3568-evb1-ddr4-v10.dts" is like this:
+&bt_sco {
+ status = "okay";
+};
+
+&bt_sound {
+ status = "okay";
+};
+
+&i2s3_2ch {
+ status = "okay";
+};
The default pcm/i2s setting is:
Format: PCM, dsp_a, MSB first, short sync, rising edge and delay 1 bclk.
rockchip soc: master; Bt controller: slave
Change-Id: I6668bfbb87e4b0ea71a661bbcf8248cbde77974e
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
If it is not controlled, when the path is configured after
resume, the clock will be continuously turn on to increase
the clock count.
Therefore, we can count and control the switch of clock
separately according to the current status of playback and
capture, so as to avoid that mclk is accidentally turned off
when playback and capture exist at the same time, causing
the other stream to fail to work.
For example:
- before:
mclk_sai0 2 2 0 11289600 0 0 50000
mclk_sai0_out2io 1 1 0 11289600 0 0 50000
mclk_sai0_to_io 16 16 0 11289600 0 0 50000
- after:
mclk_sai0 2 2 0 11289600 0 0 50000
mclk_sai0_out2io 1 1 0 11289600 0 0 50000
mclk_sai0_to_io 2 2 0 11289600 0 0 50000
Change-Id: I78ec18c7ffc42f548e82357bcf20701aa057f15d
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
We can configure automatically playback/capture path via
the controlling of 'Resume Path'.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ie00e7a673bff068aa922e322d833106f4cbacfde
Note: This patch is BACKPORT from kernel-5.10, the 4.19 is
not supported pm_runtime_resume_and_get() which is starting
from 5.10, replace it with pm_runtime_get_sync() and
pm_runtime_put_noidle().
Change-Id: Iafce14494982a3827f0a43409cfffe53307b7193
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
In order to avoid power leak for affacting SD cards, add idle state
to all related boards for RV1126 and change default state to normal
state for the driver to totally control it.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: If00ed994eb2a467bd5ef16fd52f51b490bea4b27
In RK3528, COUNT_NUM (total) needs *2 because it is in DFI clock cycle.
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I72fb4e06d992772c69aac76b79a0532c5f7ffff7