Commit graph

37322 commits

Author SHA1 Message Date
Priyanka MA
95375f5fe9 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set in the crashdump collection path before reset
from u-boot for the  TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ic74cec02bf749925e599ee12205257480a234064
Signed-off-by: Priyanka MA <quic_priyma@quicnic.com>
2023-02-09 21:30:25 -08:00
Timple Raj M
448f8eeb38 board: qca: arm: ipq5332: Enable long cable support for USB SSD
Change-Id: I255d34f3b104b85e1180b2b46a7f86ddc32c253c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-08 15:04:25 +05:30
Nitheesh Sekar
113a960b50 ipq9574: Add 1 sec delay during SDX power cycle
Change-Id: I7b25b6e84b8cab6f402b0dfe126660b6fafae4c0
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2023-02-06 02:12:13 -08:00
Nitheesh Sekar
e520f6cd3a ipq9574: power cycle SDX during IPQ crash
This patch adds support to power cycle the SDX device during
the IPQ crash scenario by toggling the full_power_on and reset
gpios.

Change-Id: Ifac2db5480c13456ef50b6d779691c5bf41f21b2
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2023-02-04 04:43:11 -08:00
Timple Raj M
236b230dda arm: dts: Add AP-MI01.3 RDP support
IPQ5332-AP-MI01.3
	Flash: NOR and NAND / emmc (option)
	Features:
	1GB DDR4
	2 Lane PCIe Gen3 [pci1]
	1 USB 2.0

Change-Id: I5ba6318e7f84666510672b49a7c5fee80f47a929
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-03 14:37:40 +05:30
Philipp Skadorov
5593ba9b9f fat: fatwrite: fix the command for FAT12
The u-boot command fatwrite empties FAT clusters from the beginning
till the end of the file.
Specifically for FAT12 it fails to detect the end of the file and goes
beyond the file bounds thus corrupting the file system.

Additionally, FAT entry chaining-up into a file is not implemented
for FAT12.

The users normally workaround this by re-formatting the partition as
FAT16/FAT32, like here:
https://github.com/FEDEVEL/openrex-uboot-v2015.10/issues/1

The patch fixes the bounds of a file and FAT12 entries chaining into
a file, including EOF markup.

Signed-off-by: Philipp Skadorov <philipp.skadorov@savoirfairelinux.com>
(cherry picked from commit 49abbd9cc3)
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>

Change-Id: Ib9c75d4553ea576cbc592f3291cfdebc45b8376b
2023-01-29 21:18:01 -08:00
Linux Build Service Account
a04c25d601 Merge "pci: Add environment varibale to skip pci enumeration" 2023-01-28 10:23:30 -08:00
Amandeep Singh
19be16d2f7 pci: Add environment varibale to skip pci enumeration
Add skip_pci_mask environment variable to skip pci enumeration
based on the bitmask. Also, removing the pci3 dts entry from
the RDP437 & RDP461 to skip pci3 enumeration.

Example - setenv skip_pci_mask 0xc
The above command will skip pci enumeration of bus 2 & 3.

Change-Id: Iff50acca07ffc026bed84a0d2372e6de0a3ba3a9
Signed-off-by: Amandeep Singh <quic_amansing@quicinc.com>
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-01-27 12:42:32 +05:30
Saahil Tomar
98d032f124 ipq: fdt_fixup: Add condition for dload_dis check
This change adds an additional condition to check for empty string as
env variable

Change-Id: Ica847b7af6d28094df54677fa7423e606699f5fe
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-01-25 01:33:52 -08:00
Linux Build Service Account
aaa3325003 Merge "ipq5332: update kernel and roots info" 2023-01-24 11:58:16 -08:00
Linux Build Service Account
4c7768e2c9 Merge "pci: ipq9574: Update QCN9224 fuse read" 2023-01-23 23:01:21 -08:00
Linux Build Service Account
29d4e13d7f Merge "pack_v2: fix for emmc apps image" 2023-01-23 23:01:20 -08:00
Linux Build Service Account
c94d1ac518 Merge "ipq: crashdump: Support for prefix while storing crashdump" 2023-01-23 23:01:17 -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
Praveenkumar I
9006866f9f pci: ipq9574: Update QCN9224 fuse read
Added JTAG ID, Serial number and Part type read.

