Commit graph

9061 commits

Author SHA1 Message Date
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
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
Linux Build Service Account
152c1e9c03 Merge "ipq9574: clock: Fix clock configuration" 2022-02-16 01:42:54 -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
Selvam Sathappan Periakaruppan
a8ed69675d ipq: Change qca808x mode to SGMII by default
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>
2022-02-09 02:49:24 -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
7867991d34 Merge "ipq: Update debug print for runtime failsafe boot" 2022-01-31 02:08:59 -08:00
Linux Build Service Account
d9e7450789 Merge "ipq5018: Added SPI_NAND support for MP0_2.1 in uboot 1. Modified ipq5018-mp02.1.dts and added NAND alias and description" 2022-01-26 23:37:02 -08:00
Anusha Rao
ce14c90ddc ipq: Update debug print for runtime failsafe boot
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>
2022-01-26 22:07:37 -08:00
Ignatius Michael (Jihan) Jihan
01ed5153e4 ipq5018: Added SPI_NAND support for MP0_2.1 in uboot
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>
2022-01-21 00:15:12 -08:00
Linux Build Service Account
04eaf393b1 Merge "ipq5018: Add MP05.1 RDP support" 2022-01-20 21:08:13 -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
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
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
Ram Kumar D
93937d92f3 arm: scm: check error codes as well during secure authentication
Currently, during secure authentication only return values are checked,
error codes are not considered. So, added respective check to verify both
return value and error codes value during secure_authentication scm call.

Change-Id: Ie3e4fbf8651666001bdfacc0705fb2799a306b96
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2021-12-28 16:37:31 +05:30
Selvam Sathappan Periakaruppan
1d2a2dc57a drivers: net: ipq9574: Update EDMA Driver
This patch optimizes and updates the EDMA Driver as
required for ipq9574 platform similar to the Kernel
Host EDMA Driver.

-> Config TX_MOD and RX_MOD timers
-> Config DMAR_CTRL
-> Config Service code bypass for TX_DESC
-> Update the SRCINFO and DST_PORT configs
-> Make changes to include secondary and primary DESC's
into the same corresponding ring structure
-> Increase the TX_BUFF Size to 2048
-> Update to use RX_DESC RING 23
-> Remove unused fields from the EDMA structures
-> Update the description for the EDMA structure fields

Change-Id: I3f7f1c11cdd87687c38774a4930c9bee90857203
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:11:45 +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
bcf5b57166 Merge "ipq: spi: add multiple spi support" 2021-11-22 01:26:28 -08:00
Rajkumar Ayyasamy
cb1e4ebe62 ipq: spi: add multiple spi support
Added read & write bam pipe entires in all the ipq specific dtsi.
Also, updated the spi bam code with generic code changes to enable
the multiple spi support on all ipq chipsets.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
Change-Id: Ibcdb9d2a9ff7a25f3d296ecdb1aca403511e07d7
2021-11-19 12:26:31 +05:30
Linux Build Service Account
30427b829f Merge "arm: dts: ipq9574: Add AL02-C4 RDP support" 2021-11-03 12:06:49 -07:00
Linux Build Service Account
a838762ce1 Merge "serial: qca_uart: Restart UART RX when RX stale timeout occurs" 2021-11-01 10:35:27 -07:00
Praveenkumar I
5d9bbdd388 arm: dts: ipq9574: Add AL02-C4 RDP support
The main differece on AL02-C4 are,
PCIE1: 2G WKK
PCIE2: 6G WKK
PCIE3: 5G WKK

Other features are same as AL02-C1.

Change-Id: Ie13154dacf247c99e15f1da775238012075740ee
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2021-10-29 11:36:10 +05:30
Ram Kumar D
dfb99bda23 serial: qca_uart: Restart UART RX when RX stale timeout occurs
When a long string (>255 char) input given to uboot console, RX
stale timeout occurred on UART subsystem due to RXFULL. This in-turn
cause uboot console to stuck.

So, Added a check to catch this scenario and re-start the UART RX
if it occurred.

Change-Id: Ic80c1d5f1178bf2455385c3888a2023ce1dbf6fa
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
2021-10-27 14:50:57 +05:30
Praveenkumar I
7202d494bf arm: dts: ipq9574: Add AL02-C3 RDP support
The main differece on AL02-C3 are,

PCIE0: 1x5G
PCIE2: 1x6G
PCIE3: SDX

Other features are same as AL02-C2

Change-Id: If40e554baf16af1654bef3314f017f93d2babfbb
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2021-10-22 18:19:15 +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
Selvam Sathappan Periakaruppan
24709ce492 arm: dts: ipq9574: Remove duplicate i2c config
Only i2c aliases will be populated as needed in respective
RDP DTS. All i2c nodes will be added in common SOC DTS.

Change-Id: I540425c63339f45990231dca84cab6e66af009fb
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 02:57:17 -07:00
Selvam Sathappan Periakaruppan
4a0081f07e arm: dts: ipq9574: Enable 2 PCIE nodes in AL02
Only 2 PCIE's must be enabled by default in AL02.

