[PATCH v2] hw/riscv: Add Microblaze V 32bit virt board

2024-10-17 Thread Sai Pavan Boddu
00) 2 - i2c (0x4080) 3 - qspi (0x44a0) 4 - uart16550 (0x44a1) 5 - emaclite (0x40e0) 6 - timer2 (0x41c1) 7 - axi emac (0x40c0) 8 - axi dma (0x41e0) 9 - axi dma 10 - gpio (0x4000) 11 - gpio2 (0x4001) 12 - gpio3 (0x4002) Signed-off-by: Sai Pavan Boddu Signed-o

[PATCH] hw/riscv: Add Microblaze V 32bit virt board

2024-10-15 Thread Sai Pavan Boddu
00) 2 - i2c (0x4080) 3 - qspi (0x44a0) 4 - uart16550 (0x44a1) 5 - emaclite (0x40e0) 6 - timer2 (0x41c1) 7 - axi emac (0x40c0) 8 - axi dma (0x41e0) 9 - axi dma 10 - gpio (0x4000) 11 - gpio2 (0x4001) 12 - gpio3 (0x4002) Signed-off-by: Sai Pavan Boddu Signed-o

[PATCH] hw/net: Extend ethernetlite driver with PHY layer

2024-10-15 Thread Sai Pavan Boddu
From: Michal Simek Add missing optional MDIO lines. Without it U-Boot is not working. Signed-off-by: Edgar E. Iglesias Signed-off-by: Michal Simek --- hw/net/xilinx_ethlite.c | 240 1 file changed, 240 insertions(+) diff --git a/hw/net/xilinx_ethlite.

[PATCH v4 3/3] docs/system/arm: Add a doc for zynq board

2024-06-21 Thread Sai Pavan Boddu
Added the supported device list and an example command. Signed-off-by: Sai Pavan Boddu Reviewed-by: Edgar E. Iglesias Reviewed-by: Francisco Iglesias --- MAINTAINERS | 1 + docs/system/arm/xlnx-zynq.rst | 47 +++ docs/system/target-arm.rst

[PATCH v4 1/3] hw/misc/zynq_slcr: Add boot-mode property

2024-06-21 Thread Sai Pavan Boddu
boot-mode property sets user values into BOOT_MODE register, on hardware these are derived from board switches. Signed-off-by: Sai Pavan Boddu Reviewed-by: Edgar E. Iglesias Reviewed-by: Francisco Iglesias --- hw/misc/zynq_slcr.c | 22 +- 1 file changed, 21 insertions

[PATCH v4 2/3] hw/arm/xilinx_zynq: Add boot-mode property

2024-06-21 Thread Sai Pavan Boddu
Read boot-mode value as machine property and propagate that to SLCR.BOOT_MODE register. Signed-off-by: Sai Pavan Boddu Acked-by: Edgar E. Iglesias Reviewed-by: Francisco Iglesias --- hw/arm/xilinx_zynq.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/hw

[PATCH v4 0/3] Add boot-mode property for zynq

2024-06-21 Thread Sai Pavan Boddu
doc, fixed commit message to mention right property name. Changes for V4: Use strncasecmp, Fix boot mode names to use small case in few other places, Fix code indentation. Sai Pavan Boddu (3): hw/misc/zynq_slcr: Add boot-mode property hw/arm/xilinx_zynq: Add boot-mode property

[PATCH v3 1/3] hw/misc/zynq_slcr: Add boot-mode property

2024-06-20 Thread Sai Pavan Boddu
boot-mode property sets user values into BOOT_MODE register, on hardware these are derived from board switches. Signed-off-by: Sai Pavan Boddu Reviewed-by: Edgar E. Iglesias --- hw/misc/zynq_slcr.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/hw

[PATCH v3 3/3] docs/system/arm: Add a doc for zynq board

2024-06-20 Thread Sai Pavan Boddu
Added the supported device list and an example command. Signed-off-by: Sai Pavan Boddu Reviewed-by: Edgar E. Iglesias --- MAINTAINERS | 1 + docs/system/arm/xlnx-zynq.rst | 47 +++ docs/system/target-arm.rst| 1 + 3 files changed, 49

[PATCH v3 2/3] hw/arm/xilinx_zynq: Add boot-mode property

2024-06-20 Thread Sai Pavan Boddu
Read boot-mode value as machine property and propagate that to SLCR.BOOT_MODE register. Signed-off-by: Sai Pavan Boddu Acked-by: Edgar E. Iglesias --- hw/arm/xilinx_zynq.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/hw/arm/xilinx_zynq.c b/hw/arm

[PATCH v3 0/3] Add boot-mode property for zynq

2024-06-20 Thread Sai Pavan Boddu
doc fixed commit message to mention right property name. Sai Pavan Boddu (3): hw/misc/zynq_slcr: Add boot-mode property hw/arm/xilinx_zynq: Add boot-mode property docs/system/arm: Add a doc for zynq board MAINTAINERS | 1 + docs/system/arm/xlnx-zynq.rst | 47

