Commit graph

37438 commits

Author SHA1 Message Date
Linux Build Service Account
505adc6b36 Merge "cmd_aes : Increase Context length to 128 from 64 bytes" 2024-03-19 04:41:52 -07:00
Poovendhan Selvaraj
a9125b5917 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
(cherry picked from commit d13425c049)
2024-03-18 23:02:03 -07:00
Poovendhan Selvaraj
97f88a2cae 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>
(cherry picked from commit e15df34ac8)
(cherry picked from commit d91a2f05c9)
2024-03-18 22:27:52 -07:00
Ram Kumar D
6ed30cd030 bootqca: add support to append bootargs via fit header
Change-Id: I0ea34e5c7ab1ba7ab27f0df5cc895bed103a248d
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-01-11 16:34:23 +05:30
Vandhiadevan Karunamoorthy
948870183c bootqca: add key parsing support in bootargs
Change-Id: Ibdd89e117da0bda61793af79d0eb00bacbe7585b
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2024-01-11 16:33:47 +05:30
Ram Kumar D
ad2b0fcd97 board: qca: arm: remove MEM_NOC clock access
Since only Q6/TME/TZ should have access to memnoc clock,
so removing the MEMNOC clock enable sequence.

Change-Id: Iee32a59c340cda794b8ee3c314be871ab749ff79
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit 20278977d9)
2024-01-04 01:37:47 -08:00
Linux Build Service Account
c62f6c9bb5 Merge "board: qca: arm: ipq: config_name update" 2024-01-03 00:12:28 -08:00
Hariharan K
f0228b21b7 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 15:54:22 +05:30
Linux Build Service Account
b20edc2c58 Merge "arch: arm: dts: update the config name for all ipq9574 and ipq5332 targets." 2023-12-20 20:47:29 -08:00
ratchaya
f304120af2 arch: arm: dts: update the config name for all ipq9574 and
ipq5332 targets.

Change-Id: I8ebafdcd98f68ca2f9287a7c44cadfc77955dff3
Signed-off-by: ratchaya <quic_ratchaya@quicinc.com>
(cherry picked from commit c6fd33b70c)
2023-12-20 13:00:16 +05:30
Atchaya R
2950fcff70 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
(cherry picked from commit 1cb16c44de)
2023-12-19 22:50:03 -08:00
Ram Kumar D
42fecce3a5 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>
(cherry picked from commit 0b102f4bdc)
2023-12-19 05:04:24 -08:00
Gurumoorthy Santhakumar
04694cca89 arch: smem: removed end_magic check in bootconfig
This patch is to support bootconfig with crc32

Change-Id: I49a7c5e3a578a166d25b8c7387a9a5ffd21652a8
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
(cherry picked from commit c61b701c04)
2023-12-05 03:40:51 -08:00
Linux Build Service Account
80a79ee5ed Merge "common: cmd_mtdparts: skip partitions exceeding flash size" 2023-11-28 06:13:03 -08:00
Linux Build Service Account
c5cd51c403 Merge "qca: ipq: fix to correct wrong delay obtained from udelay function" 2023-11-27 01:13:30 -08:00
Gurumoorthy Santhakumar
528da2af1e 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>
(cherry picked from commit 59cb1c8529)
2023-11-24 09:13:38 -08:00
Praveenkumar I
c3fe48bcb0 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-21 22:18:12 -08:00
Timple Raj M
c63c3b78fa 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-21 04:55:08 -08:00
Sridharan S N
e6fb909ef0 common: cmd_mtdparts: skip partitions exceeding flash size
Change-Id: Icc9fcd4bcc8b2d7d5e47598c1acc6058ecf203d9
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-11-14 22:44:35 -08:00
Saahil Tomar
792e91319e arm: dts: Add MI01.2-C2 dts support
This change adds MI01.2-C2 (RDP484) which is a derivative of RDP441
with PON SFP connected and ethernet SFP plugged out.

Change-Id: Iccbbcc429346aaea1a16942f5781fac89807347b
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-10-26 13:53:40 +05:30
Ram Kumar D
eb09594ed4 arch: arm: dts: ipq5332: configure SFP RX pin state
We used to configure SFP RX pin with 8MA drive strength and pull
up enabled, but later identified that, it is not really required.
Then, removed it in miami.

But, looks likes when device like SFP-80M module is connected to
SFP cage, these configurations are needed. So, enabling it on
all miami sfp rdps.

This change wont affect our SFP-30M module behavior

Change-Id: I5dd758e1d982062d9a0259b50e1e537eeda8ddc8
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit b66a91afdd)
2023-10-11 07:54:57 -07:00
Hariharan K
0f14227714 ipq9574: Add support for AL02-C20
Changing RDP467 to AL02-C20.
Also updating the return machid type
for AL02-C11 similar to AL02-C12,
since AL02-C11 is converted to RDP455
configuration.

