Commit graph

37588 commits

Author SHA1 Message Date
Poovendhan Selvaraj
dae19193ab drivers: qseecom: Add new SCM call for AES 128 bytes context length
A new SCM has been added in TZ to support AES 128 byte context length.
Updated aes driver to add the same. Added new command as mentioned
below for 128 byte context length.
derive_aes_256_max_ctxt_key 0x2 0x20 0x41000000 0x80

Note: This new SCM call has been introduced since initial SCM call does not
derive keys the same way as Linux Fscrypt feature (128 byte context length)

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ie71fc0e9b3c0b0d01995745bb61cd2d82f07eb85
2024-03-11 15:03:14 +05:30
Poovendhan Selvaraj
78d19e2dbb cmd_aes : Increase Context length to 128 from 64 bytes
Add support to increase context length if tz supports
128 bytes context length else fall back to old method.

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ieded2c0139152e82011f792e91b875548fd29251
2024-02-27 16:25:20 +05:30
Linux Build Service Account
b8c0e50f54 Merge "board: qca: arm: add support to dump minidumps on memory" 2024-02-05 00:12:58 -08:00
Ram Kumar D
17f2872c6b board: qca: ipq5332: updated scope for the loop in PHY reset
The missing calibrace leads to an in-valid hardware access,
it in-turn causes silent reboot. So, added the calibrace to
define the scope for the loop statement.

Change-Id: I0c719798af35eb21a824ee6f570501dab720e241
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-02-02 16:43:16 +05:30
Ram Kumar D
f53b5a7770 board: qca: arm: add support to dump minidumps on memory
This patch enables support to do minidump on DDR.
Enable this support by setting respective reserved mem address
in the env "dump_to_mem"

setenv dump_minimal 1
setenv dump_to_mem "<addr> <size>"
addr & size param should matches with respect to the kernel
reserved memory region.

setenv dump_to_mem "0x44000000 0x500000"

Change-Id: I3f98269d42eed1e6301ed76eb9d1bcdd82046d41
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-01-31 16:13:00 +05:30
Linux Build Service Account
1e42f2b6b8 Merge "sysupgrade : fix UNINIT.STACK.MIGHT KW error" 2024-01-29 21:09:33 -08:00
Vijay Balaji
980dfed53b sysupgrade : fix UNINIT.STACK.MIGHT KW error
This change fixes the UNINIT.STACK.MIGHT KW issue
in sysupgrade code.

Change-Id: I70760b3ecd331218408ec92a09961f552dc6be24
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2024-01-25 06:17:33 -08:00
Linux Build Service Account
e34c5c9329 Merge "tools: add support to convert elf to mbn" 2024-01-24 11:41:02 -08:00
Linux Build Service Account
b34949f16c Merge "arm: dts: Add MI01.3-C3 dts support" 2024-01-23 12:08:55 -08:00
Ram Kumar D
2e0ccbbaa5 tools: add support to convert elf to mbn
Change-Id: I3caca1f0a7f7bea61ea29186fdb04becb8ef0b37
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-01-23 11:02:18 +05:30
Saahil Tomar
c70ced3786 arm: dts: Add MI01.3-C3 dts support
This change adds MI01.3-C3 (RDP486) which is a derivative of RDP442

Change-Id: Ia19d7bf94962a52b76cc4556969c4ed1cd3706b6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2024-01-19 13:00:55 +05:30
Linux Build Service Account
3055b258f6 Merge "aes: Add aes 256 support for ipq5332 platform" 2024-01-16 01:10:58 -08:00
Poovendhan Selvaraj
e15df34ac8 aes: Add aes 256 support for ipq5332 platform
ipq5332 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I28b327611b62381542086d6d599c4a0195525aca
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2024-01-16 09:26:15 +05:30
Linux Build Service Account
367c8dbf32 Merge "sysupgrade-helper : Fix KW issues and warnings for sysupgrade" 2024-01-12 08:40:40 -08:00
Vijay Balaji
3f84414cde sysupgrade-helper : Fix KW issues and warnings for sysupgrade
Here we are adding support to fix several warnings and
NPD.FUNC.MUST, ABV.GENERAL, INCORRECT.ALLOC_SIZE KW issues
in sysupgrade source code.

Change-Id: If8053878696494c1425ebd20840d17d9c6a74524
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2024-01-11 13:12:58 +05:30
Timple Raj M
443a52e2cb ipq5332: Skip PCIe enumeration during the board_init
In Q6, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init based on CONFIG_IPQ_PCI_INIT_DEFER
config and added it after autoboot is stopped.

