Fix the following warning(s):
drivers/soc/rockchip/rockchip-system-status.c:24:5: warning: no previous prototype for rockchip_register_system_status_notifier [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:31:5: warning: no previous prototype for rockchip_unregister_system_status_notifier [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:46:6: warning: no previous prototype for rockchip_set_system_status [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:70:6: warning: no previous prototype for rockchip_clear_system_status [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:98:15: warning: no previous prototype for rockchip_get_system_status [-Wmissing-prototypes]
Change-Id: Ic3fb19a4a23f8f6c6833a7ebc573617c372d51bd
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
We need unreigster device when we remove platform or
probe failed.
Change-Id: Ic43a9fcc540b404cee119c17c543d509b121e126
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Usually, the MCLK should be 256 times that of LRCLK,
the excessive mclk (@FS 16KHz and mclk 12.288MHz) may
cause frequency aliasing.
Change-Id: I2665c44dfcdfb51cc4708427782eb68b897c52c4
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
drivers/gpu/drm/rockchip/inno_hdmi.c:767:5: warning: no previous
prototype for ‘inno_hdmi_audio_config_set’ [-Wmissing-prototypes]
Change-Id: I08596452ee4c4f63afc644d6808c2bb955f643ea
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Silence the sparse warning
clk/rockchip/clk.c:172:6: warning: symbol 'rockchip_fractional_approximation' was not declared. Should it be static?
Cc: Elaine Zhang <zhangqing@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
(cherry picked from commit 1dfcfa721f)
Change-Id: I545f079ff61c6b65363442484cdedd9e01333160
As a second global reset, the GRF is not reset, the iomux and
pull of PWM pin is still keeping, but PWM controller is reset,
PWM pin goes into input mode. However, the pull is still none
changed in kernel, which can cause voltage problems, so should
always keep the PWM pin pull down mode, with 0~50 μA power
increase.
Change-Id: Ibbb9465f7c550d49d416bc3438c5199434df6eba
Signed-off-by: David Wu <david.wu@rock-chips.com>
Allow to use tunable delay before detecting card after card is inserted,
which either comes from firmware node, or comes from debounce value
passed on to mmc_gpiod_request_cd(). If the platform doesn't support
debounce, then we fall back to use the debounce period as the delay,
otherwise, it behaves the same as before that a HW debounce(if set) plus
a 200ms hardcode delay before detecting the card.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Change-Id: Ib3ed4cbcdeb0986b584d7dc9057461888e554967
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from commit 26288b77fd04ea54a84801b1c92c8da519986040
of https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git)
cd-gpios uses a fixed delay, 200ms, before detecting card after the card
is inserted. 200ms doesn't work for some platforms, so some host drivers
added their own properties for parsing that from DT, for instance,
dw_mmc and pxamci. That being said, it should also be tunable when using
cd-gpios.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Change-Id: I925ff27e7dca1289e3fca610ebfe0d4434ceb3de
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from commit 9bc0607301adeb78884bbdc6e97991f4437fb0fe
of https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git)
Suddenly power loss test for F2FS file system,data will be
lost and the file system count not mount.
bug:
[ 6.372692] F2FS-fs (rknand_userdata): Found nat_bits in checkpoint
[ 6.563942] F2FS-fs (rknand_userdata): Failed to read root inode
[ 6.607687] F2FS-fs (rknand_userdata): Found nat_bits in checkpoint
[ 6.799042] F2FS-fs (rknand_userdata): Failed to read root inode
Change-Id: Ie3256631eba4388cef9edec31aea12bfd45bf4d4
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
Each product needs to create a new driver code, even if
they are using the same TP chip. This creates a lot of
code redundant.
Change-Id: I3d7d9982d98deba0ea4067c9adb76fe2a09ab659
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
The serial Flash controller on the rk3036 would request
two clock nodes.
Change-Id: Iaa50c4a25602a68241b0b9b2f186e4c7e55bc3da
Signed-off-by: Randy Li <randy.li@rock-chips.com>
1. rename callbacks to make them more clearly to be understood;
2. add description for intention;
Change-Id: Ic0e28aa98793495c01f531331e9d5dc816ee0820
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The save dosc accuracy is not enough to cause the display soc
to be reduced by 1 when system reboot.
Change-Id: Iefd29a0ce16b9975be3d90260d1793ba322db303
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
The cpu will block if the CONFIG_RANDOMIZE_BASE\rockchip-dmc\kpti
are enabled, and the kpti will reduced system performance.
Change-Id: Icd054a4a9cbbea20bd8f8c33a6db64c6fd304fd0
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
The Neon bit sliced AES decryption store the key schedule in BS_KEY struct,
it introduces a competitive risk,such as dm-crypt without samecpu option.
So backport from linux stable version 4.14.13.
Change-Id: I8c728669ae626f56b38c24ed391aa3078a60f623
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
If a regulator is supplied by the DCDC_REG5, and the regulator registers
behind the DCDC_REG5, then some devices can not have the regulator_get()
because the regulator has not get its suplly. The case happen in
rdev_init_debugfs() typically.
Change-Id: I02e336ad97e956c53351ca18af6c651126b3149d
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Add "suspended" flag in suspend_noirq()/resume_noirq() callback
to prevent new i2c job started, and use i2c_lock_adapter() to wait
for current i2c transfer finished.
If any i2c client try to access I2C after suspend_noirq() or
before resume_noirq() callback, return the error, and they
should fix it, not to start i2c access at this moment.
Change-Id: Idd1142058d10547d085895a498201c2ade6b9e96
Signed-off-by: David Wu <david.wu@rock-chips.com>
with following modifications :
fix some compile errors when ARCH=arm;
replace "mali_base" with "midgard_base" in Kbuild files;
fix a compile error when MALI_PWRSOFT_765 enabled;
set "default n" for MALI_KUTF and MALI_IRQ_LATENCY.
Change-Id: I858c72aab939002c8e6241cd75fa8877ebbf6c35
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This patch add support for rockchip voice activity detection.
The vad is used to detect the amplitude of voice which is
received by analog mic, i2s digital mic or pdm digital mic
when soc is in low power mode. if the amplitude of voice is
over threshold, the vad will assert interrupt to wake up soc,
then soc will exit low power mode.
Change-Id: Idb7a3adb87ec4c07274eefd82da4672d493c7627
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>