- add interface to get android avb enable state;
- get ramdisk from "ramdisk_addr_r" only when android avb disabled
and CONFIG_ANDROID_BOOT_IMAGE_SEPARATE is enabled;
(fixes: 644e344 android: support loading android image separate)
Change-Id: I7280f911a0c5db851d119acb458b3f335dc28bce
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Avoid malloc_f space for pre-reloc is not enough which
may cause memory override.
Change-Id: Ifa358f5700dfa8b1dc1240a210e414fb69fca914
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Add the phy regulator supply for rv1108-evb, and fix the
configuration of clock_in_out.
But the phy will init failed because the phy-reset pin is
the same as the mipi data pin.
Change-Id: I14b0accd083742ca6eb4ae6bec1139ef5ba65db0
Signed-off-by: David Wu <david.wu@rock-chips.com>
Since sd does not have RPMB, so store secure data in security partition
for sdboot.
Change-Id: Ibf4557b5b2721657a6abf2f9e70e1b6c8893d7fc
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib2cfdf413e3c4da039a16971fcc00baaab3b101c
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(sync from rk/kernel:develop-4.4:331690a183f536fe8a791ceed4231f7e484f8fb7)
Change-Id: I2b750800859626f3d95ebe6b1b8a3d86aefc07d1
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(sync from rk/kernel:develop-4.4:3ef4c2204f9be3f0877333b5d35ab11e322ed90d)
Change-Id: If8670bee99c1397647323b34acd3e3da028549c3
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(sync from rk/kernel:develop-4.4:bd920c36fc56d00a24d3688510c84c62d7921c6a)
Change-Id: I1f48f5d13d772ee8c3c71ee40f122811d687bcc6
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(sync from rk/kernel:develop-4.4:1df398e95a19c472ac847ced671175f147a043ad)
Change-Id: I8521fa8aa8b1ba11888dd506f238e6e6c2d7ad39
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(sync from rk/kernel:develop-4.4:2c659c75a6fb5fc99279a8d4e64b222d0158e77b)
The clock property is used when emmc initialized.
Change-Id: I9b55c0f8bb91c25326abc45436cbd4d4c2516a08
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Add the SCLK_EMMC_DRV and SCLK_EMMC_SAMPLE to clocks.
Change-Id: I3c633bd973bb1f5cafb98a295ded6cfae704382d
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
RK8xx switch does not need to set the voltage,
but if dts set regulator-min-microvolt/regulator-max-microvolt,
will cause regulator set value fail and not to enable this switch.
So add an empty function to return success.
Change-Id: Ifc3cfe24902123d7434f3f6560a8e530c03d0b2a
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
This patch support loading android image separate for the
kernel/ramdisk/second images. It is disabled when android
AVB is enabled, because AVB need verify the full android image.
It brings some benefits, mainly for saving a lot of boot time:
- allow skip load second content when kernel dtb is enabled;
- allow skip fdt and ramdisk relocation during bootm boot flow;
- allow loading fdt/ramdisk to "fdt_addr_r"/"ramdisk_addr_r";
- avoid android image too large when load to ram;
Change-Id: Ia040b3031307a8a7c98b011ce038ec61fee6804a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
sysmem avoids memory block overlap with each other.
Change-Id: I7c705c7860a7c88b0d3672b6b4edb8cb8334654d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
sysmem avoids memory block overlap with each other.
Change-Id: I0013c3d05c69e19286cf1c76f936a17eaab1db49
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
clean up code and add comment for other interfaces.
Change-Id: Ibc64978d8db595c4fe76432faca77cdad9c949e6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
sysmem provides a mechanism to avoid memory block overlap with
each other.
Change-Id: I84796f4fd5b06283ca23e0ec9da9d0421701a957
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
using param_parse_atf_mem() and param_parse_optee_mem().
Change-Id: I0d42f80ea4bac61efdc38a0be97c3f416ce90622
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
parse: atf/optee/bootdev and common reserved memory.
Change-Id: I829eb42370b217e567cdafe03de4dab6063aa251
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>