1.Read ECC status according to each flash's identify Internal ECC;
2.Refresh data before reach ECC Flipping Bits.
Change-Id: Ie33850e151410cd788ff0220041d041a3d5b4f07
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
The lz4 Legacy format(which specified by -l) is
not supported by U-Boot.
Change-Id: I6b94881117b59384daca4efd796c933e8dc9e5a6
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
If external device sends data continuously, then uart is
always busy, and baud rate can't be set. It is useful
to reset uart and set loop back mode to make sure it is
idle.
Change-Id: I87286711870ff685ea29e36e61c97d45be5a6d08
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This patch refine dma slave config only when interlace size is valid.
Change-Id: If02cec29083d5f582ccd0efcd78e7a6547d2df66
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
The bigger the divider, the better the clock jitter.
Change-Id: I4b4e06c71c2f0bdb0e32422fb42c8d490c3ec4bd
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Inside rk3128, the codec connects to i2s_8ch which is different
from the rk3126. This changes the i2s_clk to SCLK_I2S0, the mclk
of i2s_8ch, for rk3128.
Change-Id: I204e46dc2cf2c05bc85ef233b3139af94445ac90
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
The div offset of some clocks are different from their mux offset
and the COMPOSITE clock-type require that div and mux offset are
the same, so add a new COMPOSITE_DIV_OFFSET clock-type to handle that.
Change-Id: I7d541e29328f37d2ad806b3b6e5ab35b5513b345
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
The initial voltage may be too low for 816MHz and it is enough for
600MHz. And as the alternate pll clock of armclk is created when
pmucru driver initialize, so move ARMCLK to pmucru node.
Change-Id: I1f443d55c74e5212a19e42e08b54ec946b4692d6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
As the vop will turn off the all planes when the system wakeup, that can
avoid the splash screen issues.
But the normal display will be show util the
application is refreshed. That's clearly not sensible.
For now, we can stop dma for turning off vop data.
Change-Id: Ieff151bee7813b978bc3cb65f0457e37dc20bf2c
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
This mainly enables rk312x codec and inno mipi dphy.
Note that the ES8396 is used by px3se-evb board, and
SWITCH is required by rk312x codec.
Change-Id: Ie2a0715ba04a073875423329654fe3a77d46965d
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
SOC_ENUM_SINGLE_DECL already defined with const, removing
the duplicate const in rk312x_codec.c
Change-Id: I085b1faf99a9ccd3b06e4e642abc1bc43cc8bac7
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
We support page flip through the drm atomic helper function.
But if we don't enable it the userspace won't know this
driver has such a capability.
Change-Id: If3689a526ea95235d191c0bbeba89745ae70d9c7
Signed-off-by: Randy Li <randy.li@rock-chips.com>
Add full nand disk device for gpt and recovery.
Device path is /dev/block/rknand0 or /dev/rknand0.
Change-Id: If6f52e4fd2b32c55ef4795692c40b6a18d066cb0
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
set uboot and kernel logo center display for linux product.
Change-Id: I481432b2719598b5d776eb39c4809c05dfb646b0
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
From the datasheet, the built-in codec interrupt number
should be 64 = 96 - 32.
Change-Id: I8078949fe57ce3c87867a8f2853efba8fce0a634
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
The function of ddr standby influence memory stability,
so disable it for the present.
Change-Id: I9df7381944687da8819665009b162c387eb06ceb
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Because USB OTG id irq is disabled during system suspend
and enabled after resume, so the usb2 phy doesn't notice
any id status change upon resume. It may cause two issues:
1. Plug in OTG cable and USB device when system enter
suspend, it will fail to detect the OTG cable and
USB device after resume.
2. Plug out OTG cable and USB device when system enter
suspend, and then connect USB to PC or USB charger
after resume, it will fail to detect USB charge type.
This patch restores the OTG id status before enter suspend,
and check the id status upon resume, and set the extcon
state and vbus if id status has changed.
Change-Id: Iaca14841cc287e7d82e1cffd64ff18bba86d3ba4
Signed-off-by: William Wu <william.wu@rock-chips.com>
Add missing power on to pair with the power off in suspend.
Change-Id: I676b57dd8ba9aff108a3b57c4350d272d54ca996
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
We're using devm_regulator_get, no need to put it manually.
Change-Id: Ida960d938d7557d0174c53e952d80161650ccf1a
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>