Change-Id: Ibcdfd1ede58d7a6a5e82f93c5fbe45d6a3705dcd
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-09-15 17:32:20 +05:30
Ram Kumar D
436effe3c2 tools: pack: flash bootconfig only for non-apps image
Update pack script to flash bootconfig only for non-apps
image.

Change-Id: I85be15e48b4e4f3ed40826d0c395f2cc8e5d3f88
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-12 06:47:19 -07:00
Ram Kumar D
5e1c7f0f72 tools: packv1: added support to flash bootcfg based on RDP
This patch adds support to flash the bootconfig based on the
RDPs.

1. To flash bootconfig based on Multi-RDP
   add entry like below in all flash partition xmls

   for non-mmc flash partition:
   <img_name type="string" bootconfig_type="1">file1_name</img_name>
   <img_name type="string" bootconfig_type="2">file2_name</img_name>
   <img_name type="string" bootconfig_type="2">file3_name</img_name>

   for mmc flash partition:
   bootconfig_type_max="2"
   filename_img1="file1_name"
   filename_img2="file2_name"

   and specify which bootconfig to flash on each RDP by adding
   entry like below, in config xml under each RDP nodes.
   <bootconfig_type>1</bootconfig_type>

2. for single bootconfig case, there is no change.
   just add single entry like below in all flash partition xmls
   <img_name type="string">file_name</img_name>

Change-Id: I2ca4d2125c70a7f5176478b3de03b1f6fc98ce08
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-07 09:45:24 +05:30
Ram Kumar D
ddb4af0091 tools: packv1: align indentation using reindent
Change-Id: I5194e20788a94d88121830ec63c4e8350bdb9387
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-07 09:45:02 +05:30
Linux Build Service Account
2729188293 Merge "aes : Add fix to read correct value from ram address for derive_aes_256_key cmd" 2023-08-21 22:41:14 -07:00
Poovendhan Selvaraj
5e509e9a2c aes : Add fix to read correct value from ram address for derive_aes_256_key cmd
Change-Id: I0e3080b641b3b050655fdbb626273ec14cbc6aa2
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2023-08-10 05:11:03 -07:00
Saahil Tomar
03440c6c2a ipq9574: Add support for RDP467
RDP467 is same as AL02-C4 with PCIE0 enabled with
wkk support.

Change-Id: If6ba645b7c62a3320139a7c86e0b89ec525a0fb7
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-08-07 12:43:46 +05:30
Linux Build Service Account
e3163508c4 Merge "arch: arm: dts: updated qca808x PHY mode support in AL06" 2023-07-27 05:06:27 -07:00
Linux Build Service Account
31b5a01b30 Merge "bootm: fix size arg of flush_cache() in bootm_load_os()." 2023-07-26 12:40:54 -07:00
Ram Kumar D
9f2501f794 arch: arm: dts: updated qca808x PHY mode support in AL06
This patch updates the following ethernet configuration
on ipq9574.
Previously, AL06 has qca8075 PHY attached in the UNIPHY0,
now it has been replaced with qca808x PHY mode.

Change-Id: Ieb5b9ef10bd1ebfd1992cbfa10cb02b2ac4d0534
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-26 07:10:39 -07:00
Karthick Shanmugham
4f3f613b40 board: qca: ipq9574: Add atf crypto fixup support
This changes fixup "qcom,controlled-remotely" property and
"qti,config-pipe-trust-reg" property in the crypto bam node
in ATF boot. This will enable the kernel to do complete bam
pipe initialization.

Change-Id: I454c4e4e68354506dc16b1e72b514264778314e0
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2023-07-19 20:10:48 -07:00
Linux Build Service Account
fb2b4f64fc Merge "pack_v2: Append flupdate commands" 2023-07-19 03:43:37 -07:00
Linux Build Service Account
2368f6dfe3 Merge "mtd: nand: Add support for giga device spi nand" 2023-07-19 03:43:35 -07:00
Linux Build Service Account
e0556ee2dc Merge "pack_v2: remove the mibib_reload sequence for nand apps img" 2023-07-18 13:09:51 -07:00
Linux Build Service Account
24adad5b35 Merge "arm: dts: ipq9574: Add AL05 & AL06 RDP support" 2023-07-17 23:42:16 -07:00
Purna Chandra Mandal
77d37303b4 bootm: fix size arg of flush_cache() in bootm_load_os().
Variable _load_end_ points to end address of uncompressed buffer
(*not* uncomress_buffer_end / sizeof(ulong)), so multipling uncompressed
size with sizeof(ulong) is grossly incorrect in flush_cache().
It might lead to access of address beyond valid memory range and hang the CPU.