Change-Id: I79d0d0aef2eeea9bf49157f405a29f23b3c2239d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-01-10 03:20:49 -08:00
Linux Build Service Account
a07ff15e2e Merge "board: qca: arm: ipq: config_name update" 2024-01-02 10:09:56 -08:00
Timple Raj M
371c067c14 drivers: mtd: spi: Add MX25U12832F SPI NOR device support
Change-Id: Ie8ee6c5a79fe6469b3c7688010ce33cac60ffc4a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-12-28 17:41:58 +05:30
Hariharan K
0054e407fa board: qca: arm: ipq: config_name update
Updating the config_name parameter to
support openwrt backwards compatibility.

Change-Id: I129aad5df7e14bcf39d9f971a860b5884cde2667
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-12-21 16:39:13 +05:30
Linux Build Service Account
32187e52f7 Merge "include: configs: remove unused config" 2023-12-21 00:12:39 -08:00
Ram Kumar D
26c428c064 include: configs: remove unused config
Change-Id: Ic0c412e6424b1da9b62ef8b31aed35307d011fd1
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-12-20 16:34:14 +05:30
Linux Build Service Account
23045aca4b Merge "arch: arm: dts: update the config name for all IPQ6018, ipq5018 and ipq807x targets" 2023-12-18 13:10:46 -08:00
Ram Kumar D
0b102f4bdc board: qca: arm: load rootfs as per the elf hdr
During rootfs authentication, this following patch makes
the uboot will load rootfs at the load address mentioned
in the rootfs elf hdr which is present at the end of
kernel image.

Change-Id: Iba9d31c72d01449b858b3866f38f369b67011cae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-12-14 16:03:29 +05:30
Atchaya R
1cb16c44de arch: arm: dts: update the config name for all IPQ6018, ipq5018 and ipq807x targets
Signed-off-by: Atchaya R <quic_ratchaya@quicinc.com>
Change-Id: Ib0c78de0e33ab40c927702da777764e300b581c7
2023-12-14 13:20:27 +05:30
Linux Build Service Account
ded4e73260 Merge "configs: ipq807x: Change CONFIG_IPQ_FDT_HIGH address" 2023-12-13 12:10:06 -08:00
Hariharan K
20640c2ea2 configs: ipq807x: Change CONFIG_IPQ_FDT_HIGH address
Changing the CONFIG_IPQ_FDT_HIGH address for ipq807x
platform to avoid the DT blob load address from
overlapping with the tzapp_data(0x4A300000) region.
The kernel created a 2MB readonly mapping of the
DT blob. Due to this the mapping will also extend
into the tzapp(0x4A400000) region, which is TZ
protected.

Hence changing the FDT high address to from 0x4a400000
to 0x4a200000 to avoid access violation issues.

Change-Id: I3283c0afdec8ab126ea109c7ca9184a9ea577f16
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-12-12 01:55:33 -08:00
Linux Build Service Account
37f9e7e91d Merge "arch: arm: dts: Enable SPI NOR support for MI01.2" 2023-11-24 16:39:51 -08:00
Saahil Tomar
a91b6759b1 arch: arm: dts: Enable SPI NOR support for MI01.2
Change-Id: I3c823cde2dcde912169da878bba0569b5c9b088a
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-23 22:25:12 -08:00
Linux Build Service Account
1dbf523fb6 Merge "qca: ipq: fix to correct wrong delay obtained from udelay function" 2023-11-21 12:40:24 -08:00
Linux Build Service Account
fa13b8f8c5 Merge "pci: pci_ipq: Fix pci_find_ipq_devices() to not check all PCIe hose" 2023-11-21 06:11:17 -08:00
Linux Build Service Account
483fd02deb Merge "arm: dts: Add MI01.13 (RDP480) dts support." 2023-11-21 03:12:02 -08:00
Praveenkumar I
a937a286fa pci: pci_ipq: Fix pci_find_ipq_devices() to not check all PCIe hose
Fix pci_find_ipq_devices(), which is checking all the PCIe hose from
the given ID and if searching device is not present, it moves till
the last PCIe hose and finds the device. This leads to duplicate
entries if unknown devices are also present. Instead it should
check only the selected PCIe hose and return success or failure.

Add QCN6432 in PCI device list so that list_pci command can show it.

