Commit graph

2843 commits

Author SHA1 Message Date
Gurumoorthy Santhakumar
cf2f0c3a97 ipqsoc: Skip reset in crash dump path.
Skip reset in crash dump path which give access to user
to perform secure authentication.

in crash path,
	bootipq cmd only authenticate kernel/rootfs.
	booting to kernel is restircted.

Enable CONFIG_SKIP_RESET to skip reset in crashdump path.

Change-Id: I28fdd4dc6475d4d26b20a87aa039cef165db1375
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-03-18 12:37:20 +05:30
Timple Raj M
2bb41b0559 board: qca: arm: common: cmd_bootqca: Update config_selection sequence
Instead of updating the config_names in fdt_blob,
the config_names are maintained locally this avoids
the fdt_blob resizing

Change-Id: Ib1d6fecd973394363012564a8fc9e84d36fc7462
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-03-07 12:32:38 +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
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
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
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
Linux Build Service Account
b3b09c8a1f Merge "arm: dts: Add MI01.7 (RDP473) dts support" 2023-10-18 21:39:20 -07:00
Saahil Tomar
a53e856d8d arm: dts: Add MI01.7 (RDP473) dts support
RDP473 IPQ5332 + QCN6432 + QCN6432 + QCN9160 (2+2+2+Y)

Change-Id: I321dfecf50bb21835e2e3ed967400d0e29386c06
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-10-13 02:01:54 -07:00
Linux Build Service Account
d76daa7b87 Merge "arm: dts: Add MI01.2-C2 dts support" 2023-09-27 18:09:24 -07:00
Linux Build Service Account
2ad630d543 Merge "ipq9574: Add support for AL02-C20" 2023-09-27 11:10:17 -07:00
Saahil Tomar
34c2bbf2d8 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: I2075b3a4f09e510bbc5f188209435b97b06e5ba7
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-09-26 02:41:25 -07:00
Hariharan K
39bc05eace 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: I87e3b954d1ea9f38b24504f5b5754f9fef38df83
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-09-23 18:50:49 +05:30
Linux Build Service Account
7998e7fb24 Merge "arm: dts: Rename RDP479 to MI01.12 & RDP481 to MI01.14" 2023-09-21 22:39:59 -07:00
Saahil Tomar
2229c3c63c arm: dts: Rename RDP479 to MI01.12 & RDP481 to MI01.14
This change renames all the affect files from rdp479/rdp481 to
mi01.12/mi01.14 respectively

Change-Id: Ia06a17b9c34bf7e49fe43721db1e83bd4f5a7e3e
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-09-21 11:34:08 +05:30
Linux Build Service Account
f749e8418c Merge "Revert "armv7: qca: common: smem: skip printing the partition info if it exceeds flash size"" 2023-09-19 04:11:45 -07:00
Sridharan S N
314971f0b9 Revert "armv7: qca: common: smem: skip printing the partition info if it exceeds flash size"
This reverts commit c7c20989ab.

Change-Id: Idc9e56ee2f8eaa65cb2939f05b2cba73f13e65ff
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-09-15 21:09:41 +05:30
Gokul Sriram Palanisamy
20dd081414 ipq5332: TINY NOR: disable RAMDISK support
Change-Id: Ib600026b1b5e05e1b3a8c1879e61ea24c5557db2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:48:12 -07:00
Gokul Sriram Palanisamy
dc54ad636c ipq5332: TINY NOR: disable exectzt, jump_kernel_64
Disable tzapp and 64-bit kernel support.

Change-Id: I13046276f266a24f4a05c6f39bccc7c2e5a898e2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:47:11 -07:00
Ram Kumar D
20278977d9 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>
2023-09-08 16:36:42 +05:30
Saahil Tomar
4a573f00ff arm: dts: Add RDP479 & RDP481 dts support
RDP479 IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-6G
	PCIe1 QCN9224-5G

RDP481 IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-5G
	PCIe1 QCN9224-6G

