This change adds cmd_dpr as a common file,
so it will be reused in the future SoC.
dpr support added in Devsoc SoC.
Change-Id: I246a8f51c07c2f6952173bbd72e327ab1119af6e
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This change will add the clock setting for qpic-serial nand
Change-Id: Iae53933423572e35126ceeb359b82d1078d09bf2
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
This patch eliminates to maintain seperate dts file
for mmc flash. It enables flash node based
on machine id.
Change-Id: I67d95db162630a3bc84429e8a9338097e1e24619
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
The configuration from SoC (ipq6018, ipq5018, & ipq9574)
specific files is moved to fdt_fixup.c as a result of
this change.
Change-Id: I4f20e1a58ce88aea415debe305e69fb21cb6e162
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This update replaces the board-specific QPIC nand
training offset fixup with a generic framework.
Change-Id: I0fd9203334da3846cfbbba880bc6b4701e9d162b
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This change adds support to enable multiple I2C bus on all IPQ
platforms. Removed the device specific changes and updated in
a generic way to support multiple I2C on all the IPQ platforms.
Change-Id: Ie13dd744c6317fc9245bc88781e79a9fb3621a62
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This changes fixup to '0' in "qcom,controlled-remotely"
property and '2' in "qti,config-pipe-trust-reg" property
in the crypto bam node if ATF is enabled. This will enable
the kernel to do complete bam pipe initialization.
And also this change update the ATF fixup api to
generic name so which will be common for all other
fixup releated to ATF.
Change-Id: I10b2e712883f419433220547a0d7bc6bdf4e125d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
Ported uart_wait_tx_empty function from ipq806x to wait until the TX FIFO is emptied
to avoid FIFO corruption during serial init after relocation
Change-Id: Id95627c791c1159fdd3392e6aa35738e7561d489
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
During secure boot, after the kernel image authentication, before knowing
the authentication status, we are clearing out the MBN information in the DDR.
When we try to boot the unsigned kernel image on secure board, since
there is no MBN header available, we try to access the invalid memory
region (or) size which leads to data abort (or) system reset without any failure message.
So clear the MBN information only if the image authentication is successful.
If the image authentication is failed, corresponding failure message will be
printed and system will go for reset.
Change-Id: I2cf8e098cdb7e0fc11d0b563d4a0d6a5f0d44ee8
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Some USB devices taking more time to store the binary file if the
device has multiple partitions. Immediate usb stop can discard the
previously transfered binary. This patch adds delay to overcome the
issue
Change-Id: Iccbf272ebdfc3542ac1474129e07e852e8d7bbaa
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
ATF will not have get_secure_state scm call, use it to check the ATF
status. If get_secure_state scm call is not available means,
is_atf_enabled() call will return 1. This represents that ATF is
enabled.
Change-Id: Id7d96f4e377b2ec596d6bc60c37239118817de1e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
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>
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>
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 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>
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>
Add failsafe boot support to recover from system hang.
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555
Include SCM call to inform TZ whether HLOS boots from
primary or secondary partition
Change-Id: Ib1fa2b3c12762d1deed5b99f025c83870c142fa6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
This patch skips the usb_init during recovery path for AK platform alone.
No checks for usb_init for all other platforms
Change-Id: I3720f7e159d95bb6656df06ec9aeccfd02f3db01
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
This patch sets the function select as mdc_mdio and also
adds AQUANTIA, QCA80xx PHY ASSERT and DE-ASSERT support.
Change-Id: Ib606b51342df4e80d705271cc661f6fbe1664ed0
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org
Add BT state information to patch dts when the BT is started at bootloader.
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
Change-Id: Ib88150bb6c8469ec6d63578ce5c4ab21511aff60
This patch moves the set_platform_specific_default_env
function outside of CONFIG_QCA_MMC as this function is
not dependent on that config.
This will cause unexpected behaviour if suppose MMC
config is disabled.
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: I9bfc35afb054103bfb60b837cff04eed1d94decd
This patch moves the set_platform_specific_default_env
function outside of CONFIG_QCA_MMC as this function is
not dependent on that config.
This will cause unexpected behaviour if suppose MMC
config is disabled.
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: I9bfc35afb054103bfb60b837cff04eed1d94decd