Change-Id: Ia03724116230a157fc33406a97c641e3b5750d6a
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-01-23 16:46:52 +05:30
Timple Raj M
6915087e2a pack_v2: fix for emmc apps image
This patch provides the fix for emmc apps image generation.
The partition variable value has to be marked as null
for the partitions to be skipped in apps image generation.

Change-Id: I0067c527f0de38eb513e27fadfeee2accb69f3d3
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-23 14:17:27 +05:30
Vandhiadevan Karunamoorthy
f3b375939f board: ipq5332: skip cap in & cap out in recovery
Change-Id: I91b7c5520a67ba7f5265d3a600452439682608b8
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-20 17:51:26 +05:30
Linux Build Service Account
519a9280be Merge "ipq9574: Drive PCIe GPIOs to Low in deinit" 2023-01-18 05:21:42 -08:00
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
429235530a ipq5332: Increase the file name size
This patch increases the filename size to avoid truncation while
running flash script in verbose mode

Change-Id: I245f4ee0ae83fc88de4833a178b1e1e96107f486
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-17 17:48:35 +05:30
Linux Build Service Account
bb1322745c Merge "ipq5332: Added support to apply caldata in u-boot" 2023-01-14 10:14:11 -08:00
Linux Build Service Account
fcba86d915 Merge "net: ipq5332: update sgmii+ mode for bypass port" 2023-01-13 09:59:26 -08:00
Linux Build Service Account
ed95202ae6 Merge "tools: pack_v2: ipq5332: Add NOR support for wifi_fw flash" 2023-01-13 02:20:39 -08:00
Gurumoorthy Santhakumar
092065500b ipq5332: Added support to apply caldata in u-boot
This change will read calibration data from the 0:ART partition and
apply it to the appropriate registers.

Change-Id: Ic9360c0fce229c1d1867ee897b811abc56d2b1c7
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-01-13 15:42:51 +05:30
Linux Build Service Account
4e15ee3aba Merge "arm: dts: ipq5332: Add DB-MI03.1 RDP support" 2023-01-12 04:25:36 -08:00
Vandhiadevan Karunamoorthy
6d133d5019 net: ipq5332: update sgmii+ mode for bypass port
This change configure sgmii+ mode if linkup at 2.5Gbps
speed.

Change-Id: I6570c9ee34cfb4d5d9208766135d429795beebaf
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-11 22:32:47 +05:30
Timple Raj M
e35288bf0a tools: pack_v2: ipq5332: Add NOR support for wifi_fw flash
This patch adds the additional conditional check to filter
out wififw images for nor flash type

Change-Id: Iba078721fbfc5ed4cd3bd74689e9ba6352a69130
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-11 01:24:17 -08:00
Praveenkumar I
de6ff2e382 ipq9574: Drive PCIe GPIOs to Low in deinit
Change-Id: I0a2d02f7cd712d3d52082903fd352708c58c6e88
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-01-09 18:56:48 +05:30
Vandhiadevan Karunamoorthy
7c9ba11aa9 net: ipq5332: update CONFIG_IPQ_NO_MACS to 2
Change-Id: Ibc4cd52a7c0d4aa0209f96b2500f66204395c743
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-09 16:54:32 +05:30
Timple Raj M
3bbc661430 arm: dts: ipq5332: Add DB-MI03.1 RDP support
IPQ5332-DB-MI03.1
	Flash: NOR and NAND / emmc (option)
	Features:
	1 Lane PCIe Gen3 [pci0]
	2 Lane PCIe Gen3 [pci1]
	1 USB 2.0

Change-Id: Iff6bd9cb0faa1d5c78c3468b80bc7b0dfe984e79
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-08 21:29:39 -08:00
Linux Build Service Account
5df9330702 Merge "ipq5332: net: qca8337: skip vlan configuration" 2023-01-06 08:47:32 -08:00
Vandhiadevan Karunamoorthy
50eabad97b ipq5332: net: qca8337: skip vlan configuration
Change-Id: I56c53b5b6370a3374089bfe997634936f9b4b277
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-06 02:12:46 -08:00
Timple Raj M
1eb894a506 configs: ipq5332: Enable CONFIG_FLASH_PROTECT
This config is needed to enable mmc protection
based on gpt readonly attribute.

Usecase:
1. In emmc partition xml, set readonly attribute
   of a partition to true.
