Commit graph

37417 commits

Author SHA1 Message Date
Linux Build Service Account
be2a59efa5 Merge "bootm: fix size arg of flush_cache() in bootm_load_os()." 2023-06-16 09:14:14 -07:00
Purna Chandra Mandal
76c224fee7 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-06-15 08:03:20 -07:00
Gurumoorthy Santhakumar
73f9289aad ipq9574: dts: rdp config name change
Change-Id: Iab58960a2018d855763bad260cdc5c01e8652fae
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-06-14 23:54:18 -07:00
Vandhiadevan Karunamoorthy
9288e589ba ipq5332: skip 25M clk config in QCA8084 bypass-mode
Change-Id: I7d59929148c9953537318b3cbacaa33972d40ac6
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-06-13 01:36:59 -07:00
Linux Build Service Account
500b086449 Merge "arm: dts: ipq9574: Add AL05 & AL06 RDP support" 2023-06-12 05:56:06 -07:00
Saahil Tomar
f2ae718b2a 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-06-09 10:27:54 +05:30
Ram Kumar D
9339e8cfbb arch: arm: dts: ipq: add support boot linux upstream images
Change-Id: I451ceff7b899797168eb0d6d15b4426d102b03de
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-06-06 23:26:50 -07:00
Timple Raj M
92c955ab7e board: qca: arm: ipq5332: Add AP-MI04.1-C2 RDP Support
Change-Id: Ia58f189898f30fce20d053e836d6d974eb252f84
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-06-05 17:10:41 +05:30
Linux Build Service Account
ffbe0ca7df Merge "Sysupgrade-helper : Rootfs Authentication during sysupgrade" 2023-06-01 06:46:59 -07:00
Linux Build Service Account
68ef5362c6 Merge "ipq95xx: emmc fdt fixup for kernel 6.1" 2023-05-26 03:43:18 -07:00
Linux Build Service Account
dfb81a053e Merge "qca : Read the TME-l OEM fuse parameters from qfprom core address" 2023-05-25 02:15:07 -07:00
Vijay Balaji
4a1f60a52b Sysupgrade-helper : Rootfs Authentication during sysupgrade
This change will add support for rootfs Authentication in all
flashtypes (Nor, Nand, Emmc and norplusnand) during sysupgrade.
Here we are adding support to sign rootfs image with sha384.
The rootfs metadata is available at the end of kernel image.
This change adds supports to extract rootfs metadata from
kernel image and stores in /tmp/metadata.bin.
It also calculates sha384 of rootfs binary and stores in /tmp/sha384_keyXXXXXX 
After this we use below command to authenticate rootfs metadata:
echo -n "0x17 /tmp/metadata.bin /tmp/sha384_keyXXXXXX" > /sys/sec_upgrade/sec_auth

Change-Id: Iaf304d5edcd3bfff849fcb3705f5342f4c354b5b
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
2023-05-25 00:38:16 -07:00
Poovendhan Selvaraj
a9fd69f310 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 08:41:20 +05:30
Gurumoorthy Santhakumar
d751fa3e3e ipq95xx: emmc fdt fixup for kernel 6.1
if board has emmc flash type,
Ehable EMMC and disable NAND flash in
kernel device tree during kernel bootup

Change-Id: Ibbe197c39c4c4e47d97c33fa9a48d068e85917ab
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-05-24 09:21:43 -07:00
Linux Build Service Account
249b847702 Merge "ipq5332/ipq9574: dts: Append rdp names in config" 2023-05-24 03:17:33 -07:00
Linux Build Service Account
3dd8222d70 Merge "ipq: spi: Enable SPI clocks in Uboot based on QUP id" 2023-05-23 22:46:20 -07:00
POOVENDHAN SELVARAJ
f46eb417a7 ipq5332/ipq9574: dts: Append rdp names in config
Change-Id: Ie8eb4f2ca35723f4400a2b6d6bdb9efb7589b3fc
Signed-off-by: POOVENDHAN SELVARAJ <quic_poovendh@quicinc.com>
2023-05-23 12:52:07 +05:30
Saahil Tomar
d78389b19c ipq: spi: Enable SPI clocks in Uboot based on QUP id
Change-Id: I49d6e74fbb5b7d30a55fc741c2eca5bb66ac2e34
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-05-22 16:53:31 +05:30
Timple Raj M
808e5a4a5a 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-16 17:33:54 +05:30
Timple Raj M
610d4bbb6d 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-10 05:24:00 -07:00
Timple Raj M
4042ec1e3d 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-10 17:51:56 +05:30
Linux Build Service Account
a606ec6497 Merge "mtd: nand: Add support for giga device spi nand" 2023-05-02 06:49:30 -07:00
Linux Build Service Account
3063521eb8 Merge "pack_v2: Append flupdate commands" 2023-05-02 06:49:18 -07:00
Vandhiadevan Karunamoorthy
5de75873f5 Add support for Linux upstream compatible
Change-Id: Ieff863ee8da09d5bfdbcc1a70cdd1face7ae22da
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-04-28 03:21:07 -07:00
Linux Build Service Account
eacadbad95 Merge "ipq5332: dts: add mdio gpio config" 2023-04-26 10:18:39 -07:00
Vandhiadevan Karunamoorthy
0a7b4859c6 ipq5332: dts: add mdio gpio config
Change-Id: If916b200018655fcdfa544152902ee3299ad6452
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-04-26 16:22:31 +05:30
Linux Build Service Account
74b1fbaecc Merge "Flash: Adding support to change flash type" 2023-04-25 22:45:11 -07:00
Linux Build Service Account
4608b8a7e5 Merge "arm: dts: ipq5332: Updated the PCIe configuration of AP-MI01.3" 2023-04-25 07:10:57 -07:00
Timple Raj M
aef14b3223 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-04-24 20:25:38 +05:30
Timple Raj M
877c51ff59 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-24 13:00:02 +05:30
Timple Raj M
9cf17a11d9 arm: dts: ipq5332: Updated the PCIe configuration of AP-MI01.3
In AP-MI01.3 RDP, PCIe0 and PCIe1 are enabled in single
lane configuration

