Since we need to realize standard library function other than use them
with gcc tool chain in U-Boot. So add standard library function here.
Change-Id: I10009c5bbe31fabacd929df3c44218ae9c6a885f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
It's not safe to drop clear operation, example: using "reboot fastboot" from
kernel to enter U-Boot fastboot mode and finally reset system by fastboot
command "fastboot reboot", the system reboot and enter U-Boot fastboot mode
again but not boot to kernel.
Take back the clear operation which was dropped on:
(9d2bc40 boot_rkimg: don't override BOOT_MODE_REG)
Change-Id: I5e17e19e53700ec5244660122d837efc9cd30d4f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The cdev->config means the currently active configuration and
it might be null, fix it by adding null pointer check.
Change-Id: I18261653436186c342b447c24ef46a8acc42825f
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Reserve one block space for gpt table in mtd part info,
otherwise gpt table will be erased by user program.
Change-Id: I0545c55f7da2b5518ab766ed763b074b7558fd4f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Some special characters will be treated as a path in windows environment,
such as '\\' and '/'. If the usb upload its serial number with these
special characters, the usb drive will unwork. So use '_' to replace them.
Change-Id: Ic249316f2b03b0dcb73680078f122e23003e6e3d
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The warning message is ""reg" property in /nandc@ff4b0000/nand@0
has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)".
Change-Id: I06d4eca600e29d3c00a7888055c7526f9f5cd779
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
RK3399's VOPL has win0 and win1 layers.The formats they support as below:
Win0: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16 NV12 NV16 NV24 NA12 NA16 NA24
Win1: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16
Only the win0 layer supports NV12 format(for video decode).
So change to use win0 for video overlay layer and win1 for ui layer.
Change-Id: I2168b48d78e2a27fd93b12646952518d7bb529f2
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
This miss match phandle maybe "&pmucru" phandle.
(fixes: 3e45175 rockchip: board: fixup cru phandle for all U-Boot node.)
Change-Id: If053c1d329264967b1d0f1d3dce8f62aea3b69c7
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Right after "Starting kernel..." and before jumpping to kernel.
Change-Id: I59bec92b0727b6ff62d2c4f461e99c5a7f6f5426
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The alloc region for storage read/write should be aligned to
cacheline size.
Change-Id: Ib529a5f62d3937b66b0d325a49feb22eacb04317
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
If alloc buffer for storage read/write should be aligned to
cacheline size, please add the M_ATTR_CACHELINE_ALIGN flag
for this region.
Change-Id: I1e5d46405ddacfadd1cdb4670f943996d9b66426
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Find the current device before find mmc device, otherwise '-1'
will be use as curr_device and error occur. The error log is
"MMC Device -1 not found".
Change-Id: Id6157f73d006f4bbe1c4d105244eb59ca7290c13
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Without this patch, it always returns the last partition when
"idx" is larger than the last partititon.
Change-Id: I1d126861327c02cab7dd8cc00dd0800651f7da3c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Modify the opensource nandc driver to compatible with
the NAND driver include FTL,which used udevice_id
"rockchip,rk-nandc".
Change-Id: I67b9beb43b9935f88c98802f6df3507248324a12
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
Modify the opensource nandc driver to compatible with
the NAND driver include FTL,which used udevice_id
"rockchip,rk-nandc".
Change-Id: I8dda456aed89e15b2b9885e8d9d723f2d2e84ccb
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
The legacy chips like rk3188 maskrom require all IDB data with RC4,
the boot_merger pack the loader with a rc4 flag in header,
and the upgrade_tool will write the data with rc4 to IDB area.
usage:
boot_merger --rc4 RKBOOT/RK310BMINIALL.ini
and you can see log below if success with RC4:
* enable RC4 for IDB data(both ddr and preloader)
Test on rk3188.
Change-Id: If221a32a462bb43bef67aae802adff5e1e8436ac
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Do not use mtd node from kernel dtb, otherwise the driver will
be initialized twice.
Change-Id: I6f3dca8fd8c3e05475f4359fe6c3c5312c0984cd
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Parse the mtd part info and pass it to kernel by bootargs if
the device is mtd.
Change-Id: I746081c58d797b8dbd63c47915c6d88a314e1a90
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
u-boot-tpl.sym and u-boot-spl.sym are required by stacktrace scripts
Change-Id: Ie408332eaff71c3ed244016adb9f75401ca35845
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Without this patch, u-boot-tpl.dtb is always copy from u-boot-spl.dtb which
doesn't apply fdtgrep with "-b u-boot,dm-tpl".
Sometimes, the platform with critical sram size requires u-boot-tpl.dtb as
smaller as possible, so we use "u-boot,dm-tpl" prop to idendify what the
tpl really needs.
Rules:
"u-boot,dm-tpl": include node with prop for u-boot-tpl.dtb;
"u-boot,dm-spl": include node with prop for u-boot-spl.dtb;
"u-boot,pre-reloc": include node with prop for u-boot-tpl.dtb and u-boot-spl.dtb;
Change-Id: I29c2464d285174f4d0a4a1f8b91a84238ed82384
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>