2. Generate partition bin, flash and reboot.
3. From uboot, read & write the partition.
4. Write should not go through. Crc32 checksum of
   the content before & after write should match.

Change-Id: I161f594f13c88b6d22c4b4932399d18eeb951372
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-05 21:39:41 -08:00
quic_abilj
85a59b0e00 Miami - DPR scm call issue fix
> For Miami, passed both address and size as args in scm call.

Change-Id: Ie5d4ff5e6770eddcd566d99cc24efc322b0f2e37
Signed-off-by: quic_abilj <quic_abilj@quicinc.com>
2023-01-05 03:26:30 -08:00
Vandhiadevan Karunamoorthy
9f006f0905 board: ipq5332: Enable MI03.1 ethernet
Change-Id: Iaa9320daabfc290b7bf02b8ce303d0ff34a11407
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-04 09:30:15 +05:30
Linux Build Service Account
5287b8e49c Merge "board: qca: arm: ipq5332: Enable gcc_blsp1_ahb_clk" 2022-12-27 06:47:57 -08:00
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
Vandhiadevan Karunamoorthy
607861584c qca: arm: common: skip ethernet from bootipq
The main loop contains an eth init sequence,
to achieve this, remove the eth init sequence
from bootipq.avoid reinitialization.
Support for the IPQ5332 SoC has been added.

Change-Id: I18406dc90ba6845ce367215a55794ba5e400d5d3
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-12-23 01:08:40 -08:00
Linux Build Service Account
47e8f38182 Merge "arm: dts: ipq9574: update default boot type to emmc for AL02-C19" 2022-12-22 12:11:28 -08:00
Linux Build Service Account
90e69b819e Merge "arm: dts: ipq5322: Add RDP support for AP-MI03.1" 2022-12-22 05:48:09 -08:00
Linux Build Service Account
a3a6688e45 Merge "arm: dts: ipq5332: Enable I2C in DB-MI01.1" 2022-12-21 22:23:06 -08:00
Ram Kumar D
c91f00bb11 arm: dts: ipq9574: update default boot type to emmc for AL02-C19
Change-Id: I101c11ac036c46d13d84c054154f330520f9654d
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-12-20 20:56:16 -08:00
Gurumoorthy Santhakumar
1ee172f386 board & drivers: ipq5332: Improved TFTP performance
modified TDM registers and
added reset for following
 NSS_CC_PPE_BCR
 GCC_UNIPHY0_BCR
 GCC_UNIPHY1_BCR

Change-Id: I5fb8c6dfc4f54346f9e12251dfe3028327d43e3b
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-12-20 01:13:22 -08:00
Timple Raj M
195680bd27 arm: dts: ipq5332: Enable I2C in DB-MI01.1
This patch enables I2C in DB-MI01.1 RDP

Change-Id: If60fa5583233ea76a0143eb53326f243b8abac39
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-20 12:22:24 +05:30
Timple Raj M
c1b7c79e86 arm: dts: ipq5322: Add RDP support for AP-MI03.1
IPQ5332-AP-MI03.1
	RAM: 256MB DDR3

Change-Id: I98d84568ac534229ee7df2b3c82f32ea18d1bc8c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-19 13:31:19 +05:30
Linux Build Service Account
16c96a1b86 Merge "arm64: dts: ipq9574: Add AL02-C9 dts file" 2022-12-16 22:21:24 -08:00
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
Gurumoorthy Santhakumar
0f241074bd driver: nand: fix the block size of GD5F1GQ5REYIG
It has the capacity of 1Gbit, i.e., 128MB, so
the number of blocks has been updated to 1024.
1Gbits = 128MB = 2048(page) * 64 (pages per block) * 1024 (blocks)

Change-Id: I552776e4e151d16782db915c3ebae874c5c02696
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-12-14 21:40:26 -08:00
Linux Build Service Account
d6cd789358 Merge "ipq5332: Add the SMEM_BOOT_NO_FLASH condition for emmc flash type" 2022-12-14 06:34:33 -08:00
Timple Raj M
145b49c759 pack_v2: update the mibib_reload sequence
This patch update the mibib_reload sequence by checking 0:MIBIB in
all partitions info instead of using a specific partition index
and this change has some code cleanup

Change-Id: I09b3be3be7a5bfae7dc5ddc5c2ae54f6b06a7333
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-13 03:23:11 -08:00