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>
This change adds usb otg/host controllers and related phy nodes
on rk3308 SoC.
Change-Id: I5fd3acc44614cc3fcb58eb269c2e559ea24ab0f1
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
IP vendor suggest that enable pop sound when enable hpout,
and disable it after disable hpout.
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I01f03de8c4859faa4d8966440e8d2dcfa53c8da4
The AGC may bring non-linear ADC processing, that makes it
difficult for back-end audio algorithms to use NLP, so we
usually turn them off.
In addition, it seems too many controls and easy to confuse,
let's remove them.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: If17387b0db055942acf1d7e9a5b8b6b9057f1c78
And clean up the brackets of macro variables.
The DAC_DIG_CON04 is conflict with RK3308BS and RK3308/RK3308B,
let's fix it.
Using large driver strength for HPOUT and LINEOUT for RK3308BS Codec.
keep DAC mclk enabled for RK3308BS codec version.
Since the new process version optimizes the design of the clock,
part, we need to enable DAC mclk during codec detect headphone.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I0617049c9ed494ba17c1d548413e49355c9bf01f
rk3308_platform_probe() should call device_unregister() in error path.
Otherwise, the memory of dev will free without unregister. Kernel will
panic when reboot.
kobject: '(null)' (ffffffc01e94a830): is not initialized,
yet kobject_get() is being called.
[<ffffff80081e8f6c>] kobject_get+0x30/0x80
[<ffffff800829c110>] get_device+0x14/0x24
[<ffffff800829e044>] device_shutdown+0x84/0x1a8
[<ffffff80080b265c>] kernel_restart_prepare+0x34/0x3c
[<ffffff80080b274c>] kernel_restart+0x14/0x5c
[<ffffff80080b2a9c>] SyS_reboot+0x1a0/0x1bc
[<ffffff8008082f30>] el0_svc_naked+0x24/0x28
Change-Id: I8eb838deb3b540792f63124365bf821f7ee15649
Signed-off-by: Tao Huang <huangtao@rock-chips.com>