[PATCH v2 0/3] Add boot-mode property for zynq

2024-06-19 Thread Sai Pavan Boddu
Add a way to update the boot-mode via machine properties. Changes for V2: Make boot-mode property work with string Fixed few code style issues Added zynq board doc. Sai Pavan Boddu (3): hw/misc/zynq_slcr: Add BootMode property hw/arm/xilinx_zynq: Add boot-mode property docs

[PATCH v2 2/3] hw/arm/xilinx_zynq: Add boot-mode property

2024-06-19 Thread Sai Pavan Boddu
Read boot-mode value as machine property and propagate that to SLCR.BOOT_MODE register. Signed-off-by: Sai Pavan Boddu --- hw/arm/xilinx_zynq.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c index 7f7a3d23fbe

[PATCH v2 3/3] docs/system/arm: Add a doc for zynq board

2024-06-19 Thread Sai Pavan Boddu
Added the supported device list and an example command. Signed-off-by: Sai Pavan Boddu --- docs/system/arm/xlnx-zynq.rst | 47 +++ docs/system/target-arm.rst| 1 + 2 files changed, 48 insertions(+) create mode 100644 docs/system/arm/xlnx-zynq.rst diff

[PATCH v2 1/3] hw/misc/zynq_slcr: Add BootMode property

2024-06-19 Thread Sai Pavan Boddu
BootMode property sets user values into BOOT_MODE register, on hardware these are derived from board switches. Signed-off-by: Sai Pavan Boddu --- hw/misc/zynq_slcr.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/hw/misc/zynq_slcr.c b/hw/misc

[PATCH RFC 1/3] target/arm: Add dcc uart support

2024-06-14 Thread Sai Pavan Boddu
DCC is a debug port to transfer some data between debugger and processor, we are using this feature to connect a chardev device. Chardev frontends should be named as "dcc" inorder to connect to this interface. Signed-off-by: Sai Pavan Boddu --- target/arm/cpu.h | 11 +

[PATCH RFC 2/3] target/arm: Enable dcc console for a53 and R5

2024-06-14 Thread Sai Pavan Boddu
This enabled DCC support. Signed-off-by: Sai Pavan Boddu --- target/arm/cpu64.c | 1 + target/arm/tcg/cpu32.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 262a1d6c0b..e39740303b 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c

[PATCH RFC 3/3] target/arm/debug_helper: Add fieldoffset for MDCCSR_EL0 reg

2024-06-14 Thread Sai Pavan Boddu
MDCCSR_EL0 is aarch64 varient of DBGDSCRint, so utilize the same cpreg offset. Signed-off-by: Sai Pavan Boddu --- target/arm/debug_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/debug_helper.c b/target/arm/debug_helper.c index 7d856acddf..5deafa4d1f

[PATCH RFC 0/3] Add DCC uart console support

2024-06-14 Thread Sai Pavan Boddu
aarch64 -M xlnx-zcu102 -kernel u-boot-dtb.bin -dtb zynqmp-zcu102-rev1.1.d -display none -m 2G -chardev stdio,id=dcc0 Sai Pavan Boddu (3): target/arm: Add dcc uart support target/arm: Enable dcc console for a53 and R5 target/arm/debug_helper: Add fieldoffset for MDCCSR_EL0 reg

[PATCH 2/2] hw/arm/xilinx_zynq: Add boot-mode property

2024-06-13 Thread Sai Pavan Boddu
Read boot-mode value as machine property and propagate that to SLCR.BOOT_MODE register. Signed-off-by: Sai Pavan Boddu --- hw/arm/xilinx_zynq.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c index 7f7a3d23fb..4dfa9184ac

[PATCH 0/2] Add boot-mode property for zynq

2024-06-13 Thread Sai Pavan Boddu
Add a way to update the boot-mode via machine properties. Sai Pavan Boddu (2): hw/misc/zynq_slcr: Add BootMode property hw/arm/xilinx_zynq: Add boot-mode property hw/arm/xilinx_zynq.c | 22 ++ hw/misc/zynq_slcr.c | 11 ++- 2 files changed, 32 insertions(+), 1

[PATCH 1/2] hw/misc/zynq_slcr: Add BootMode property

2024-06-13 Thread Sai Pavan Boddu
BootMode property sets user values into BOOT_MODE register, on hardware these are derived from board switches. Signed-off-by: Sai Pavan Boddu --- hw/misc/zynq_slcr.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/misc/zynq_slcr.c b/hw/misc/zynq_slcr.c index

[PATCH v2 0/2] OSPI updates

