Previously the MAX_NAND_PAGE_SIZE was defined as 2K
during when we will face issues when dumping to
flash in nand-4k. This patch updates the max size
to 4K to support the same in nand-4k.
Change-Id: Idcec9998f56df1db21fc03097d0454efd81bbbd3
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
Currently, if atf env is set in the secure board. secure boot
sequence gets bypassed. This is not an expected behaviour. So,
removed support the atf env variable. Instead atf enabled status
can be verified using get_secure_state scm call.
Moreover, as per current design get_secure_state scm call will
not be implemented in ATF in future as well. If its implemented,
Bit 7 should be made to 1.
Change-Id: I0adcfac7bbcb10fe6906fd8a3f10a440ec7080ae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This change fixup the magic word (0xBAD0FF5E) instead of zero.
So the uboot will skip setting qcom,training_offset
if the serial training partition is not present in flash.
Change-Id: I0ee8c9475e1153fdbc295691ceb2a4b1d6fdd394
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
UBI32 cores are not used in IPQ9574. So, this patch power
collapses all 4 UBI32 cores.
Change-Id: I50e3d963543303440c6af288af1c874717316b35
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
This changes enables the QSPI_LAYOUT_SWITCH config
which is required for QSPI nand 4k support.
Since SBL must be flashed in 2K layout to support
QSPI Nand-4K, this dynamic switch is required.
Change-Id: I95a68ec9238dd83306322bc57cf93b162e3179f5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This patch updates the following:
1) Initializes I2C QUP clocks in U-Boot itself as required
without depending on SBL.
2) Removes all CONFIG_IPQ9574_RUMI references.
Change-Id: I1fb02861a70bd2b024122fff7810c3373cc2e1cd
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
This patch updates the default uniphy mode to SGMII
for the qca808x ports. If suppose, the phy is capable
of supporting 2.5G, then it will reconfigure the
uniphy mode to SGMII_PLUS at that time based on the
link speed detected.
Change-Id: I56692b19536e71cbcf3a4c31d32ecb29866c5fdc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
In case of runtime failure, xBL updates NonHLOS partitions
and HLOS as well in NAND case. Make the print generic.
Change-Id: I7d75ac7c1d730c4bff3fe693fc3623e56a19b494
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
Flash Status register value will get updated in [15:8]
bits section. Hence right shift first and then extract
the required bit value.
Change-Id: I7f2233f22984da3db2324e9e2ba8aafff76adb32
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
Winbond SPI Nand devices provides two different modes for read operations,
Buffer Read Mode (BUF=1) and Continuous Read Mode (BUF=0).
We can configure the BUF bit to read and operate in any one mode.
Change-Id: Ie7adce70642756725e52dab8821333c42fdb601f
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
This change will add support for Winbond "W25N01GWZEIG" spi nand
Change-Id: Ic42938142115408406a8790e114d2d2acfc0dbb5
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
1. Modified ipq5018-mp02.1.dts and added NAND alias and description
Change-Id: I6043168712b2b8e54780fe44ca2e00d29f90374a
Signed-off-by: Ignatius Michael (Jihan) Jihan <quic_mignatiu@quicinc.com>
The features are similar to MP03.1 RDP.
The only difference is PINE in lane 2 is replaced by WKK.
Change-Id: Ifa83c640307081e2511ab5d8728871a8344207c4
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
Currently, all mbn header based signed images can be booted on
non-secure board, whereas the signed elf images cannot.
So, added support to boot the signed elf image on non-secure board
by skipping the elf header offset.
Change-Id: Ib5eb5370bea626106028866b33b4dc658744f081
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This change will read the 0:ART partition for calibration data and
apply it to the appropriate registers.
Following sequence added for the same.
1. created scm_read call to read the protected register.
2. added function to read data from ART partition of all flash types
3. added function to apply data to the Caldata register.
Change-Id: I4c769be3cdf664e4c59159851cc211fca53c0f27
Signed-off-by: Ignatius Michael (Jihan) Jihan <quic_mignatiu@quicinc.com>
This change will fetch "qti,scm_restart_reason" node
from soc node, if it is not available under root node.
Change-Id: I2328dee16d0133be54abd9f565a1a34afb8241b6
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
Currently, FDT fixup is happening after the initialization of the
driver model. But, it has to be done before that, otherwise, FDT
offsets configured in the drivers gets changed,
So, do ipq_uboot_fdt_fixup before driver model gets initialized by
calling it from board_fix_fdt. While at it, enabled the
CONFIG_OF_BOARD_FIXUP config in the required ipq specific defconfigs.
Change-Id: Ib05b9ab33b11716d5ca8db4afd6810e37982a443
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
Certain boards come in different variations by way of utilizing daughter
boards, for example. These boards might contain additional chips, which
are added to the main board's busses, e.g. I2C.
The device tree support for such boards would either, quite naturally,
employ the overlay mechanism to add such chips to the tree, or would use
one large default device tree, and delete the devices that are actually
not present.
Regardless of approach, even on the U-Boot level, a modification of the
device tree is a prerequisite to have such modular families of boards
supported properly.
Therefore, we add an option to make the U-Boot device tree (the actual
copy later used by the driver model) writeable, and add a callback
method that allows boards to modify the device tree at an early stage,
at which, hopefully, also the application of device tree overlays will
be possible.
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 2a792753d6)
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
Change-Id: I9a5fe4c6d681aaa5c68edd8a2a39d36bf2340fdf
After secure sysupgrade, uboot/TZ successfully authenticates
rootfs even if the signature & certificates are not appended
to kernel image. This is because the header and certificates
copied to DDR memory before sysupgrade is retained. Updated
the code to clear this DDR memory after authentication.
Change-Id: Ic2331326baefc945c217a507d4379951dba821ab
Signed-off-by: Anusha Rao <quic_anusha@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
This change support both legacy and current node
configuration.
Change-Id: I2a930950472119210961238d39dd00f9482cbe6e
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
Add failsafe boot support to recover from system hang.
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555