Commit graph

9800 commits

Author SHA1 Message Date
Selvam Sathappan Periakaruppan
a89291cec3 ipq: crashdump: Support for dump_to_flash in nand-4k
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>
2022-03-15 03:09:30 -07:00
Linux Build Service Account
a8451b0a27 Merge "bootqca: use get_secure_state scm call instead of atf env" 2022-03-08 10:46:16 -08:00
Linux Build Service Account
1bc74c6b9e Merge "drivers : nand : Update Serial training fixup" 2022-03-08 05:12:40 -08:00
Ram Kumar D
b7ca23da1c bootqca: use get_secure_state scm call instead of atf env
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>
2022-03-08 17:00:07 +05:30
Saahil Tomar
4c8be9b750 drivers : nand : Update Serial training fixup
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>
2022-03-07 14:45:01 +05:30
Linux Build Service Account
252874cd42 Merge "ipq9574: Power collapse UBI32 Cores" 2022-02-21 20:38:41 -08:00
Linux Build Service Account
8df528daa4 Merge "ipq9574: Add support for AP-AL02-C6" 2022-02-18 02:13:20 -08:00
Timple Raj M
6fd182b72a ipq5018: Using MP03.3 dts in MP05.1 RDP
Change-Id: Ifd6e56eaba6ab00ae356a2512bae4c0f4722405f
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-02-17 03:31:29 -08:00
Praveenkumar I
6bd132f637 ipq9574: Add support for AP-AL02-C6
Change-Id: I6a3ed2372713253d997db576ae35ab0a8b0e2a8b
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-02-17 09:28:47 +05:30
Praveenkumar I
5dfb1b4291 ipq9574: Power collapse UBI32 Cores
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>
2022-02-16 19:17:25 -08:00
Selvam Sathappan Periakaruppan
91b2d3dea4 ipq9574: clock: Fix clock configuration
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>
2022-02-09 06:33:31 -08:00
Kavin A
d5357b5326 ipq9574: Add support for AP-AL02-C5
Change-Id: I4f48cd5e2d8a1d5c9cb53059c799af34e9c71e02
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-31 22:33:31 -08:00
Linux Build Service Account
04eaf393b1 Merge "ipq5018: Add MP05.1 RDP support" 2022-01-20 21:08:13 -08:00
Linux Build Service Account
67c9fbe0a9 Merge "bootqca: add support to boot signed elf image on non-secure board" 2022-01-19 13:06:45 -08:00
Linux Build Service Account
eb9583ae59 Merge "ipq5018: Add support to read and apply caldata in u-boot" 2022-01-19 13:06:44 -08:00
Linux Build Service Account
98a992b3f9 Merge "ipq: do uboot fdt fix before driver model gets initialized" 2022-01-19 09:09:01 -08:00
Timple Raj M
32228df2c6 ipq5018: Add MP05.1 RDP support
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>
2022-01-19 00:39:34 -08:00
Ram Kumar D
a3b9cad175 bootqca: add support to boot signed elf image on non-secure board
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>
2022-01-18 18:15:22 +05:30
Ignatius Michael (Jihan) Jihan
5753e00585 ipq5018: Add support to read and apply caldata in u-boot
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>
2022-01-12 21:38:44 -08:00
Kavin A
e3d7e02357 fdt_fixup: Update path for the node "qti,scm_restart_reason"
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>
2022-01-12 02:14:00 -08:00
Ram Kumar D
67221191fb ipq: do uboot fdt fix before driver model gets initialized
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>
2022-01-10 17:50:15 -08:00
Linux Build Service Account
185f463b71 Merge "ipq9574: Remove "NSSUTCM.BIN" from crashdump collection" 2022-01-10 07:37:38 -08:00
Linux Build Service Account
01543aee25 Merge "ipq: Clear kernel & rootfs headers after authentication" 2022-01-10 00:39:45 -08:00
Anusha Rao
92575b1451 ipq: Clear kernel & rootfs headers after authentication
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>
2022-01-07 13:19:46 +05:30
Kavin A
5b30e27a8e ipq9574: Remove "NSSUTCM.BIN" from crashdump collection
Change-Id: I2d0d03cc4885c1bd2cc51efb806b196bfe0cc654
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-06 22:42:25 -08:00
Linux Build Service Account
1f03ea71ae Merge "ipq6018: update q6v5 node fdt fixup for atf" 2022-01-05 00:08:13 -08:00
Linux Build Service Account
4aa902f171 Merge "ipq: Add support for failsafe boot" 2022-01-05 00:08:12 -08:00
Manikanta Mylavarapu
682a4ead16 ipq6018: update q6v5 node fdt fixup for atf
This change support both legacy and current node
configuration.

Change-Id: I2a930950472119210961238d39dd00f9482cbe6e
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
2022-01-04 11:34:39 +05:30
anusha
369ce9f09b ipq: Add support for failsafe boot
Add failsafe boot support to recover from system hang.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555
2022-01-03 21:05:45 -08:00
Gokul Sriram Palanisamy
ce13c0c2fd arm: ipq807x: Update fdt fixup for SDX65 SSR GPIOs
Update ap2mdm and mdm2ap gpio fixup for Linux-5.4