2024-02-20 Thread Sai Pavan Boddu
Add a new 2Gib octal flash mt35xu02gbba. Add an interface for versal virt board to swap the default flash. Changes for V2: Added type checks for provided flash part name. Sai Pavan Boddu (2): block: m25p80: Add support of mt35xu02gbba arm: xlnx-versal-virt: Add machine property ospi-flash

[PATCH v2 2/2] arm: xlnx-versal-virt: Add machine property ospi-flash

2024-02-20 Thread Sai Pavan Boddu
This property allows users to change flash model on command line as below. ex: "-M xlnx-versal-virt,ospi-flash=mt35xu02gbba" Signed-off-by: Sai Pavan Boddu --- hw/arm/xlnx-versal-virt.c | 44 ++- 1 file changed, 43 insertions(+), 1 deletion(-)

[PATCH v2 1/2] block: m25p80: Add support of mt35xu02gbba

2024-02-20 Thread Sai Pavan Boddu
Add Micro 2Gb OSPI flash part with sfdp data. Signed-off-by: Sai Pavan Boddu Reviewed-by: Francisco Iglesias --- hw/block/m25p80_sfdp.h | 1 + hw/block/m25p80.c | 3 +++ hw/block/m25p80_sfdp.c | 36 3 files changed, 40 insertions(+) diff --git a/hw

[PATCH v2] xlnx-versal-ospi: disable reentrancy detection for iomem_dac

2024-02-19 Thread Sai Pavan Boddu
The OSPI DMA reads flash data through the OSPI linear address space (the iomem_dac region), because of this the reentrancy guard introduced in commit a2e1753b ("memory: prevent dma-reentracy issues") is disabled for the memory region. Signed-off-by: Sai Pavan Boddu --- Chan

[PATCH 1/1] xlnx-versal-ospi: disable reentrancy detection for iomem_dac

2023-12-05 Thread Sai Pavan Boddu
The OSPI DMA reads flash data through the OSPI linear address space (the iomem_dac region), because of this the reentrancy guard introduced in commit a2e1753b ("memory: prevent dma-reentracy issues") is disabled for the memory region. Signed-off-by: Sai Pavan Boddu --- hw/ssi/xlnx-ver

[PATCH 0/1] versal-ospi fix

2023-12-05 Thread Sai Pavan Boddu
Disable reentrancy on iomem_dac memory-region. Sai Pavan Boddu (1): xlnx-versal-ospi: disable reentrancy detection for iomem_dac hw/ssi/xlnx-versal-ospi.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1

[PATCH 0/1] versal-ospi fix

2023-12-05 Thread Sai Pavan Boddu
Disable reentrancy on iomem_dac memory-region. Sai Pavan Boddu (1): xlnx-versal-ospi: disable reentrancy detection for iomem_dac hw/ssi/xlnx-versal-ospi.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1

[PATCH 1/2] block: m25p80: Add support of mt35xu02gbba

2023-12-05 Thread Sai Pavan Boddu
Add Micro 2Gb OSPI flash part with sfdp data. Signed-off-by: Sai Pavan Boddu --- hw/block/m25p80_sfdp.h | 1 + hw/block/m25p80.c | 3 +++ hw/block/m25p80_sfdp.c | 36 3 files changed, 40 insertions(+) diff --git a/hw/block/m25p80_sfdp.h b/hw/block

[PATCH 2/2] arm: xlnx-versal-virt: Add machine property ospi-flash

2023-12-05 Thread Sai Pavan Boddu
This property allows users to change flash model on command line as below. ex: "-M xlnx-versal-virt,ospi-flash=mt35xu02gbba" Signed-off-by: Sai Pavan Boddu --- hw/arm/xlnx-versal-virt.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff

[PATCH 0/2] OSPI updates

2023-12-05 Thread Sai Pavan Boddu
Add a new 2Gib octal flash mt35xu02gbba. Add an interface for versal virt board to swap the default flash. Sai Pavan Boddu (2): block: m25p80: Add support of mt35xu02gbba arm: xlnx-versal-virt: Add machine property ospi-flash hw/block/m25p80_sfdp.h| 1 + hw/arm/xlnx-versal-virt.c | 31

[PATCH 1/1] xlnx-versal-ospi: disable reentrancy detection for iomem_dac

2023-12-05 Thread Sai Pavan Boddu
The OSPI DMA reads flash data through the OSPI linear address space (the iomem_dac region), because of this the reentrancy guard introduced in commit a2e1753b ("memory: prevent dma-reentracy issues") is disabled for the memory region. Signed-off-by: Sai Pavan Boddu --- hw/ssi/xlnx-ver

RE: [PATCH v3 02/21] sd: emmc: Add support for eMMC cards

2021-03-02 Thread Sai Pavan Boddu
Hi Cedric, > -Original Message- > From: Cédric Le Goater > Sent: Monday, March 1, 2021 4:32 PM > To: Sai Pavan Boddu ; Markus Armbruster > ; Kevin Wolf ; Max Reitz > ; Vladimir Sementsov-Ogievskiy > ; Eric Blake ; Joel Stanley > ; Vincent Palatin ; Dr. David Alan

