[PATCH 0/2] indirect write time out related changes

2024-11-07 Thread Prasad Kummari
Need to rebase top of this commit: Link: https://lore.kernel.org/r/b3b678603f76b9f6490c0a46ed0cec06652d1aa5.1701853668.git.tejas.arvind.bhum...@amd.com Prasad Kummari (1): spi: cadence_qspi: Fix Versal NET ospi indirect write timed out issue Tejas Bhumkar (1): spi: cadence_qspi: Fix versal

[PATCH 2/2] spi: cadence_qspi: Fix Versal NET ospi indirect write timed out issue

2024-11-07 Thread Prasad Kummari
rs. To resolve these timeouts, the timeout value has been increased to 500ms, taking reference from the Linux implementation. Signed-off-by: Prasad Kummari --- drivers/spi/cadence_qspi_apb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/cadence_qspi

[PATCH 1/2] spi: cadence_qspi: Fix versal ospi indirect write timed out issue

2024-11-07 Thread Prasad Kummari
From: Tejas Bhumkar To reduce the CPU load in waiting for the OSPI internal SRAM to clear in indirect mode, it's better to use the CQSPI_REG_IRQSTATUS register to check for indirect operation to complete. Enabled interrupt for Indirect Complete and Transfer Watermark Breach interrupt status regis

[PATCH] cadence_qspi: fix odd byte read issue in STIG mode

2024-11-04 Thread Prasad Kummari
, resulting in incorrect data being read. To resolve this issue, when using STIG transactions, the corresponding supplementary byte of any STIG opcode must be defined in the Opcode Extension Register (Lower). Signed-off-by: Prasad Kummari --- drivers/spi/cadence_ospi_versal.c | 12 +++- drivers

[PATCH] mtd: spi-nor: Store stacked memories sizes in parameter array

2024-10-28 Thread Prasad Kummari
://lore.kernel.org/u-boot/20241018082644.22495-1-venkatesh.abbar...@amd.com/T/#u Signed-off-by: Prasad Kummari --- drivers/mtd/spi/spi-nor-core.c | 47 ++ include/linux/mtd/spi-nor.h| 3 +++ 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/spi

[PATCH v4] cmd: sf: prevent overwriting the reserved memory

2024-09-13 Thread Prasad Kummari
. Similar checks are used in TFTP, serial load, and boot code to prevent overwriting reserved memory. Signed-off-by: Prasad Kummari --- Changes in V4: - Removed do_spi_read_lmb_check(). - Added the lmb_read_check() function in lmb.c, making it reusable for NAND, MMC, etc. - Addressed review

[PATCH v3] cmd: sf: prevent overwriting the reserved memory

2024-09-10 Thread Prasad Kummari
. Similar checks are used in TFTP, serial load, and boot code to prevent overwriting reserved memory. Signed-off-by: Prasad Kummari --- Changes in V3: - Removed lmb_init_and_reserve() as part of latest LMB series. - Error message moved to one place. - lmb_alloc_addr() is not required because the

[PATCH v2] cmd: sf: prevent overwriting the reserved memory

2024-09-09 Thread Prasad Kummari
. Similar checks are used in TFTP, serial load, and boot code to prevent overwriting reserved memory. Signed-off-by: Prasad Kummari --- Changes in V2: - Rebased the code changes on top of the next branch. UT: Tested on Versal NET board Versal NET> sf read 0xf00 0x0 0x

[PATCH v2 2/2] arm64: zynqmp: Remove overlays and add new dtb entries for ZynqMP

2024-09-06 Thread Prasad Kummari
Remove device tree overlay (DTBO) entries for the ZynqMP target from the Makefile. Add new device tree binaries (DTBs) for the zynqmp-sm-k24-revA and zynqmp-smk-k24-revA configurations. Signed-off-by: Michal Simek Signed-off-by: Prasad Kummari --- arch/arm/dts/Makefile | 21

[PATCH v2 1/2] kbuild: cherry-pick kbuild fdtoverlay changes from linux

2024-09-06 Thread Prasad Kummari
rule. This also automatically appends DTC_FLAGS_foo_base += -@ to all base files The platform's Makefile only needs to have this now: foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo dtb-y := foo.dtb Signed-off-by: Prasad Kummari --- arch/arm/dts/Make

[PATCH v2 0/2] fdtoverlay related changes

2024-09-06 Thread Prasad Kummari
Changes in v2: - Corrected commit description. Prasad Kummari (2): kbuild: cherry-pick kbuild fdtoverlay changes from linux arm64: zynqmp: Remove overlays and add new dtb entries for ZynqMP arch/arm/dts/Makefile | 78 +- scripts/Kbuild.include | 4

[PATCH] xilinx: versal-net: fix no previous prototype for function warning.

2024-09-05 Thread Prasad Kummari
Included the SPI header to resolve the no previous prototypes for function. Removed unused mode variable. sparse warnings warning: no previous prototype for 'spi_get_env_dev' [-Wmissing-prototypes] warning: variable 'mode' set but not used [-Wunused-but-set-variable] Signed-of