Change-Id: I8813a85ed229c95dad4fbd11ec505496dbf7d93c
Signed-off-by: POOVENDHAN SELVARAJ <quic_poovendh@quicinc.com>
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2021-12-30 09:47:59 -08:00
Linux Build Service Account
2304889c58 Merge "drivers: net: Disable RE bit for nssnoc clocks" 2021-12-15 12:10:58 -08:00
Linux Build Service Account
6f25ab30e6 Merge "arm: ipq807x: patch x65 status pinmux on linux-5.4" 2021-12-15 09:09:26 -08:00
Selvam Sathappan Periakaruppan
488378dfbc drivers: net: Disable RE bit for nssnoc clocks
Enabling the RE bit causes some issue in Kernel
when rcgr is configured.

Currently the RE bit is not set for these clocks
in Kernel as well and so reverting the same.

Change-Id: I12e29863531b64637d906026cab4374b49268cd0
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-14 09:33:05 -08:00
Linux Build Service Account
2c734522cf Merge "drivers: net: ipq9574: Fix network configurations" 2021-12-06 23:38:46 -08:00
Selvam Sathappan Periakaruppan
e0726bab13 drivers: net: ipq9574: Fix network configurations
This patch updates the following:

1) Updates NSS NOC clock frequencies to expected clock rates
2) Add Debug prints during eth_halt which can help debug issues
3) Update ACL structure and configurations for ipq9574 platform
as required
4) Disable the MIB counters reset bit so that those counter
registers values can be dumped to check stats
5) Update VSI configurations for cases when BRIDGED_MODE config
is disabled
6) Update the VSI configuration to avoid flooding from one LAN
port to another

Change-Id: I39f20a57c08205fbeb669c93b6459cf8e184098d
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-06 04:41:12 -08:00
Gokul Sriram Palanisamy
d615015278 arm: ipq807x: patch x65 status pinmux on linux-5.4
On Linux-5.4 dts, SDX status GPIO pinmux node has
changed. Add new patch instruction for the same.

Change-Id: I0235f2a2ee335c7f916644c87f5cd7ed16174554
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2021-12-02 23:35:36 +05:30
Vandhiadevan Karunamoorthy
ee631ab742 ipq9574: Add support for DPR feature
The command dpr_execute <load_address_of_dpr_binary>
is defined for the user to initiate DPR processing.
Uboot will raise scm call to TZ and pass the DPR load address.

Change-Id: Ide4495b49485a4ac6b722f0cb7d423d6a93946ca
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-11-30 22:36:16 -08:00
Linux Build Service Account
784b8ffd81 Merge "ipq5018: Fixup fdt to pass qspi training offset to HLOS" 2021-11-11 22:37:06 -08:00
Rajkumar Ayyasamy
3783f390dd ipq5018: Fixup fdt to pass qspi training offset to HLOS
Change-Id: I8ba2442f4d47d02a7e8f3947c19208bb40c62ed6
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2021-11-09 17:02:54 +05:30
anusha
713b3ae36c ipq9574: Invoke mmc_init in set_uuid_bootargs
The MMC mode switch command gets timed out occassionally.
Due to this, set_uuid_bootargs fails and uboot doesn't
jump to kernel. This issue is seen only in norplusemmc boot.
In eMMC Boot, board_mmc_env_init is called which handles
timeout case. Added the same logic to set_uuid_bootargs.

Change-Id: Ie9eb91b00f28c23c136d88e3cb39572e59c759e7
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-10-28 20:28:11 -07:00
Linux Build Service Account
b45d6d4fa5 Merge "ipq6018: update gadget_diag fdt fixup" 2021-10-28 12:38:56 -07:00
anusha
763f64bccc ipq: Pass HLOS partition info to TZ in secure_authenticate cmd
Change-Id: I82f10440c8d81c4ae591bdc5f8f5fdcf91f28719
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-10-27 06:32:20 -07:00
Vandhiadevan Karunamoorthy
3abfd5c2d1 ipq6018: update gadget_diag fdt fixup
This change support both legacy and current node
configuration

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I12551970f16ec09a648bac2ecb1a45edeffd997c
2021-10-27 18:40:47 +05:30
Linux Build Service Account
5f0dbcd5b1 Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: If781dcc16344e303f237954f3025f8b10d510ff6
2021-10-04 16:38:03 +05:30
Karthick Shanmugham
63c2c3a2c5 ipq: Indicate SDx when host resets
Change-Id: I202725bffe1ecbdf69aeac4d99a6b6a010f6cbce
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2021-09-26 21:07:49 -07:00
Vandhiadevan Karunamoorthy
f1fc6e4c71 ipq9574: Pass HLOS partition info to TZ
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>
2021-09-20 18:14:23 +05:30
anusha
8063318fa4 ipq9574: Update PCIE AUX clock source
Updated the source from gpll0_out_aux to gpll0_out_main

Change-Id: Iecaefbe03c02286823d1a67ea53b180bfd8d948e
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-09-09 02:13:48 -07:00
Linux Build Service Account
a6c288098a Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I20c0dcf584bce3ac488c28fd3dc107c7f5766867
2021-09-06 10:44:52 +05:30
Kathiravan T
ff57de3611 Revert "ipq9574: add dload_warm_reset support"
This reverts commit 0488bd0d1f.

Change-Id: Ie576aa72e009058320aecbd70efbe2f292c026f6
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2021-09-02 04:43:29 -07:00
Vandhiadevan Karunamoorthy
2bc07e0161 pci: ipq9574: Add SKU validation support
This changes add SKU validation support in PCI driver
the valdiation api given as weak for non SKU supported platform.

Change-Id: I32985be1e06e9cb07d28edfba50299bb7eaa3cc5
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-31 21:22:32 -07:00