RE: [PATCH v3 12/21] sd: emmc: add CMD21 tuning sequence

2021-03-02 Thread Sai Pavan Boddu
Hi David, > -Original Message- > From: Dr. David Alan Gilbert > Sent: Monday, March 1, 2021 4:12 PM > To: Sai Pavan Boddu > Cc: Markus Armbruster ; Kevin Wolf > ; Max Reitz ; Vladimir Sementsov- > Ogievskiy ; Eric Blake ; > Joel Stanley ; Cédric Le Goater ; Vi

[PATCH v3 18/21] sd: sdhci: Support eMMC devices

2021-02-28 Thread Sai Pavan Boddu
Embedded device slots should be allowed as support of eMMC is available. Signed-off-by: Sai Pavan Boddu --- hw/sd/sdhci.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 8ffa539..771212a 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -99,10 +99,6

[PATCH v3 16/21] sd: emmc: Support boot area in emmc image

2021-02-28 Thread Sai Pavan Boddu
ete, Fix commit message to be generic.] Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 40 1 file changed, 40 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 08b77ad..d311477 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1044,6 +1044,34 @@ static v

[PATCH v3 14/21] sd: emmc: Add support for emmc erase

2021-02-28 Thread Sai Pavan Boddu
Add CMD35 and CMD36 which sets the erase start and end. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 09c1222..bba0446 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1552,6

[PATCH v3 05/21] sd: emmc: Add support for EXT_CSD & CSD for eMMC

2021-02-28 Thread Sai Pavan Boddu
From: Vincent Palatin eMMC CSD is similar to SD with an option to refer EXT_CSD for larger devices. Signed-off-by: Vincent Palatin [clg: Add user friendly macros for EXT_CSD register] Signed-off-by: Cédric Le Goater [spb: updated commit message] Signed-off-by: Sai Pavan Boddu --- hw/sd

[PATCH v3 17/21] sd: emmc: Subtract bootarea size from blk

2021-02-28 Thread Sai Pavan Boddu
From: Joel Stanley The userdata size is derived from the file the user passes on the command line, but we must take into account the boot areas. Signed-off-by: Joel Stanley Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/sd/sd.c b/hw/

[PATCH v3 04/21] sd: emmc: update OCR fields for eMMC

2021-02-28 Thread Sai Pavan Boddu
From: Vincent Palatin eMMC OCR register doesn't has UHS-II field and voltage fields are different. Signed-off-by: Vincent Palatin Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/hw/sd/sd.c b/

[PATCH v3 19/21] arm: xlnx-versal: Add emmc to versal

2021-02-28 Thread Sai Pavan Boddu
Configuring SDHCI-0 to act as eMMC controller. Signed-off-by: Sai Pavan Boddu --- include/hw/arm/xlnx-versal.h | 1 + hw/arm/xlnx-versal-virt.c| 29 + hw/arm/xlnx-versal.c | 14 -- 3 files changed, 38 insertions(+), 6 deletions(-) diff --git

[PATCH v3 21/21] docs: arm: xlnx-versal-virt: Add eMMC support documentation

2021-02-28 Thread Sai Pavan Boddu
Add details of eMMC specific machine property and example for passing eMMC device. Signed-off-by: Sai Pavan Boddu --- docs/system/arm/xlnx-versal-virt.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/docs/system/arm/xlnx-versal-virt.rst b/docs/system/arm/xlnx-versal

[PATCH v3 00/21] eMMC support

2021-02-28 Thread Sai Pavan Boddu
boot area in emmc image sd: emmc: Subtract bootarea size from blk Sai Pavan Boddu (14): sd: sd: Remove usage of tabs in the file sd: emmc: Add support for eMMC cards sd: emmc: Dont not update CARD_CAPACITY for eMMC cards sd: emmc: Update CMD1 definition for eMMC sd: emmc: support idle s

[PATCH v3 10/21] sd: emmc: support idle state in CMD2

2021-02-28 Thread Sai Pavan Boddu
eMMC is expected to be in idle-state post CMD1. Ready state is an intermediate stage which we don't come across in Device identification mode. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- hw/sd/sd.c | 4 1 file changed, 4 inser

[PATCH v3 12/21] sd: emmc: add CMD21 tuning sequence

2021-02-28 Thread Sai Pavan Boddu
eMMC cards support tuning sequence for entering HS200 mode. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index bf963ec..174c28e 100644

[PATCH v3 20/21] docs: devel: emmc: Add a doc for emmc card emulation

2021-02-28 Thread Sai Pavan Boddu
Add few simple steps to create emmc card with boot and user data partitions. Signed-off-by: Sai Pavan Boddu --- docs/devel/emmc.txt | 16 1 file changed, 16 insertions(+) create mode 100644 docs/devel/emmc.txt diff --git a/docs/devel/emmc.txt b/docs/devel/emmc.txt new file

