RV1126 set 3.3V before regulator disable.
Do a fix to rockchip io-domain, follow this orders:
* system running state
-> io-domain vsel to 3.3V (actually is done by event-disable)
-> regulator_enable
-> vsel change according to regulator voltage
* system running state
-> regulator_disable
-> io-domain vsel to 3.3V
The bug only instance on RV1126, and tested on RV1126 EVB DDR3 V10.
Change-Id: Ic9d6b05d07b050c392e415786cf6390cc1c5aa9e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This adds the necessary data for handling io voltage domains on the rk3308.
As interesting tidbit, the rk3308 contains one iodomain area at grf,
Change-Id: Ife72a284a8926d02ef5df7a422d41924494d0300
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
A clock driver for a arm SoC should depend on ARM, but for a arm64 SoC,
the driver should not depend on ARM64 since SoC could used as 32bit,
such as the RK3308 aarch32 platform.
Fixes: 5f3de16bb2 ("clk: rockchip: depends on CPU config")
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I9bc2c22b8c20dc6aedecbc288f551de1c0f02216
128+64KB at the beginning of RAM reserved for ATF.
128KB for pstore.
Change-Id: I1306daec44c65258ff6668f6760be4981d7ca932
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
256KB alignment is not work for (textofs & 0xf0000) > 0x40000.
Change to 1MB.
Change-Id: I9803b22d7d64a244842dcc811e47e214d247fc0c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Sync driver with v4.4 and v4.19, support rk3308bs/px30s/rk3326s whose io
type is new called as smic type.
The smic type io configure drive strength with 3 bit, the highest bit is
from slew rate bit for the origin io type, that also means the smic io
not support slew rate setting.
The drive strength setting difference:
regval RK3308B RK3308BS
0 2mA 0mA
1 4mA 2mA
2 8mA 4mA
3 12mA 6mA
4 6mA
5 8mA
6 10mA
7 12mA
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ibcbdc06eefa819dae114a4b9adc32cdff42d32f2
This patch makes the dma-heap device support to get physical address by
DMA_HEAP_IOCTL_GET_PHYS. The sub heaps can add a support to this ops.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I1daf65f742ce48db5548aa3fb860bb3fb4e2291d
Add partital sync support for begain/end of cpu access.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I36cc7d2fffd1e22d796d429c76a990542acb8dd2
When the dmabuf attachment list is empty, do force sync with the heap
device, it is useful for partial access for cpu.
Fixes: 21f2fd663e ("dma-buf: system_heap: support cpu access partial dma-buf")
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ie266767aeb03a361e1541ba9e84f3dd027350a75
Add the function of reading efuse txlevel, if it cannot be read,
use the default value.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I1d92f139312e0ea67f96017cac2370fe00a7de31
Add the function of reading efuse bgs, if it cannot be read,
use the default value.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I6895766d342407a0a0b6011f0ea121770008e291
The internal context is automatically canceled after calling commit
by default.
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I40f14fa0bddb95475a5cc76911a30df2ea1e122c
For some rockchip SOCs, Power Domain protection is supported
in AMP system.
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I1e0cbde37df44dba466fc580b7f67d0053d09e3d
Parse and enable irq wakeup if the "wakeup-source" property was present.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I21b974d65dc02c1f3bd5f0e52a1372367b77a6e4
Mailbox irq can be used as a wakeup source when the "wakeup-source"
property was present.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I11df0a1ced263214a8204c4944343e21d5935454
As the opp voltage may be changed if enable pvtm, it's better to use
rockchip,high-temp-max-freq.
Change-Id: If480a6ffa23efa9213b3b809f3cde320ce2a5ddd
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change the maximum frequency of cpu to 1104MHz.
Change-Id: I4dddd81907dc3bb7dd55c0a8eda41b16990ca203
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Add support for rk3308bs v11 board whose maximum voltage is 1336000uV.
Change-Id: I14474838d4341c8f146a503486c7005f386c1475
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>