Change-Id: I5592d50ebb425a92ad536142573d09cdd60206b2
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-04-24 11:23:47 +05:30
Hariharan K
f8a0c7a770 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-04-24 11:01:48 +05:30
Linux Build Service Account
30ed3b49bf Merge "board: qca: Add env support for rootfs auth" 2023-04-20 13:13:21 -07:00
Timple Raj M
cd66774f4e mtd: nand: Add support for Macronix MX35UF1G24AD device
Change-Id: I37e18d4cc64709fa9f49f138b15d4d5ab878b812
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-04-18 14:37:38 +05:30
Hariharan K
cd5362a218 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-04-18 00:54:59 -07:00
Md Sadre Alam
569b2d0aaa board: qca: Add env support for rootfs auth
This change will add env variable "rootfs_auth" for rootfs
authentication.

Change-Id: Ifc52b63b0eca3e9306b82c9c471508dcf0d699fb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-04-18 10:49:04 +05:30
Ram Kumar D
48d9f76a4a drivers: net: ipq5332: update port clk for 10M speed
update the port clock setting for qca8084 PHY with respect to
10M speed configuration.

Change-Id: I16403b155f31f37a6bdf828150ca2d0923a29f3e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-04-14 19:07:10 +05:30
Linux Build Service Account
8a2e7c630f Merge "tools: pack: Waikiki V1 support removal" 2023-04-13 06:05:31 -07:00
Karthick Shanmugham
c5884947b0 Revert "board: ipq5332: Change tzlog compatible in ATF boot"
This reverts commit c2c6248267472db0da32017a33602de13a566fff.

Change-Id: Iee000abe440e6a1372737a792af5acffa378a915
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2023-04-10 03:01:30 -07:00
Saahil Tomar
db31f148ec tools: pack: Add check constraint for CDT_1
This change checks if 0:CDT_1 partition exists and then flashes cdt.bin.
Previously, check existed only for 0:CDT. The change allows for creation
of single image with proper cdt_1 name and appends it to the single image.
With this, we can successfully use the CDT_1 alternate partition for images.

Change-Id: I100dc789b54805c699ba6f30d5cb1b74734b1bd9
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-04-06 22:27:26 -07:00
Linux Build Service Account
05be3cd651 Merge "arm: dts: ipq5332: Update the PCIe1 lane configuration" 2023-04-04 22:58:10 -07:00
Ram Kumar D
5d5067a0cf drivers: net: qca8084: brought in qos patch for the qca8084
Change-Id: I5e90ea8d33c54cd2d84d61f82f950bd81e142d75
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-04-03 20:50:26 -07:00
Linux Build Service Account
2038e73763 Merge "board: ipq5332: Change tzlog compatible in ATF boot" 2023-04-03 06:19:55 -07:00
Timple Raj M
e6ba99c3d5 arm: dts: ipq5332: Update the PCIe1 lane configuration
This patch updates the PCIe1 lane configuration for DB-MI01.1
and DB-MI02.1

Change-Id: I3dc15a3255d74fcbd5147b2fa6f89c184e48410b
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-03-31 14:46:10 +05:30
Timple Raj M
ea52226a88 arm: dts: ipq5332: Update the AP-MI04.1 PCIe configuration
This patch updates the AP-MI04.1 PCIe configuration from
PCIe0 and PCIe1 to PCIe1 and PCIe2

Change-Id: If4aa155cc1005becd050fbc36d91d3764005c4c4
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-03-31 13:23:21 +05:30
Karthick Shanmugham
6b091d2bf9 board: ipq5332: Change tzlog compatible in ATF boot
Change-Id: Ie14f2ce6508bbc046670e07d93f7443bac1864d0
Signed-off-by: Karthick Shanmugham <quic_kartshan@quicinc.com>
2023-03-30 05:07:15 -07:00
Linux Build Service Account
386ed6aae1 Merge "drivers: net: qca8084: do sgmii speed fixup in bypass mode" 2023-03-29 20:12:21 -07:00
Linux Build Service Account
bb16cf6d0c Merge "pack_v2: pack: added soc_hw_version for IPQ5332 1.1" 2023-03-29 14:14:24 -07:00
Ram Kumar D
2515f73953 drivers: net: qca8084: do sgmii speed fixup in bypass mode
Previously 100M speed is not working in port 4 of MHT
by-pass mode. SGMII speed fixup required to dynamically
adjust the gcc clock based on the link-speed.

Still, this is requried only for port 4, because remaining
ports (1-3) will be taken care from switch core. So, added
speed fix for the by-mode support.

Change-Id: I495aad4b64de12ae7f57c0bdb9e0def08ad38681
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-03-29 18:55:14 +05:30
Timple Raj M
4deecb0bdd arm: dts: ipq5332: Add ethernet support for AP-MI01.3
This patch adds the ethernet support for AP-MI01.3 and
removes pci nodes from dts

Change-Id: I3fcb338a061d732b44409aa835a1fde45508be95
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-03-28 23:39:11 -07:00