Change-Id: I5d2e6c123ff8488c560f471789a13a49adfb4a5d
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-08-31 11:16:54 +05:30
Sridharan S N
c7c20989ab armv7: qca: common: smem: skip printing the partition info if it exceeds flash size
skip printing the partition info in smem if it exceeds flash size

Change-Id: Icb13b8d8f0f25f7817dfce2ee42d327081cbbfa6
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-08-16 04:50:56 -07:00
Saahil Tomar
1acea54708 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-07-24 03:06:22 -07:00
Timple Raj M
69c7dd479f board: qca: arm: ipq5332: Add AP-MI01.3-C2 RDP Support
Change-Id: Ia9a177009701e83bec37cb539a014cb973d5c47d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-07-10 16:20:20 +05:30
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
dfb81a053e Merge "qca : Read the TME-l OEM fuse parameters from qfprom core address" 2023-05-25 02:15:07 -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
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
Linux Build Service Account
aaa3325003 Merge "ipq5332: update kernel and roots info" 2023-01-24 11:58:16 -08:00
Timple Raj M
781bc31f61 ipq5332: update kernel and roots info
After mibib reload kernel and rootfs info have to be reloaded using
get_kernel_fs_part_details function otherwise partitions
will be marked as bad offset

Change-Id: I9a0ec847b65ff10ec7b54b65929efd034a25d278
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-24 10:11:21 +05:30
Saahil Tomar
664fabb120 ipq: crashdump: Support for prefix while storing crashdump
With this change, Add option to support
prefixing crash dump files with timestamp prefix

Change-Id: I30343e6d7dc58376264dd34a4a3cd25bb34e65c6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-01-18 16:16:49 +05:30
Timple Raj M
a7dcdb2f7c board: qca: arm: ipq5332: Enable gcc_blsp1_ahb_clk
When xbl logs are disabled no logs came in uart console
due to gcc_blsp1_ahb_clk in disabled state.
This patch enables gcc_blsp1_ahb_clk in u-boot to avoid this issue.

Change-Id: I161b003096544e54d3d230027c2665e8fa3d0f5e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-26 16:16:05 +05:30
Saahil Tomar
8f84d51777 arm64: dts: ipq9574: Add AL02-C9 dts file
This change creates Al02-c9 dts file to help with pci enumeration

Change-Id: I9a743de8ebbdc3f4ee43c14204ab1244e8945a12
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-12-16 11:09:59 +05:30
Vandhiadevan Karunamoorthy
7d48be48a1 board: ipq5332: Update AQ ethernet config
This changes include, update reset sequence
increase heap region, add mdio RW version
for 3.15M Clk

Change-Id: I85ec0632ced1543aa1cca880fd00e47800ddecfd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-30 05:56:10 -08:00
Linux Build Service Account
6c139c94d7 Merge "ipq5332: Update reset seq & MDIO clk for MHT" 2022-11-26 07:01:38 -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
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
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
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
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
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
298a2f5e2e Merge "drivers: net: ipq5018: Add SFP 1G and 2.5G Support" 2022-11-08 04:39:37 -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
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
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
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
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
Vandhiadevan Karunamoorthy
c0acbfa54a board: arm: ipq5332: update eMMC clock sequence
Change-Id: Icadbf580d71cf672ff78961ed12a53c9e0bccf4f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-19 05:10:42 -07:00
Timple Raj M
95e16ef259 ipq5332: replace soc name from devsoc to ipq5332 in all file contents
Change-Id: Id5dd98e749bfd229e2c6e9d1944db397d2380cb1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-12 22:31:53 -07:00
Timple Raj M
b12ecdc358 ipq5332: rename files from devsoc to ipq5332
Change-Id: I2a45b4017f98e725b6432e954040c154a39db663
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-12 22:31:40 -07:00
Vandhiadevan Karunamoorthy
d40d98ed31 board: qca: common: Add cmd_dpr support
This change adds cmd_dpr as a common file,
so it will be reused in the future SoC.

dpr support added in Devsoc SoC.

Change-Id: I246a8f51c07c2f6952173bbd72e327ab1119af6e
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-09-27 20:27:06 -07:00