Commit graph

37218 commits

Author SHA1 Message Date
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
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
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
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
Linux Build Service Account
ec0556dfa3 Merge "board: ipq5332: update ethernet configuration" 2022-11-14 23:51:57 -08:00
Linux Build Service Account
feb1eed9f0 Merge "board: ipq5332: update usb clock configuration" 2022-11-14 23:51:56 -08:00
Vandhiadevan Karunamoorthy
807d2ee806 arm: dts: ipq5332: Update eMMC gpio configuration
Change-Id: I784bd8fda94cc3e4b8d5ac1d0cece4fc7de88dc5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-12 21:02:04 +05:30
Vandhiadevan Karunamoorthy
8fe934032c board: ipq5332: update ethernet configuration
This changes includes update the Speed clock,
common clock update and dts nodes.

Change-Id: I673e8ccf191048fef966a8f6cd84858e1a3b824f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-12 07:14:17 -08:00
Vandhiadevan Karunamoorthy
659e333c11 board: ipq5332: update usb clock configuration
Change-Id: Ic8a1f017f5198c1136281be4eb5f7191627ff55f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-12 07:13:19 -08:00
Vandhiadevan Karunamoorthy
ea5c08a8b2 arm: dts: ipq5332: update DB RDP ethernet config
Change-Id: I922455c02251553d1b43349abfa47bd6a4639e79
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-10 22:15:15 +05:30
Linux Build Service Account
298a2f5e2e Merge "drivers: net: ipq5018: Add SFP 1G and 2.5G Support" 2022-11-08 04:39:37 -08:00
Linux Build Service Account
023055e1bc Merge "board: arm: ipq5332: Modified ethernet clock" 2022-11-08 04:39:36 -08:00
Linux Build Service Account
cbf958337d Merge "board: arm: ipq5332: Modified PCIE and USB0 clock" 2022-11-08 04:39:35 -08:00
Gokul Sriram Palanisamy
d820c5abbc drivers: net: ipq5018: Add SFP 1G and 2.5G Support
Only one SFP port can be enabled at time with
either SGMII or SGMII PLUS mode.

Mode shall be specified from dts for 1G or 2.5G
support respectively. Add below change to enable
SFP as this change is not mainlined.

gmac_cfg {
	gmac2_cfg {
		unit = <1>;
		base = <0x39D00000>;

-		phy_address = <0x1c>;
-		napa_gpio = <39>;
		/*
		 * 6 - SGMII_PLUS (2.5G),
		 * 8 - SGMII_FIBER (1G)
		 */
+               switch_mac_mode = <8>;
+               sfp_tx_gpio = <27>;
+               sfp_rx_gpio = <29>;
	};
};

Change-Id: I507be2b84b1f932802659abffa3288e304e0d411
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-07 18:26:58 -08:00
Linux Build Service Account
d4fab50cef Merge "arm: qca: Add support to set CRASHDUMP RESET bit" 2022-11-06 21:17:01 -08:00
Gurumoorthy Santhakumar
ba25e2c425 board: arm: ipq5332: Modified ethernet clock
removed GCC_PCNOC_BFDCD_CFG_RCGR register config

Change-Id: I76cd0e9cb96215e4ee432fff7ccb58dd9f290c8f
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-07 10:14:29 +05:30
Gurumoorthy Santhakumar
b19f9122b6 board: arm: ipq5332: Modified PCIE and USB0 clock
updated following registers
GCC_PCIE_AUX_CFG_RCGR
GCC_PCIE3X2_AXI_M_CFG_RCGR
GCC_USB0_AUX_CFG_RCGR