Change-Id: I6ef06daca92e83df065bb4ca80d77e79b13834e5
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 15:23:24 +05:30
Selvam Sathappan Periakaruppan
e549c56389 arm: dts: ipq9574: Fix port_phyinfo node in DB c3
Change-Id: Ic58d4a9399142806263e760fc9e8d07a1a228f50
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 15:22:06 +05:30
Vandhiadevan Karunamoorthy
50781feff3 ipq9574: Update pci configuration
This change allign pci id with design.
This changes remove the manual id variable and use
alias id number instead.

Change-Id: I7ba481ee6e05b58a8481ccd89c6d40c4b3928e76
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-31 21:22:19 -07:00
Linux Build Service Account
8b02b5f5d3 Merge "dts: arm: ipq9574: add x1 lane pcie in DB Al01 rdp" 2021-08-31 08:07:32 -07:00
Linux Build Service Account
0528204539 Merge "dts: arm: ipq9574: Add BLSP3 I2C support" 2021-08-31 08:07:31 -07:00
Linux Build Service Account
d9e69aa54b Merge "drivers: net: ipq9574: Add SKU Validation" 2021-08-31 05:08:57 -07:00
Linux Build Service Account
d5b9ba2048 Merge "arm: dts: ipq9574: Update switch_mac_mode property" 2021-08-27 04:38:17 -07:00
Selvam Sathappan Periakaruppan
52018d860f arm: dts: ipq9574: Enable SFP instead of QCA808x in DB-AL02-c3
Change-Id: Ide9a4bbcf11910c62195269ce83ac00a25d84540
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-26 07:58:55 -07:00
Selvam Sathappan Periakaruppan
e54f2fc13d arm: dts: ipq9574: Enable AQ instead of QCA808x in DB-AL01-c3
Change-Id: I70c9486f80b2e2c4c9e097eeea2c98886612d7e6
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-26 07:58:40 -07:00
Vandhiadevan Karunamoorthy
e6f00946c7 dts: arm: ipq9574: add x1 lane pcie in DB Al01 rdp
Change-Id: Iefb6b38398704df7ccfc9f90f6d51e84c862d9e2
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-25 10:34:04 +05:30
Vandhiadevan Karunamoorthy
17f88020e4 Revert "dts: arm: ipq9574: disable pcie"
This reverts commit 2dfd9be9a9.
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>

Change-Id: I7e565e51859f026def1616ff906d40876c805eb4
2021-08-25 10:31:49 +05:30
Vandhiadevan Karunamoorthy
3b56bd8af1 dts: arm: ipq9574: Add BLSP3 I2C support
This changes add BLSP3 I2C and remove BLSP5 I2C.

Change-Id: I532da3733a170e78aaaeb4aba8faf1770cdfa97b
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-24 21:54:55 -07:00
Selvam Sathappan Periakaruppan
41ad17daf4 arm: dts: ipq9574: Update switch_mac_mode property
In ipq9574, switch_mac_mode0 is used for Uniphy0 and
this patch updates the same for db-al02 RDP.

Change-Id: I23080d70f9462bf857e083d6f54a97e8ce20d341
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-23 20:33:46 -07:00
Linux Build Service Account
92b6cab88b Merge "dts: arm: update DB-AL02 rdp." 2021-08-23 13:38:38 -07:00
Linux Build Service Account
2d2f73e977 Merge "arm: dts: ipq9574: Remove model and compat from DT" 2021-08-23 07:38:55 -07:00
Vandhiadevan Karunamoorthy
24ddd68fca dts: arm: update DB-AL02 rdp.
This changes add console, flash and peripherals

Change-Id: I180e0f1131fb936a7f9cc1a1262fdef6d5dca0ff
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-23 16:39:10 +05:30
Selvam Sathappan Periakaruppan
2930d2f051 arm: dts: ipq9574: Add DB Board c3 variants support
In c3 config, we will be making the following changes:

DB-AL01-c3:
Removing 1x2.5G port & adding 1x10G in USXGMII1 with rework

DB-AL02-c3:
Removing 1x2.5G port & adding 1xSFP+ in USXGMII0 with Rework

Note that other features are same as c1 in c3 config and
Ethernet port changes will be done on top of this.

Change-Id: I4ccfcf196e923a815deea377879cdc3e782d4673
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-23 01:11:56 -07:00
Selvam Sathappan Periakaruppan
d0d22e82c8 arm: dts: ipq9574: Remove model and compat from DT
These properties are not used in UBoot and this patch
removes the same.

Change-Id: I949f207d5b772755e6ab818270cd6c401e8e8f8a
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-23 01:08:32 -07:00
Linux Build Service Account
c6abc21619 Merge "arm: dts: ipq9574: Add Ethernet support for DB-AL02 variants" 2021-08-22 22:09:52 -07:00