[PATCH v3 06/21] sd: emmc: Update CMD8 to send EXT_CSD register

2021-02-28 Thread Sai Pavan Boddu
From: Vincent Palatin Sends the EXT_CSD register as response to CMD8. Signed-off-by: Vincent Palatin Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 52 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd

[PATCH v3 13/21] sd: emmc: Make ACMD41 illegal for mmc

2021-02-28 Thread Sai Pavan Boddu
ACMD41 is not applicable for eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 174c28e..09c1222 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1737,6 +1737,9 @@ static

[PATCH v3 01/21] sd: sd: Remove usage of tabs in the file

2021-02-28 Thread Sai Pavan Boddu
Set tabstop as 4 and used expandtabs Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 190 ++--- 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 8517dbc..74b9162 100644 --- a/hw/sd/sd.c +++ b/hw

[PATCH v3 11/21] sd: emmc: Add mmc switch function support

2021-02-28 Thread Sai Pavan Boddu
switch operation in eMMC card updates the ext_csd register to request changes in card operations. Here we implement similar sequence but requests are mostly dummy and make no change. Implement SWITCH_ERROR if the write operation extends goes beyond length of ext_csd. Signed-off-by: Sai Pavan

[PATCH v3 03/21] sd: emmc: Update SET_RELATIVE_ADDR command

2021-02-28 Thread Sai Pavan Boddu
From: Vincent Palatin Change SET_RELATIVE_ADDR command to assign relative address as requested by user. Signed-off-by: Vincent Palatin Signed-off-by: Joel Stanley Signed-off-by: Cédric Le Goater [spb: Split original patch series] Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 12

[PATCH v3 08/21] sd: emmc: Dont not update CARD_CAPACITY for eMMC cards

2021-02-28 Thread Sai Pavan Boddu
OCR.CARD_CAPACITY field is only valid for sd cards, So skip it for eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- hw/sd/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 181e7e2

[PATCH v3 15/21] sd: emmc: Update CID structure for eMMC

2021-02-28 Thread Sai Pavan Boddu
CID structure is little different for eMMC, w.r.t to product name and manufacturing date. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/hw/sd

[PATCH v3 09/21] sd: emmc: Update CMD1 definition for eMMC

2021-02-28 Thread Sai Pavan Boddu
Add support to Power up the card and send response r3 in case of eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- hw/sd/sd.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index

[PATCH v3 07/21] sd: sdmmc-internal: Add command string for SEND_OP_CMD

2021-02-28 Thread Sai Pavan Boddu
From: Cédric Le Goater This adds extra info to trace log. Signed-off-by: Sai Pavan Boddu --- hw/sd/sdmmc-internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd/sdmmc-internal.c b/hw/sd/sdmmc-internal.c index 2053def..8648a78 100644 --- a/hw/sd/sdmmc-internal.c

[PATCH v3 02/21] sd: emmc: Add support for eMMC cards

2021-02-28 Thread Sai Pavan Boddu
Add eMMC device built on top of SD card. Signed-off-by: Sai Pavan Boddu --- include/hw/sd/sd.h | 2 ++ hw/sd/sd.c | 20 2 files changed, 22 insertions(+) diff --git a/include/hw/sd/sd.h b/include/hw/sd/sd.h index 05ef9b7..b402dad 100644 --- a/include/hw/sd/sd.h

RE: [PATCH v2 01/22] block: add eMMC block device type

2021-02-24 Thread Sai Pavan Boddu
Hi Cedric, > -Original Message- > From: Cédric Le Goater > Sent: Wednesday, February 24, 2021 7:25 PM > To: Stefan Hajnoczi ; Sai Pavan Boddu > > Cc: Philippe Mathieu-Daudé ; Markus Armbruster > ; Kevin Wolf ; Max Reitz > ; Vladimir Sementsov-Ogievskiy >

RE: [PATCH v2 01/22] block: add eMMC block device type

2021-02-24 Thread Sai Pavan Boddu
Hi Stefan > -Original Message- > From: Stefan Hajnoczi > Sent: Wednesday, February 24, 2021 5:10 PM > To: Sai Pavan Boddu > Cc: Philippe Mathieu-Daudé ; Markus Armbruster > ; Kevin Wolf ; Max Reitz > ; Vladimir Sementsov-Ogievskiy > ; Eric Blake ; Joel Stan

RE: [PATCH v2 01/22] block: add eMMC block device type

2021-02-23 Thread Sai Pavan Boddu
Hi Philippe, > -Original Message- > From: Philippe Mathieu-Daudé > Sent: Monday, February 22, 2021 5:34 PM > To: Sai Pavan Boddu ; Markus Armbruster > ; Kevin Wolf ; Max Reitz > ; Vladimir Sementsov-Ogievskiy > ; Eric Blake ; Joel Stanley > ; Cédric Le Goater

