It should be marked sense_data error when r/w vendor storage failed.
Change-Id: I7e298d4f700ac3ca9648e973258cff521c41ec03
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
There is a phandle miss match between U-Boot and kernel dtb node,
the typical is cru phandle, we fixup it in all U-Boot live dt nodes
which has property "clocks" or "assigned-clocks".
Change-Id: Id5769195ad54a7ba1cc06ed5cfb68ebcddfd3382
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Anyway, we should promise the user can enter download mode by
kernel command: reboot bootloader/loader/fastboot.
Change-Id: I23181a2f672774070f93478a338622be622900a0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Relocate spl to a high address(48M + 4KB) to avoid
overlap wit ATF.
Change-Id: Iae767d7e5b18b24872d2a6975ef25b2146f05095
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
As rk3308 is a aarch64 based soc, we only let
it run spl on aarch64 excution state. But for
u-boot stage, it may run on aarch32 or aarch64
state.
Change-Id: I592375aef19a35f10555f7c5b991445cf02c4543
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This was a careless mistake.
fixes: 510e4046a6
(Makefile: u-boot.itb: use dt-spl.dtb if using kernel dtb)
Change-Id: Ifc8ad908356db55007ddd8e125543a6501cbe5da
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This patch add SPL support to load rockchip images(trust and U-Boot).
Change-Id: I4f66dbd26af051feb93dfaca57062fd31b3dc695
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This allows other booting device to initial other firmware entry
point, but not only FIT.
Change-Id: I73b08d594079ce0842b68f1c9d222f58e171b555
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
bug:
CACHE: Misaligned operation at range [71e1eb80, 71e1eba0]
CACHE: Misaligned operation at range [71e1eb80, 71e1eba0]
CACHE: Misaligned operation at range [71e1eb80, 71e1eba0]
Change-Id: Id77a8f8df8e014e8de5dc0845ee0e3dd5d945f97
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
Usually, we test the eMMC speed by reading and writing several times
and then taking the average. So add parameter count.
Change-Id: I0a01804b4b35b4a6d9dc8c96ac2bce6a4607301b
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Attach the mtd driver to block device, then we can call common interface
(blk_dread & blk_dwrite) to operate storage in application layer.
Usage:
Open CONFIG_MTD_BLK & CONFIG_MTD.
Change-Id: I47a969322e2d20c12d46898bdc88f4104e1a15bf
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The alignment operation is always done by nand driver,so there is
no need to do alignment operation in nand logical level.
Change-Id: Ic08652e7a9574a5c8eebd505c66dc55b1e0ddce3
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The property indicates this regulator should skip init setting
sequence, usually for saving boot time.
Change-Id: I40a81c84b0696c70b16ddba50aeb457412287116
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
There is not crypto node in kernel dtb for early platform(such as
rk322x/rk3288/rk3368/rk3399, etc), so we decide to add crypto node
always in U-Boot dtb and ignore crypto node from kernel dtb.
This is a way to compatible with early platforms. Actually, we
need crypto during secure boot sequence, the crypto had better
not depends on kernel dtb.
Change-Id: Ibab4fca0741b45042b8d0868240449fb6b52aa14
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Adding error message for missing total data length when sha init.
Change-Id: Ibbd266a36ba1498ab4ab5c85ecbb68c548a89a86
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Use "u-boot,dm-pre-reloc" to identify whether the existance
node is from U-Boot or not. This avoids deleting the same name
nodes from kernel dtb.
Change-Id: I6503965c0013053feefad7e93f98b01b5af71f44
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Support boot ARMv8 based RK3326 on AARCH32 state
Change-Id: Ifb788ba71057f4f72dba9e1071c3609308644a9b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The hdr->page_size should be included.
fixes: 503a892f5a
(common: android: avb support load android image separate)
Change-Id: I2de2c9957fd47c7f95bf863f7b0c679cc64633d9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
kernel_addr_r is defined in the function entry, we should not
define it agin, otherwise the behind code is someting wrong.
(images.ep = kernel_addr_r;)
Change-Id: If6a4c01e8ecdf130b800bd3884a5cfbe158d8f9a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The ARMv8 platform enabling AArch32 mode should reserve memory the same
as AArch64 mode(because there is no difference about ATF), only some
platform has special request, they are: RK3308.
Change-Id: I0ffbfac7ddaff50ef53128dccd5b7dc2d02b560a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- handle the case: the input base is 0;
- ignore the head region which can't visible for M_ATTR_PEEK;
Change-Id: I2c3609b9457a5e2e429e849228301bfee0e4c9b0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
Change-Id: Iadcf7065f02ee779d3eeee1cb70fd3e9905e1b3f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The on/off_source value has been changed,
so we can't get the correct on/off source.
Change-Id: I7c522574f5e8d3bbc3c5d73980cdccdb4717da52
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>