Commit graph

36916 commits

Author SHA1 Message Date
Linux Build Service Account
dd21469125 AU_LINUX_QSDK_FIG_TARGET_ALL.12.0.000.1068
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iEYEABECAAYFAmIWDUAACgkQoUgPZYCpAfFWYgCgm19/h51y1BG1n1EqE144UMvD
 CVsAn2ipAWaeU9C/pxssXCGTSEjGdL4t
 =UclU
 -----END PGP SIGNATURE-----

Merge AU_LINUX_QSDK_FIG_TARGET_ALL.12.0.000.1068 on remote branch

Change-Id: I0c438c14c084a0250153654e190a87f4e2665300
Signed-off-by: Linux Build Service Account <lnxbuild@localhost>
2022-02-23 11:34:48 -07: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
Linux Build Service Account
b6e29e3be0 Merge "ipq5018: add CONFIG_QSPI_LAYOUT_SWITCH support" 2022-02-16 06:08:08 -08:00
Linux Build Service Account
152c1e9c03 Merge "ipq9574: clock: Fix clock configuration" 2022-02-16 01:42:54 -08:00
Linux Build Service Account
b28160d387 Merge "tool: pack: add layout switch for sbl partition" 2022-02-15 22:38:14 -08:00
Vandhiadevan Karunamoorthy
0d2d8dc299 ipq5018: add CONFIG_QSPI_LAYOUT_SWITCH support
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>
2022-02-15 05:35:19 -08:00
Rajkumar Ayyasamy
cf43c5a299 tool: pack: add layout switch for sbl partition
This patch adds support for sbl partition layout switch on IPQ5018

Change-Id: I74e6f1175f36fd58497e049ed16a71d70d3e4b03
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-02-14 21:41:12 -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
fdd40cf3fd Merge "drivers: mtd: nand: Extract the Status register value" 2022-01-27 10:08:51 -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
Kavin A
db4391c1d7 drivers: mtd: nand: Extract the Status register value
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>
2022-01-25 04:01:59 -08:00
Kavin A
d539984c88 mtd: nand: Configure Buffer mode only in Winbond SPI Nand devices
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>
2022-01-25 03:43:06 -08:00
Kavin A
9649af968e mtd: nand: Add support for Winbond 1G-bits spi nand.
This change will add support for Winbond "W25N01GWZEIG" spi nand

Change-Id: Ic42938142115408406a8790e114d2d2acfc0dbb5
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-25 03:41:58 -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
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
Linux Build Service Account
182d29b9ec Merge "dm: Add callback to modify the device tree" 2022-01-19 09:09:00 -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
mario.six@gdsys.cc
301ea68621 dm: Add callback to modify the device tree
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
2022-01-10 17:48:07 -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
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