RE: [PATCH v2 01/22] block: add eMMC block device type

2021-02-22 Thread Sai Pavan Boddu
Hi Philippe, > -Original Message- > From: Philippe Mathieu-Daudé > Sent: Monday, February 22, 2021 6:54 PM > To: Dr. David Alan Gilbert ; Markus Armbruster > > Cc: Sai Pavan Boddu ; Kevin Wolf ; > Max Reitz ; Vladimir Sementsov-Ogievskiy > ; Eric Blake ; Jo

RE: [PATCH v2 04/22] sd: emmc: update OCR fields for eMMC

2021-02-22 Thread Sai Pavan Boddu
Hi Cedric > -Original Message- > From: Cédric Le Goater > Sent: Monday, February 22, 2021 3:22 PM > To: Sai Pavan Boddu ; Markus Armbruster > ; Kevin Wolf ; Max Reitz > ; Vladimir Sementsov-Ogievskiy > ; Eric Blake ; Joel Stanley > ; Vincent Palatin ; Dr. David

[PATCH v2 19/22] sd: sdhci: Support eMMC devices

2021-02-22 Thread Sai Pavan Boddu
Embedded device slots should be allowed as support of eMMC is available. Signed-off-by: Sai Pavan Boddu --- hw/sd/sdhci.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 8ffa539..771212a 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -99,10 +99,6

[PATCH v2 14/22] sd: emmc: Add support for emmc erase

2021-02-22 Thread Sai Pavan Boddu
Add CMD35 and CMD36 which sets the erase start and end. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index df82b61..6d2ef2b 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1544,6

[PATCH v2 06/22] sd: emmc: Update CMD8 to send EXT_CSD register

2021-02-22 Thread Sai Pavan Boddu
From: Vincent Palatin Sends the EXT_CSD register as response to CMD8. Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 52 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 4c211ba..a4f93b5 100644

[PATCH v2 08/22] sd: emmc: Dont not update CARD_CAPACITY for eMMC cards

2021-02-22 Thread Sai Pavan Boddu
OCR.CARD_CAPACITY field is only valid for sd cards, So skip it for eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- hw/sd/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index a4f93b5

[PATCH v2 21/22] docs: devel: emmc: Add a doc for emmc card emulation

2021-02-22 Thread Sai Pavan Boddu
Add few simple steps to create emmc card with boot and user data partitions. Signed-off-by: Sai Pavan Boddu --- docs/devel/emmc.txt | 16 1 file changed, 16 insertions(+) create mode 100644 docs/devel/emmc.txt diff --git a/docs/devel/emmc.txt b/docs/devel/emmc.txt new file

[PATCH v2 10/22] sd: emmc: support idle state in CMD2

2021-02-22 Thread Sai Pavan Boddu
eMMC is expected to be in idle-state post CMD1. Ready state is an intermediate stage which we don't come across in Device identification mode. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- hw/sd/sd.c | 4 1 file changed, 4 inser

[PATCH v2 17/22] sd: emmc: Support boot area in emmc image

2021-02-22 Thread Sai Pavan Boddu
ete, Fix commit message to be generic.] Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 40 1 file changed, 40 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 60799aa..ab29e54 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1040,6 +1040,34 @@ static v

[PATCH v2 22/22] docs: arm: xlnx-versal-virt: Add eMMC support documentation

2021-02-22 Thread Sai Pavan Boddu
Add details of eMMC specific machine property. Signed-off-by: Sai Pavan Boddu --- docs/system/arm/xlnx-versal-virt.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/system/arm/xlnx-versal-virt.rst b/docs/system/arm/xlnx-versal-virt.rst index 2602d0f..a48a88d 100644 --- a

[PATCH v2 16/22] sd: emmc: Add Extended CSD register definitions

2021-02-22 Thread Sai Pavan Boddu
From: Cédric Le Goater Add user friendly macros for EXT_CSD register. Signed-off-by: Cédric Le Goater [spb: Rebased over versal emmc series, updated commit message] Signed-off-by: Sai Pavan Boddu --- hw/sd/sdmmc-internal.h | 97 ++ hw/sd

[PATCH v2 05/22] sd: emmc: Add support for EXT_CSD & CSD for eMMC

2021-02-22 Thread Sai Pavan Boddu
From: Vincent Palatin eMMC CSD is similar to SD with an option to refer EXT_CSD for larger devices. Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 57 +++-- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd

[PATCH v2 11/22] sd: emmc: Add mmc switch function support

2021-02-22 Thread Sai Pavan Boddu
switch operation in eMMC card updates the ext_csd register to request changes in card operations. Here we implement similar sequence but requests are mostly dummy and make no change. Implement SWITCH_ERROR if the write operation extends goes beyond length of ext_csd. Signed-off-by: Sai Pavan

