Commit graph

37248 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
c77f44b731 board: ipq5332: remove rumi flags.
Change-Id: I84ae7f2c6e8852c879aebc3538a8782c5b335d28
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 14:46:13 +05:30
Vandhiadevan Karunamoorthy
66dadd051f drivers: net: ipq5332: Updated SFP and MHT config
These changes update config as like below.
1.Config 100M, 1G as GMAC, 2.5G as XGMAC
2.Config MHT as XGMAC.

Change-Id: I0566f3a3d364931e8c8173c3604160f24c2439be
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 12:10:01 +05:30
Vandhiadevan Karunamoorthy
06b6fcd3e9 dts: ipq5332: update MDIO gpio configuration
Change-Id: I96c431876fe66e3e08fcb52a9ed210cbe2d585af
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 11:51:47 +05:30
Linux Build Service Account
6c139c94d7 Merge "ipq5332: Update reset seq & MDIO clk for MHT" 2022-11-26 07:01:38 -08:00
Linux Build Service Account
0cb57bdeb0 Merge "arm: dts: ipq5332: Enable support for USB" 2022-11-25 19:00:44 -08:00
Linux Build Service Account
913760fef3 Merge "arm: dts: ipq5332: update pcie aux clock source as xo" 2022-11-25 19:00:44 -08:00
Linux Build Service Account
80c1793ace Merge "pci: ipq9574: Update QCN9224 fuse blow and read" 2022-11-25 11:27:18 -08:00
Timple Raj M
5b941d0f31 arm: dts: ipq5332: Enable support for USB
This patch enables support for USB 2.0 in AP-MI01.2

Change-Id: I4f848a403f3aae45a9f1cfa136781fbc7a37c35a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-25 20:36:47 +05:30
Linux Build Service Account
00169d8155 Merge "image: Use constants for 'required' and 'key-name-hint'" 2022-11-25 05:58:56 -08:00
Linux Build Service Account
3529cb3d56 Merge "fit_check_sign: Allow selecting the configuration to verify" 2022-11-25 05:58:55 -08:00
Linux Build Service Account
0d768d743d Merge "bootm: Load the correct configuration in fit_check_sign" 2022-11-25 05:58:54 -08:00
Linux Build Service Account
7a0843a1c2 Merge "image-sig: Check hash-nodes when checking configurations" 2022-11-25 05:58:54 -08:00
Linux Build Service Account
25665eddcc Merge "image-sig: Return an error message from fit_config_verify_sig()" 2022-11-25 05:58:53 -08:00
Linux Build Service Account
17361a7903 Merge "image-fit: Be a little more verbose when checking signatures" 2022-11-25 05:58:52 -08:00
Linux Build Service Account
6b45a89e01 Merge "lib/zlib: Remove offset pointer optimization" 2022-11-25 05:58:51 -08:00
Timple Raj M
a148c9c8e4 arm: dts: ipq5332: update pcie aux clock source as xo
The pcie AUX clock source changed to XO as per
GCC frequency plan

Change-Id: If032831d3a9523ec214a62cbed2950ee5839920e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-25 04:21:07 -08:00
Praveenkumar I
f89bc531be pci: ipq9574: Update QCN9224 fuse blow and read
Added QCN92xx's SoC global reset and MHI reset in the fuse blow path.
So, the fuse blow can be retried after any failed attempts.

Added ANTI ROLLBACK fuse read.

Change-Id: Ibf255390ffc2086fcbfa9041dc0bcb612f8d9a4e
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-11-25 11:39:09 +05:30
Linux Build Service Account
de09c34cc9 Merge "lib: bzip2: Make sure nSelectors is not out of range" 2022-11-24 21:17:44 -08:00
Linux Build Service Account
225da6a4d8 Merge "ipq5332: eth: add uniphy clock init" 2022-11-24 16:14:38 -08:00
Linux Build Service Account
0b52771099 Merge "ipq5332: clock: fix mmc clock" 2022-11-24 06:27:42 -08:00
Linux Build Service Account
cdc5615533 Merge "arm: dts: ipq5332: add mi01.2-qcn9160-c1 variant" 2022-11-24 06:27:41 -08:00
Rajkumar Ayyasamy
9e5d35536e ipq5332: eth: add uniphy clock init
Change-Id: I7c74995086a102bda09494b2f12dcd111a8113fa
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-24 02:38:46 -08:00
Simon Glass
aea4f25d69 image: Use constants for 'required' and 'key-name-hint'
These are used in multiple places so update them to use a shared #define.

