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>
The driver implementation refers to env/mmc.c, the storage media
binding to block layer can use it(Nand/Nor Flash...).
Support configure:
- CONFIG_ENV_OFFSET
- CONFIG_ENV_SIZE
- CONFIG_ENV_OFFSET_REDUND (optional)
- CONFIG_ENV_SIZE_REDUND (optional)
- CONFIG_SYS_MMC_ENV_PART (optional)
Change-Id: Ibb16f0dd7af1331f454784968fbdc9002f4b769c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
If a fuel gauge device doesn't have both charger and fuel gauge
capabilities, try to find devices group to support that.
Change-Id: I78d929e80e79bea304bb2b29f423c90ca12be16f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Return "FG_CAP_FUEL_GAUGE | FG_CAP_CHARGER" as default value
when there's not implementation, which compatibles with all fg drivers.
Change-Id: Ie71e1271e504c63be42af41551e10e8c2c7d89ac
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
support parse "ADDR" and "OUTPUT" from *TOS.ini
Change-Id: Ie98d858c832eecd7736cf3b4a020dfc91b10241c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- Since avb use sysmem alloc, we can decrease malloc size;
- The typical request is 128M ram board;
Note: trust.img should be placed in low memory address.
Change-Id: Iba6564710b130d26fdf6b4edfd013b1352216250
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Sometimes, we need to adjust fimware load address accroding
to board ram size, so we define another group of load address
to override the orignal group.
Change-Id: Ic23629d05db822111d7a270eec0b316df7865b86
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Skip fdt and ramdisk relocation to save boot time.
Change-Id: I56fd2fca97fa7795024aa542f0a45d0512be01d4
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Using malloc buffer to load image makes CONFIG_SYS_MALLOC_LEN must be
large enough, sysmem alloc is a better way.
Change-Id: I24e2b86c53b8d3307c0d155fc37cb499c321e1c6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Some times we want to relocate spl code to dram after dram
initialization or relocate spl code to a high memory to avoid
code overide.
For example on Rockchip armv8 platform, we run with boot flow
TPL->SPL->ATF->U-Boot.
TPL run in sram and is responsible for dram initialization.
SPL run from the start address of dram and is responsible for
loading ATF and U-Boot.
The case here is that the ATF load address is from 64KB of dram,
which overlaps with spl code itself.
So we want to relocate spl itself to high memory to aovid this.
Change-Id: Ifcae4444c04fa1208406b51196cf8737277ace90
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>