[PATCH v2 07/22] sd: sdmmc-internal: Add command string for SEND_OP_CMD

2021-02-22 Thread Sai Pavan Boddu
From: Cédric Le Goater This adds extra info to trace log. Signed-off-by: Sai Pavan Boddu --- hw/sd/sdmmc-internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd/sdmmc-internal.c b/hw/sd/sdmmc-internal.c index 2053def..8648a78 100644 --- a/hw/sd/sdmmc-internal.c

[PATCH v2 01/22] block: add eMMC block device type

2021-02-22 Thread Sai Pavan Boddu
From: Vincent Palatin Add new block device type. Signed-off-by: Vincent Palatin [SPB: Rebased over 5.1 version] Signed-off-by: Sai Pavan Boddu Signed-off-by: Joel Stanley Signed-off-by: Cédric Le Goater Reviewed-by: Alistair Francis --- include/sysemu/blockdev.h | 1 + blockdev.c

[PATCH v2 12/22] sd: emmc: add CMD21 tuning sequence

2021-02-22 Thread Sai Pavan Boddu
eMMC cards support tuning sequence for entering HS200 mode. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index e50d40b..d702027 100644

[PATCH v2 13/22] sd: emmc: Make ACMD41 illegal for mmc

2021-02-22 Thread Sai Pavan Boddu
ACMD41 is not applicable for eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index d702027..df82b61 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1729,6 +1729,9 @@ static

[PATCH v2 15/22] sd: emmc: Update CID structure for eMMC

2021-02-22 Thread Sai Pavan Boddu
CID structure is little different for eMMC, w.r.t to product name and manufacturing date. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/hw/sd

[PATCH v2 20/22] arm: xlnx-versal: Add emmc to versal

2021-02-22 Thread Sai Pavan Boddu
Configuring SDHCI-0 to act as eMMC controller. Signed-off-by: Sai Pavan Boddu --- include/hw/arm/xlnx-versal.h | 1 + hw/arm/xlnx-versal-virt.c| 30 +- hw/arm/xlnx-versal.c | 13 +++-- 3 files changed, 37 insertions(+), 7 deletions(-) diff --git

[PATCH v2 09/22] sd: emmc: Update CMD1 definition for eMMC

2021-02-22 Thread Sai Pavan Boddu
Add support to Power up the card and send response r3 in case of eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- hw/sd/sd.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index

[PATCH v2 03/22] sd: emmc: Add support for eMMC cards