Change-Id: I3cc304f04c56c9d1a22df46e68f601b5acd2b34e
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:41 -08:00
Simon Glass
f9b8402471 fit_check_sign: Allow selecting the configuration to verify
This tool always verifies the default configuration. It is useful to be
able to verify a specific one. Add a command-line flag for this and plumb
the logic through.

Change-Id: I6022af77965aa107e4693119ac1a0ab750d3fe24
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:32 -08:00
Simon Glass
0694be0b11 bootm: Load the correct configuration in fit_check_sign
At present bootm_host_load_images() is passed the configuration that has
been verified, but ignores it and just uses the default configuration.
This may not be the same.

Update this function to use the selected configuration.

Change-Id: I020baa9321a88348478f1acef8a89e28ec94f3e9
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:21 -08:00
Simon Glass
57a979b903 image-sig: Check hash-nodes when checking configurations
It is currently possible to use a different configuration's signature and
thus bypass the configuration check. Make sure that the configuration node
that was hashed matches the one being checked, to catch this problem.

Also add a proper function comment to fit_config_check_sig() and make it
static.

Change-Id: Ida4ccc296c95ad2b32ff87cb4b98512fcad4bb54
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:12 -08:00
Simon Glass
a01a47b783 image-sig: Return an error message from fit_config_verify_sig()
This function only returns an error message sometimes. Update it to always
return an error message if one is available. This makes it easier to see
what went wrong.

Change-Id: I3696b20cff57914ef6ff7cbca3861ba5080be15e
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:56:59 -08:00
Simon Glass
c0fa58cda2 image-fit: Be a little more verbose when checking signatures
It is useful to be a little more specific about what is being
checked. Update a few messages to help with this.

Change-Id: I1318a9da01646b5fedf1d22e3119efdbd3e7a99e
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-23 23:49:14 -08:00
Chin Liang See
cbe64dd980 lib/zlib: Remove offset pointer optimization
This fixes the CVE-2016-9840. Commit imported from [1].

inftrees.c was subtracting an offset from a pointer to an array,
in order to provide a pointer that allowed indexing starting at
the offset. This is not compliant with the C standard, for which
the behavior of a pointer decremented before its allocated memory
is undefined. Per the recommendation of a security audit of the
zlib code by Trail of Bits and TrustInSoft, in support of the
Mozilla Foundation, this tiny optimization was removed, in order
to avoid the possibility of undefined behavior.

[1]: 6a043145ca

Change-Id: I816eea011f2d22b5a3f1fda8aa672b19ed284932
Signed-off-by: Mark Adler <madler@alumni.caltech.edu>
Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 12:47:26 +05:30
Linux Build Service Account
b4d399a5f9 Merge "ipq5332: avoid multiple machid for nand/mmc boot" 2022-11-23 11:48:28 -08:00
Linux Build Service Account
b854e7c0e3 Merge "ipq5332: configs: update uboot console prompt string" 2022-11-23 11:48:27 -08:00
Linux Build Service Account
992efadc9d Merge "arm: dts: add SPI-NOR gpio details in DB-Mi01.1" 2022-11-23 11:48:26 -08:00
Manikanta Mylavarapu
7e2d121982 arm: dts: ipq5332: add mi01.2-qcn9160-c1 variant
mi01.2-qcn9160-c1 is derived from mi01.2.
This variant disables pci0 (enables usb3.0)
and supports qcn9160 on pcie2 port.

Change-Id: Ie0e2cd7f039fab9f80788f135c80285e61b00310
Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
2022-11-23 09:59:53 -08:00
Rajkumar Ayyasamy
425d52cd85 ipq5332: avoid multiple machid for nand/mmc boot
added boot type based nand or emmc flash selection.
So machid based flash selection becomes obsolete.

