Commit graph

36881 commits

Author SHA1 Message Date
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
Linux Build Service Account
cf9b565c01 Merge "arm: ipq807x: Update fdt fixup for SDX65 SSR GPIOs" 2022-01-03 20:37:43 -08:00
Linux Build Service Account
e777a85ff3 Merge "mtd: qpic_nand: Add support for Macronix 2G-bits Nand device" 2022-01-03 20:37:42 -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
Kavin A
9b7697d4c5 mtd: qpic_nand: Add support for Macronix 2G-bits Nand device
This change will add support for Macronix "MX35UF2GE4AD-Z4I" spi nand

Change-Id: I5d783473c0ec918b02e59a85b71ee941fe649365
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2021-12-29 20:42:35 +05:30
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
Linux Build Service Account
cdc16476d9 Merge "drivers: net: ipq9574: Update EDMA Driver" 2021-12-15 12:11:00 -08:00
Linux Build Service Account
c7adfae564 Merge "Revert "drivers: net: ipq9574: Update network config"" 2021-12-15 12:10: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
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
Selvam Sathappan Periakaruppan
8bf3539016 Revert "drivers: net: ipq9574: Update network config"
This reverts commit ac52f93c49.

Change-Id: I4177af51cf3a38204181069ff027225f4fdc78bc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:10:01 +05:30
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
Selvam Sathappan Periakaruppan
ac52f93c49 drivers: net: ipq9574: Update network config
This patch updates the following:

1) Remove ACL configurations
2) Reduce packet size to 1024 bytes

Change-Id: I94c0024fc8efeea12fc2742bbf9b4c3d0907d0ed
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-08 01:03:01 -08:00
Linux Build Service Account
2c734522cf Merge "drivers: net: ipq9574: Fix network configurations" 2021-12-06 23:38:46 -08:00
Linux Build Service Account
73fddb8d51 Merge "ipq9574: Add support for DPR feature" 2021-12-06 23:38:45 -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
Rajkumar Ayyasamy
d84c9f230d tools: pack: add new option to select fw based on machid
IPQ5018 uses option qcn6122 to enable wifi fw selection.
This patch adds a new generic name 'multi_wifi_fw' to do
the same.

Change-Id: I6ca01e5c16537ea6d9f5e53f956d7e68566dc5ae
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2021-11-27 03:44:51 -08:00
Kavin A
4291c86117 ipq9574: USB: Add delay for Get descriptor
Change-Id: I1ca6035fb30f692ec57ecb9f9c90393837c69a76
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2021-11-22 23:01:33 -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
29a1ce8b54 Merge "pack: add layout switch for sbl partition" 2021-11-15 21:38:19 -08:00
Linux Build Service Account
2fb57de7a2 Merge "mtd: qpic_nand: add support to switch between 2K & 4K layout" 2021-11-15 21:38:18 -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
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
Linux Build Service Account
d89f06408b Merge "ipq9574: Invoke mmc_init in set_uuid_bootargs" 2021-10-29 20:05:57 -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
Linux Build Service Account
bf0de9ae65 Merge "configs: ipq9574: Update TLV buffer offset" 2021-10-28 22:36:30 -07:00
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
Linux Build Service Account
af4bf870a0 Merge "drivers: net: ipq9574: Add SFP 1G and 2.5G Support" 2021-10-28 12:38:56 -07:00
Linux Build Service Account
c262bc923d Merge "tools: sysupgrade: Populate kernel volume id dynamically" 2021-10-28 12:38:55 -07:00
Kavin A
869166da30 configs: ipq9574: Update TLV buffer offset
In IPQ9574, TZ adds base addr + 300K(TMEL ctxt size) and stores this addr in imem.
Updated TLV_BUF_OFFSET to subtract TMEL offset from base addr.

Change-Id: I54ea5be4133f2c0435ecaabff392b20c67ec5d48
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-28 18:10:22 +05:30
Selvam Sathappan Periakaruppan
7a087b1264 tools: sysupgrade: Populate kernel volume id dynamically
Change-Id: I29fb7de954fc7f855c49aea933c2adb7f1748f12
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-10-27 22:49:33 -07:00
Linux Build Service Account
936c3be298 Merge "drivers: pci: optimize for ipq806x platform" 2021-10-27 22:38:23 -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
Selvam Sathappan Periakaruppan
ee7e19ba6e drivers: net: ipq9574: Add SFP 1G and 2.5G Support
This patch adds support for SFP 1G and 2.5G. Note that
there is no autoneg support for SFP in U-Boot and the mode needs
to be changed in DT to make it work in 1G or 2.5G.

By default SFP will be configured to work in 10G mode.

Change-Id: I1c209276fe2a586332be87ce5d49a140f4814eb2
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-10-27 06:30:57 -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
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
Linux Build Service Account
eb6c59f9c7 Merge "arm: dts: ipq9574: Add AL02-C3 RDP support" 2021-10-27 00:06:12 -07:00
Vandhiadevan Karunamoorthy
cc76ff5e54 drivers: pci: optimize for ipq806x platform
This changes removes unwannted source for ipq806x
platform, therefore it saves more memory in flash

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia34c9843a5b32c2db57ec4b4977ab8c04875161b
2021-10-26 18:15:00 +05:30
Rajkumar Ayyasamy
136ea5b085 pack: add layout switch for sbl partition
This patch adds support for sbl partition layout switch on IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit aa841af6f70823ec782b6efb0ba459f58068f9c6)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: Idd950aef614a225c9cb6afd456967f53da6e4993
2021-10-22 19:23:58 +05:30
Rajkumar Ayyasamy
0dc8c1c7a6 mtd: qpic_nand: add support to switch between 2K & 4K layout
qpic_nand sbl -> to switch to 2K layout
qpic_nand linux -> to switch back to 4K layout

Currently this switch is enabled for IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit c9a1c10b2e35ba8f14dafc1f4c07aa5a07a01541)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I3e429b8cd5e600b4214c01d7949c01536f988e47
2021-10-22 19:23:10 +05:30