2021-02-22 Thread Sai Pavan Boddu
Pavan Boddu --- hw/sd/sd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 74b9162..42ee49c 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -108,6 +108,7 @@ struct SDState { uint8_t spec_version; BlockBackend *blk; bool spi

[PATCH v2 02/22] sd: sd: Remove usage of tabs in the file

2021-02-22 Thread Sai Pavan Boddu
Set tabstop as 4 and used expandtabs Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 190 ++--- 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 8517dbc..74b9162 100644 --- a/hw/sd/sd.c +++ b/hw

[PATCH v2 18/22] sd: emmc: Subtract bootarea size from blk

2021-02-22 Thread Sai Pavan Boddu
From: Joel Stanley The userdata size is derived from the file the user passes on the command line, but we must take into account the boot areas. Signed-off-by: Joel Stanley Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/sd/sd.c b/hw/

[PATCH v2 04/22] sd: emmc: update OCR fields for eMMC

2021-02-22 Thread Sai Pavan Boddu
From: Vincent Palatin eMMC OCR register doesn't has UHS-II field and voltage fields are different. Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 42ee49c..43

[PATCH v2 00/22] eMMC support

2021-02-22 Thread Sai Pavan Boddu
r (2): sd: sdmmc-internal: Add command string for SEND_OP_CMD sd: emmc: Add Extended CSD register definitions Joel Stanley (2): sd: emmc: Support boot area in emmc image sd: emmc: Subtract bootarea size from blk Sai Pavan Boddu (13): sd: sd: Remove usage of tabs in the file sd: emmc: Dont

RE: [RFC PATCH 11/15] sd: emmc: Add Extended CSD register definitions

2021-02-16 Thread Sai Pavan Boddu
Hi Luc, > -Original Message- > From: Luc Michel > Sent: Saturday, February 13, 2021 6:26 PM > To: Sai Pavan Boddu ; Markus Armbruster > ; Kevin Wolf ; Max Reitz > ; Vladimir Sementsov-Ogievskiy > ; Eric Blake ; Joel Stanley > ; Cédric Le Goater ; Vincent Palatin &g

RE: [RFC PATCH 10/15] sd: emmc: Update CID structure for eMMC

2021-02-16 Thread Sai Pavan Boddu
Hi Alistair > -Original Message- > From: Alistair Francis > Sent: Saturday, February 13, 2021 3:41 AM > To: Sai Pavan Boddu > Cc: Markus Armbruster ; Kevin Wolf > ; Max Reitz ; Vladimir Sementsov- > Ogievskiy ; Eric Blake ; > Joel Stanley ; Cédric Le Goater

RE: [RFC PATCH 09/15] sd: emmc: Add support for emmc erase

2021-02-16 Thread Sai Pavan Boddu
Hi Alistair, > -Original Message- > From: Alistair Francis > Sent: Saturday, February 13, 2021 3:38 AM > To: Sai Pavan Boddu > Cc: Markus Armbruster ; Kevin Wolf > ; Max Reitz ; Vladimir Sementsov- > Ogievskiy ; Eric Blake ; > Joel Stanley ; Cédric Le Goater

[RFC PATCH 15/15] arm: xlnx-versal: Add emmc to versal

2021-02-11 Thread Sai Pavan Boddu
Configuring SDHCI-0 to act as eMMC controller. Signed-off-by: Sai Pavan Boddu --- hw/arm/xlnx-versal-virt.c | 16 +++- hw/arm/xlnx-versal.c | 14 -- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/hw/arm/xlnx-versal-virt.c b/hw/arm/xlnx-versal-virt.c

[RFC PATCH 14/15] sd: sdhci: Support eMMC devices

2021-02-11 Thread Sai Pavan Boddu
Embedded device slots should be allowed as support of eMMC is available. Signed-off-by: Sai Pavan Boddu --- hw/sd/sdhci.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 8ffa539..771212a 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -99,10 +99,6

[RFC PATCH 11/15] sd: emmc: Add Extended CSD register definitions

2021-02-11 Thread Sai Pavan Boddu
From: Cédric Le Goater Add user friendly macros for EXT_CSD register. Signed-off-by: Cédric Le Goater [spb: Rebased over versal emmc series, updated commit message] Signed-off-by: Sai Pavan Boddu --- hw/sd/sd.c | 54 +++- hw/sd/sdmmc-internal.h | 97

[RFC PATCH 10/15] sd: emmc: Update CID structure for eMMC

2021-02-11 Thread Sai Pavan Boddu
CID structure is little different for eMMC, w.r.t to product name and manufacturing date. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 52 +++- 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/hw

[RFC PATCH 07/15] sd: emmc: add CMD21 tuning sequence

2021-02-11 Thread Sai Pavan Boddu
eMMC cards support tuning sequence for entering HS200 mode. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 7925174..90359f6 100644

[RFC PATCH 13/15] sd: emmc: Subtract bootarea size from blk

2021-02-11 Thread Sai Pavan Boddu
From: Joel Stanley The userdata size is derived from the file the user passes on the command line, but we must take into account the boot areas. Signed-off-by: Joel Stanley Signed-off-by: Cédric Le Goater --- hw/sd/sd.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/sd/sd.c b/hw/

[RFC PATCH 03/15] sd: emmc: Dont not update CARD_CAPACITY for eMMC cards

2021-02-11 Thread Sai Pavan Boddu
OCR.CARD_CAPACITY field is only valid for sd cards, So skip it for eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index a75fa1c..57fff89 100644 --- a/hw/sd/sd.c

[RFC PATCH 08/15] sd: emmc: Make ACMD41 illegal for mmc

2021-02-11 Thread Sai Pavan Boddu
ACMD41 is not applicable for eMMC. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 90359f6..236f2b8 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1729,6 +1729,9 @@ static

[RFC PATCH 09/15] sd: emmc: Add support for emmc erase

2021-02-11 Thread Sai Pavan Boddu
Add CMD35 and CMD36 which sets the erase start and end. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 236f2b8..7aab647 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1544,6

[RFC PATCH 06/15] sd: emmc: Add mmc switch function support

2021-02-11 Thread Sai Pavan Boddu
switch operation in eMMC card updates the ext_csd register to request changes in card operations. Here we implement similar sequence but requests are mostly dummy and make no change. Implement SWITCH_ERROR if the write operation extends goes beyond length of ext_csd. Signed-off-by: Sai Pavan

[RFC PATCH 02/15] sd: add eMMC support

2021-02-11 Thread Sai Pavan Boddu
From: Vincent Palatin The parameters mimick a real 4GB eMMC, but it can be set to various sizes. Signed-off-by: Vincent Palatin [SPB: Rebased the patch over qemu 5.1, Mark eMMC to support all timing modes] Signed-off-by: Sai Pavan Boddu Signed-off-by: Joel Stanley Signed-off-by: Cédric

[RFC PATCH 05/15] sd: emmc: support idle state in CMD2

2021-02-11 Thread Sai Pavan Boddu
eMMC is expected to be in idle-state post CMD1. Ready state is an intermediate stage which we don't come across in Device identification mode. Signed-off-by: Sai Pavan Boddu Signed-off-by: Edgar E. Iglesias --- hw/sd/sd.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/sd/sd.c

  1   2   3   4   5   >