Change-Id: I96fa43d31d23397fa249e02f62b905d6e4e67770
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 22:01:56 -08:00
Linux Build Service Account
6f9f184fd4 Merge "arm: dts: ipq9574: Add support for QCA8084 PHY on AL02-C7 RDP" 2022-11-22 16:44:53 -08:00
Linux Build Service Account
664ec3b720 Merge "board: qca: arm: ipq5332: fdt fixup for flash" 2022-11-22 09:11:24 -08:00
Rajkumar Ayyasamy
685719ec0f ipq5332: clock: fix mmc clock
For 192MHz:
       GCC_SDCC1_APPS_CFG_RCGR(0x1833008)  set to 0x220b
       GCC_SDCC1_APPS_M(0x183300c) set to 0x0
       GCC_SDCC1_APPS_N(0X1833010) set to 0x0
       GCC_SDCC1_APPS_D(0x1833014) set to 0x0

Change-Id: I2715b4428e4390f0b9b0b159e984a718d6c791a3
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 00:23:06 -08:00
Timple Raj M
6160ce636a ipq5332: configs: update uboot console prompt string
This patch updates the CONFIG_SYS_PROMPT
from "ipq5332# " to "IPQ5332# "

Change-Id: I3c42fcc4aba23c092788c028761ddc9656cd32d9
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-21 16:56:40 +05:30
devi priya
e578237ff0 arm: dts: ipq9574: Add support for QCA8084 PHY on AL02-C7 RDP
Updating the AL02-C7 configuration to support QCA8084 PHY
instead of QCA8075 PHY

Change-Id: Ie838d913caeb9dd933c6bd9fbdf8ee58563bdb7a
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-11-20 23:50:35 -08:00
Vandhiadevan Karunamoorthy
a2076a35ce ipq5332: Update reset seq & MDIO clk for MHT
Change-Id: I4ef6b84348289caf26768286b57252de88f8b3cc
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-19 20:51:00 -08:00
Vandhiadevan Karunamoorthy
21531f70cd arm: dts: add SPI-NOR gpio details in DB-Mi01.1
Change-Id: I62720d3aae20c182cbb33cd57c9a6ea0b975cd67
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-19 20:50:38 -08:00
Timple Raj M
4ef07f6b1a board: qca: arm: ipq5332: fdt fixup for flash
This patch adds support to enable flash using machid

Change-Id: I745a941d4219dc4cd29be96876710e15185ecb8f
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-11-19 23:15:19 +05:30
Vandhiadevan Karunamoorthy
a0b5416f43 net: ipq5332: update clk & TDM configuration
This changes update TDM and uniphy clk config

Change-Id: I7235713e130d07bb46e5c325bdfa3dd47da1e55c
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-17 20:12:44 -08:00
Linux Build Service Account
b6f164cdea Merge "ipq: Remove runtime failsafe feature" 2022-11-17 03:41:05 -08:00
Linux Build Service Account
bc7ff6a368 Merge "drivers: net: ipq5332: update MHT switch config" 2022-11-16 21:21:23 -08:00
Linux Build Service Account
2a55e3f34e Merge "arch: common: add support for TRY mode in boootconfig" 2022-11-16 10:35:28 -08:00
Gokul Sriram Palanisamy
60b84b15e8 ipq: Remove runtime failsafe feature
Runtime failsafe feature is obsolete.
So reverting the same.

Change-Id: I2d3585bf756e3c717461ea5411b4d3fbb8659916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-15 22:20:47 -08:00
Vandhiadevan Karunamoorthy
87487dce1f drivers: net: ipq5332: update MHT switch config
Change-Id: I0ce008fffa08927ffbc58f860ddd0f6be6d76e14
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-16 11:20:00 +05:30
Nitheesh Sekar
aa9fb4c4fb arm: dts: ipq9574: Add new board variant AP.AL02-C19
This patch adds support for new board variant AL02-C19.
This board variant consists of one internal radio,
Waikiki 5G in pci slot 0, Waikiki 6G in pci slot 2 and
SDX in pci slot 3.

Change-Id: I43e3b5890f6bd8f6d182e4c3acc540a89f9c4a34
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2022-11-15 21:45:05 -08:00
Gurumoorthy Santhakumar
69b77084fc arch: common: add support for TRY mode in boootconfig
Bootconfig partition can have the MAGIC value 0xA3A3A1A1
if try_mode is enabled. Update the checks in smem APIs

Change-Id: I2fb71ff5812468f3f5ecd0153c35cab7d8e4bb44
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-15 21:27:10 -08:00