[PATCH 1/2] kbuild: Add generic rule to apply fdtoverlay

2024-09-03 Thread Prasad Kummari
/lore.kernel.org/all/20920b0df6b067aca4040459a9677d7d1d6d766a.1615354376.git.viresh.ku...@linaro.org/ Signed-off-by: Prasad Kummari --- arch/arm/dts/Makefile | 57 ++ scripts/Kbuild.include | 4 +++ scripts/Makefile.build | 1 + scripts

[PATCH 2/2] arm64: zynqmp: Remove overlays and add new dtb entries for ZynqMP

2024-09-03 Thread Prasad Kummari
Remove device tree overlay (DTBO) entries for the ZynqMP target from the Makefile. Add new device tree binaries (DTBs) for the zynqmp-sm-k24-revA and zynqmp-smk-k24-revA configurations. Signed-off-by: Michal Simek Signed-off-by: Prasad Kummari --- arch/arm/dts/Makefile | 21

[PATCH 0/2] fdtoverlay related changes

2024-09-03 Thread Prasad Kummari
Prasad Kummari (2): kbuild: Add generic rule to apply fdtoverlay arm64: zynqmp: Remove overlays and add new dtb entries for ZynqMP arch/arm/dts/Makefile | 78 +- scripts/Kbuild.include | 4 +++ scripts/Makefile.build | 1 + scripts/Makefile.lib

[PATCH] arm64: zynqmp: Add u-boot command to boot into recovery image

2024-08-27 Thread Prasad Kummari
mek Signed-off-by: Michal Simek Co-develop-by: Prasad Kummari Signed-off-by: Prasad Kummari --- arch/arm/mach-zynqmp/include/mach/hardware.h | 6 - arch/arm/mach-zynqmp/zynqmp.c| 26 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm/m

[PATCH] cmd: sf: prevent overwriting the reserved memory

2024-08-06 Thread Prasad Kummari
. Similar checks are used in TFTP, serial load, and boot code to prevent overwriting reserved memory. Signed-off-by: Prasad Kummari --- UT: Tested on Versal NET board Versal NET> sf read 0xf00 0x0 0x100 device 0 offset 0x0, size 0x

[PATCH v2] mtd: spi-nor: Disable chip erase for S28HS02GT flash

2024-07-30 Thread Prasad Kummari
From: Tejas Bhumkar Since the opcode SPINOR_OP_CHIP_ERASE (0xc7) is not supported for the S28HS02GT flash, the NO_CHIP_ERASE flag has been added to enable sector erase functionality instead. Signed-off-by: Tejas Bhumkar Signed-off-by: Prasad Kummari --- Changes in v2: - corrected commit

[PATCH 2/2] mtd: spi-nor: Disable chip erase for S28HS02GT flash

2024-07-30 Thread Prasad Kummari
From: Tejas Bhumkar Since the opcode SPINOR_OP_CHIP_ERASE (0xc7) is not supported for the S28HS02GT flash, the NO_CHIP_ERASE flag has been added to enable sector erase functionality instead. Signed-off-by: Tejas Bhumkar Signed-off-by: Prasad Kummari --- drivers/mtd/spi/spi-nor-ids.c | 2

[PATCH v2] amd: Enable the NFS command for Versal Gen 2

2024-07-11 Thread Prasad Kummari
Enabled the default utilization of the NFS command on Versal Gen 2 platform to facilitate booting images through the network using the NFS protocol Signed-off-by: Prasad Kummari --- Changes in v2: - corrected commit description. configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1

[PATCH] amd: Enable the NFS command for Versal2

2024-07-09 Thread Prasad Kummari
Enabled the default utilization of the NFS command on Versal2 platform to facilitate booting images through the network using the NFS protocol Signed-off-by: Prasad Kummari --- configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH] xilinx: Enable the NFS command for zynqmp_kria

2024-07-08 Thread Prasad Kummari
Enabled the default utilization of the NFS command on ZynqMP Kria platforms to facilitate booting images through the network using the NFS protocol. Signed-off-by: Prasad Kummari --- configs/xilinx_zynqmp_kria_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH] mtd: spi-nor: ids: Add IS25LP01GG flash support

2024-06-16 Thread Prasad Kummari
Add support for ISSI 128MB flash IS25LP01GG. This part supports 4byte opcodes. It also supports dual and quad read. Signed-off-by: Prasad Kummari --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c

[PATCH ] mtd: spi-nor: Add SPI_NOR_OCTAL_READ flag for mx66uw2g345gx0 flash part

2024-05-08 Thread Prasad Kummari
Added SPI_NOR_OCTAL_READ flag for Macronix mx66uw2g345gx0 2Gb(256MB) NOR Flash memory has been added. Initial testing was conducted on the Versal NET board using SDR mode, which included basic erase, write, and read-back operations. Signed-off-by: Prasad Kummari --- drivers/mtd/spi/spi-nor