Change-Id: I1fd1af9a760354f558680889dd5804abd6145dea
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-11-20 20:39:35 +05:30
Timple Raj M
72d8ec613f qca: ipq: fix to correct wrong delay obtained from udelay function
If usec >= 224000 usec, then:
usec * GPT_FREQ_KHZ = 224000 * 19200 >= 0x100590000,
which is a 33 bits value

To fix this usec is typecasted to 64 bit
(unsigned long long)usec * GPT_FREQ_KHZ

Change-Id: Ib1642d39b0581d2c04c62e415a1fd2dfed47fff1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-17 21:01:28 +05:30
Linux Build Service Account
e5277a298e Merge "arm: dts: Add MI01.12 (RDP479) dts support" 2023-11-16 12:10:22 -08:00
Linux Build Service Account
83c4348a55 Merge "ipqsoc: board: Add restriction for bootm and mw cmd" 2023-11-15 09:40:19 -08:00
Saahil Tomar
881b42a1f7 arm: dts: Add MI01.13 (RDP480) dts support.
RDP480 IPQ5332 + QCN9224 + QCN6432 + QCN9160 (2+4+2+Y)

Change-Id: Ibd36002d30c563932da501901c0e1504e1c33d8f
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-15 15:00:36 +05:30
Saahil Tomar
8696807c64 arm: dts: Add MI01.12 (RDP479) dts support
Add dts support of RDP 479
IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-6G
	PCIe1(x2) QCN9224-5G

Change-Id: If370919a699f45d8e0b5f41d4214c7e4e2967790
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-15 14:18:40 +05:30
Linux Build Service Account
2e4a573a66 Merge "drivers: net: ipq5332: update clk for 1G SFP" 2023-11-10 10:40:35 -08:00
Linux Build Service Account
db05f76a92 Merge "configs: ipq5332: Add fdtfixup support for tiny-nor" 2023-11-10 01:41:28 -08:00
Timple Raj M
24cab69acd configs: ipq5332: Add fdtfixup support for tiny-nor
Change-Id: Ic75d3ec52f1982fc4e1d6a06cf3227ff2edd7cc2
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-09 14:49:15 +05:30
Linux Build Service Account
ade4f74181 Merge "ipq9574: Skip PCIe enumeration during the board_init" 2023-11-09 00:40:47 -08:00
Gurumoorthy Santhakumar
59cb1c8529 ipqsoc: board: Add restriction for bootm and mw cmd
Added restriction for secure board

Change-Id: I7a7b4089689d98a6502b0360bb742fa42eff4759
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-11-08 20:52:34 -08:00
Linux Build Service Account
215f7d2e17 Merge "drivers: net: add Marvel X3410 10GE support" 2023-11-08 08:40:43 -08:00
Praveenkumar I
c3f64b1639 ipq9574: Skip PCIe enumeration during the board_init
In Kernel, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init and added it after autoboot is stopped.

Change-Id: I9c43b4da07ddd7e44f8c58a51dfd44701590f59b
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-11-08 05:09:09 -08:00
Linux Build Service Account
58e0e74861 Merge "arm: dts: Add MI04.3 (RDP483) dts support" 2023-11-07 20:40:16 -08:00
Vandhiadevan Karunamoorthy
81937af3eb drivers: net: add Marvel X3410 10GE support
Change-Id: Icd95191f2a472fcb125adce53137a52adf08ad47
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-11-07 21:15:18 +05:30
Saahil Tomar
ea59bdfcf6 arm: dts: Add MI04.3 (RDP483) dts support
This RDP 483 (MI04.3) is based on RDP478 (MI04.1-C2).
RDP483 has u-boot eth config:4*2.5GE (1+3)

Change-Id: I670e32f3c49a2a71bca8d349b7f4f5334075836c
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-07 16:51:46 +05:30
Timple Raj M
5e5611e5fc drivers: mtd: nand: Add winbond W25N04KWZEIR device
Change-Id: Id76f33547c3acb7db7e6ad35d478c77580f14ad1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-03 16:03:20 +05:30
Linux Build Service Account
401706e079 Merge "arch: arm: dts: update the config name for all ipq9574 and ipq5332 targets." 2023-10-25 07:39:55 -07:00
ratchaya
c6fd33b70c arch: arm: dts: update the config name for all ipq9574 and
ipq5332 targets.

Change-Id: I8ebafdcd98f68ca2f9287a7c44cadfc77955dff3
Signed-off-by: ratchaya <quic_ratchaya@quicinc.com>
2023-10-19 15:48:16 +05:30