Change-Id: Iddff13b1d4be8494142667ba758fda15d9ba9858
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-07 10:08:07 +05:30
Linux Build Service Account
1a3c71242b Merge "board: qca: arm: Removal of the dumpinfo_s structure" 2022-11-04 13:33:58 -07:00
Linux Build Service Account
2cc0af4c3e Merge "pci: ipq9574: Add new command to list the qcn9224 fuses" 2022-11-04 13:33:57 -07:00
devi priya
9184c7a019 board: qca: arm: Removal of the dumpinfo_s structure
This patch removes the support for dumpinfo_s structure to have
uniform EBICS0 bin for both sec and non-sec boots as the Read As Zero
(RAZ) flag has been enabled to protect code and data regions of TZ

The patchset applies to all the targets except IPQ5018 as the RAZ
flag enablement was not supported in IPQ5018

Change-Id: I63514284448de08926cd2c9b741f02859067044d
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-11-03 23:17:17 -07:00
Praveenkumar I
2cc20dc1c6 pci: ipq9574: Add new command to list the qcn9224 fuses
"list_qcn9224_fuse" command will print the OEM ID, Secure boot enable
and OEM PK hash details of QCN9224 from all attached PCIe slots.

Change-Id: I87be2f58bcef6898a00f4e179c87f2dcb93a2604
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-11-04 11:35:15 +05:30
Gurumoorthy Santhakumar
0d9961e519 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set before reset from u-boot in the
crashdump collection path for TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ib623bfeab15d1bc230f4a8824218f1a3c4368fbb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-04 10:38:00 +05:30
Rajkumar Ayyasamy
11a742f785 ipq5018: bt: Toggle ECO bit in start/stop sequence
Add support for ECO bit toggle during IPC start/stop
messages to allow BT subsystem to do self reset

Change-Id: I4d1d31a43ea8a002eb91cc42300677339c117d71
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-10-30 22:52:19 -07:00
Linux Build Service Account
308f007e14 Merge "arm: dts: ipq5332: Add build support for DB boards" 2022-10-29 03:57:48 -07:00
Timple Raj M
7fb117c8b3 arm: dts: ipq5332: Add build support for DB boards
Add build support for DB-MI01.1 and DB-MI02.1

Change-Id: I00a2698924813e52d196469630e271b0c3009aec
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-28 19:11:10 +05:30
Timple Raj M
c7b972e06b arm: dts: Update the GPIO Configuration
GPIO_PULL details updated on AP-MI01.1, AP-MI01.2, AP-MI01.4,
DB-MI01.1 and DB-MI02.1

SPI NOR added only in MI01.1 and removed from other RDP's

Renamed DB-MI01.2 to DB-MI01.1

Change-Id: Ic2c3467aa06d04dd5e759767a806b4905b0d118a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-28 19:09:30 +05:30
Linux Build Service Account
36c1628ca2 Merge "arm: dts: ipq5332: update ethernet config" 2022-10-28 06:38:39 -07:00
Timple Raj M
b4e6e2971d arm: dts: rename db-mi01.2 to db-mi01.1
Change-Id: Ifbb828c971b7947f78fc940817f4bd8fa669949b
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-28 19:06:26 +05:30
Vandhiadevan Karunamoorthy
9ec1f908bc arm: dts: ipq5332: update ethernet config
Change-Id: Id790f4f97d865bc73b97f2ab5069cada4148cf04
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-27 12:03:30 +05:30
Vandhiadevan Karunamoorthy
bc5f3cca5a board: arm: ipq5332: update ethernet configuration
Change-Id: If66707a68ddf5681016acd95332d4056b31fb3fc
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-25 23:38:48 -07:00
Vandhiadevan Karunamoorthy
e3b2150af9 board: arm: ipq5332: update ethernet clock config
Change-Id: I3354354c7cffcb3107293efc54834c5d87556518
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-25 23:38:31 -07:00
Timple Raj M
390ce51a5e arm: dts: ipq5332: Added spi and i2c gpio's in emulation dts
Change-Id: I9e2eff00b20152188acbe335120e5415b460ccad
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-21 07:13:19 -07:00
Linux Build Service Account
942cca269f Merge "board: arm: ipq5332: update eMMC clock sequence" 2022-10-21 00:31:50 -07:00