Tested on MIPS architecture by using compressed(gzip, lzma)
and uncompressed uImage.

Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: POOVENDHAN SELVARAJ <quic_poovendh@quicinc.com>
Change-Id: Ia93bfc549e348e655a748a24f59b38a0f80659ce
(cherry picked from commit 8d4f11c203)
2023-07-17 02:45:48 -07:00
Linux Build Service Account
60f90b3b77 Merge "drivers: net: ipq: Use 16bit for phy_chip_id1 and phy_chip_id2" 2023-07-14 23:10:20 -07:00
Saahil Tomar
8d93686a74 pack_v2: remove the mibib_reload sequence for nand apps img
Change-Id: I846700d480a5ef0577a8f279fcd1932d2463d38c
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-07-12 04:25:32 -07:00
Timple Raj M
13581265b0 mtd: nand: Add support for giga device spi nand
This change will add support for giga device
GD5F2GM7REYIG spi nand support.

Change-Id: I97772e0a8210bd5a6d41e10bbfbdd75b44e53108
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-07-12 04:00:24 -07:00
Hariharan K
66aa707a2a drivers: net: ipq: Use 16bit for phy_chip_id1 and phy_chip_id2
Changing the data type of phy_chip_id1 and phy_chip_id2 from
32-bit to 16-bit and initializing them to 0 to avoid any junk
value while shifting and concatenating them to form the final
phy_chip_id.

Change-Id: If96b01db9ec2b3c0a259ea3c98516d1f18a898ce
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-07-11 07:07:37 -07:00
Hariharan K
62e96bfe91 pack_v2: Append flupdate commands
If flash image type is emmc, switch the flash
type to emmc from nor in norplusemmc board using
the flupdate commands. Once the image is flashed
switch back the flash type to nor using the same
flupdate commands.

This change is to support the below Change-Id
Ib328cc1fea0b37f27e6479d55fce08365fbfcf69

Change-Id: Ia5f75923d7bdfd313a986826f1ac2f7f571c414a
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-07-11 07:06:54 -07:00
Amandeep Singh
5b15f43cbb dts: ipq5018: Update SDX reset GPIO
Update SDX reset GPIO to restart SDX during different SSR scenarios.

Change-Id: I8ecda7f08bbb00498736925efb6bc0f834da48a8
Signed-off-by: Amandeep Singh <quic_amansing@quicinc.com>
2023-07-05 02:17:00 -07:00
Saahil Tomar
e2219fe5b3 arm: dts: ipq9574: Add AL05 & AL06 RDP support
This RDP is based on AL02-C4, with changes in ethernet for GPON enablement

Change-Id: Ic25d9009e685d8646564bda582305fbf1bce2be6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-07-03 23:26:36 -07:00
Poovendhan Selvaraj
ec2e27d9ae qca : Read the TME-l OEM fuse parameters from qfprom core address
Add support to read the TME-l OEM fuse parameters from
qfprom address

Change-Id: Ia4f0766a68b67fccc59a09883dd7ef11bc970eef
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2023-05-25 23:28:56 -07:00
Hariharan K
6ea70278d8 Flash: Adding support to change flash type
Adding a new command 'flupdate' to change the flash type
to mmc/nand/nor. flupdate set will set the flash type to
the provided type. flupdate clear will reset the flash
type to default.

Command usage:
flupdate set mmc/nand/nor
flupdate clear

Change-Id: Ib328cc1fea0b37f27e6479d55fce08365fbfcf69
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-05-23 04:47:51 -07:00
Timple Raj M
0f7bd25186 arm: dts: ipq5332: Add AP-MI01.9 RDP Support
The AP-MI01.9 is similar to AP-MI01.2 with internal
radio disabled and pcie0 for WKK 5G and pcie1 for WKK 2G

Change-Id: I568c4da0c7604881395dad08be42201fdf9c746b
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-05-21 22:07:24 -07:00
Timple Raj M
d94f0f3931 board: qca: arm: ipq5332: Enable GCC_PCIE3X1_PHY_AHB_CBCR clock
The pcie0 and usb uses combo phy, for usb 3.0 GCC_PCIE3X1_PHY_AHB_CBCR
clock has to be enabled

Change-Id: I281773f40bf7d32b27a27e7dc5e5d531ae3a3dc0
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-05-12 01:30:42 -07:00
Timple Raj M
75c182c3ec board: qca: arm: ipq5332: Fix to increase the CDR bandwidth
This patch increases the CDR bandwidth to pass the
USB 3.0 Rx jitter tolerance test

Change-Id: Id58b71f4078ea5d60ab0b0d7bf93aa0a5d519e3c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-05-12 01:30:29 -07:00
Timple Raj M
f2660d8f18 Revert "arm: dts: ipq5332: Add AP-MI01.6-QCN9160 RDP support"
This reverts commit 1df70b042e.

Change-Id: Ia54a104924884ab358debd64b9f37f3d9a7224dd
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-04-30 20:35:54 -07:00