Revision tags: v8.0.0, v7.2.0, v7.0.0, v6.2.0, v6.1.0, v5.2.0, v5.0.0, v4.2.0, v4.0.0, v4.0.0-rc1, v4.0.0-rc0, v3.1.0, v3.1.0-rc5, v3.1.0-rc4, v3.1.0-rc3, v3.1.0-rc2, v3.1.0-rc1, v3.1.0-rc0, libfdt-20181002, ppc-for-3.1-20180925, ppc-for-3.1-20180907 |
|
#
b7493c42 |
| 03-Sep-2018 |
Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> |
hw/sd: Update CMD1 definition for MMC
Add support to Power up the card and send response r3 in case of MMC.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Signed-off-by: Edgar E. Igles
hw/sd: Update CMD1 definition for MMC
Add support to Power up the card and send response r3 in case of MMC.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [ clg: - ported on SDProto framework ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
6404d27c |
| 11-May-2021 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Fix SET_BLOCK_COUNT command argument
The number of blocks is defined in the lower bits [15:0].
TODO: This needs to be more precise on the spec version.
Signed-off-by: Cédric Le Goater <clg@
hw/sd: Fix SET_BLOCK_COUNT command argument
The number of blocks is defined in the lower bits [15:0].
TODO: This needs to be more precise on the spec version.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
79abd793 |
| 25-May-2022 |
Joel Stanley <joel@jms.id.au> |
hw/sd: Add boot config support
Introduced "boot-config" property to set CSD 179, the boot config register.
With this correctly set we can use the enable bit to detect if partition support is enable
hw/sd: Add boot config support
Introduced "boot-config" property to set CSD 179, the boot config register.
With this correctly set we can use the enable bit to detect if partition support is enabled.
Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
66e866a3 |
| 25-May-2022 |
Joel Stanley <joel@jms.id.au> |
hw/sd: Subtract bootarea size from blk
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 <joe
hw/sd: Subtract bootarea size from blk
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 <joel@jms.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
39e4916b |
| 25-May-2022 |
Joel Stanley <joel@jms.id.au> |
hw/sd: Support boot area in emmc image
This assumes a specially constructed image:
dd if=/dev/zero of=mmc-bootarea.img count=2 bs=1M dd if=u-boot-spl.bin of=mmc-bootarea.img conv=notrunc dd i
hw/sd: Support boot area in emmc image
This assumes a specially constructed image:
dd if=/dev/zero of=mmc-bootarea.img count=2 bs=1M dd if=u-boot-spl.bin of=mmc-bootarea.img conv=notrunc dd if=u-boot.bin of=mmc-bootarea.img conv=notrunc count=64 bs=1K cat mmc-bootarea.img obmc-phosphor-image.wic > mmc.img truncate --size 16GB mmc.img truncate --size 128MB mmc-bootarea.img
For now this still requires a mtd image to load the SPL:
qemu-system-arm -M tacoma-bmc -nographic \ -global driver=sd-card,property=emmc,value=true \ -drive file=mmc.img,if=sd,index=2 \ -drive file=mmc-bootarea.img,if=mtd,format=raw
Signed-off-by: Joel Stanley <joel@jms.id.au> [clg: - definition renames - Introduced bootpart_offset - Introduced sd_boot_capacity_bytes() helper (Philippe) ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
4d4f7b11 |
| 25-May-2022 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Add emmc_cmd_SEND_EXT_CSD() handler
The parameters mimick a real 4GB eMMC, but it can be set to various sizes. Initially from Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Cédric Le
hw/sd: Add emmc_cmd_SEND_EXT_CSD() handler
The parameters mimick a real 4GB eMMC, but it can be set to various sizes. Initially from Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
f1c02e15 |
| 25-May-2022 |
Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> |
hw/sd: Add mmc switch function support
switch operation in mmc cards, updated the ext_csd register to request changes in card operations. Here we implement similar sequence but requests are mostly d
hw/sd: Add mmc switch function support
switch operation in mmc cards, updated 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 offset goes beyond length of ext_csd.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [ clg: - ported on SDProto framework ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
dd0990c4 |
| 25-May-2022 |
Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> |
hw/sd: Add CMD21 tuning sequence
MMC cards support different tuning sequence for entering HS200 mode.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Signed-off-by: Edgar E. Iglesias <e
hw/sd: Add CMD21 tuning sequence
MMC cards support different tuning sequence for entering HS200 mode.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [ clg: - ported on QEMU 7.0 ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
b5c3e739 |
| 25-May-2022 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: add emmc_cmd_SEND_TUNING_BLOCK() handler
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
1e16cbc7 |
| 25-May-2022 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Add emmc_cmd_APP_CMD() handler
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
f5afb12c |
| 25-May-2022 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Add emmc_cmd_SEND_RELATIVE_ADDR() handler
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
4a6667bb |
| 25-May-2022 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Add emmc_cmd_ALL_SEND_CID() handler
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
8fb5f116 |
| 25-May-2022 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Add emmc_cmd_SEND_OP_CMD() handler
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
a8458064 |
| 29-Nov-2023 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Basis for eMMC support
The initial eMMC support from Vincent Palatin was largely reworked to match the current SD framework.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
88d2198c |
| 31-Oct-2023 |
Philippe Mathieu-Daudé <philmd@linaro.org> |
hw/sd: Declare QOM types using DEFINE_TYPES() macro
When multiple QOM types are registered in the same file, it is simpler to use the the DEFINE_TYPES() macro. In particular because type array decla
hw/sd: Declare QOM types using DEFINE_TYPES() macro
When multiple QOM types are registered in the same file, it is simpler to use the the DEFINE_TYPES() macro. In particular because type array declared with such macro are easier to review.
Mechanical transformation using the following comby script:
[pattern-x1] match=''' static const TypeInfo :[i1~.*_info] = { :[body] }; static void :[rt1~.*_register_type.](void) { type_register_static(&:[i2~.*_info]); } type_init(:[rt2~.*_register_type.]) ''' rewrite=''' static const TypeInfo :[i1][] = { { :[body] }, };
DEFINE_TYPES(:[i1]) ''' rule='where :[i1] == :[i2], :[rt1] == :[rt2]'
[pattern-x2] match=''' static const TypeInfo :[i1a~.*_info] = { :[body1] }; ... static const TypeInfo :[i2a~.*_info] = { :[body2] }; static void :[rt1~.*_register_type.](void) { type_register_static(&:[i1b~.*_info]); type_register_static(&:[i2b~.*_info]); } type_init(:[rt2~.*_register_type.]) ''' rewrite=''' static const TypeInfo :[i1a][] = { { :[body1] }, { :[body2] }, };
DEFINE_TYPES(:[i1a]) ''' rule=''' where :[i1a] == :[i1b], :[i2a] == :[i2b], :[rt1] == :[rt2] '''
and re-indented manually.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20231031080603.86889-2-philmd@linaro.org>
show more ...
|
#
c3287c0f |
| 03-Jul-2023 |
Cédric Le Goater <clg@kaod.org> |
hw/sd: Introduce a "sd-card" SPI variant model
and replace the SDState::spi attribute with a test checking the SDProto array of commands.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Sig
hw/sd: Introduce a "sd-card" SPI variant model
and replace the SDState::spi attribute with a test checking the SDProto array of commands.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
6380cd20 |
| 30-May-2022 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_SET_BLOCK_COUNT() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
793d04f4 |
| 25-May-2022 |
Joel Stanley <joel@jms.id.au> |
hw/sd: Add sd_cmd_SEND_TUNING_BLOCK() handler
Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
|
#
41a0349d |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_SEND_RELATIVE_ADDR() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-11-f4bug@amsat.o
hw/sd: Add sd_cmd_SEND_RELATIVE_ADDR() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-11-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
c4f2d9e1 |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_ALL_SEND_CID() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-10-f4bug@amsat.org> Si
hw/sd: Add sd_cmd_ALL_SEND_CID() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-10-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
5c44e820 |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_SEND_OP_CMD() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [ clg: Update cmd_abbrev ] Message-Id: <20210624142209.1193073-9-f4bug@amsat.org> Signed-off-by: Cédri
hw/sd: Add sd_cmd_SEND_OP_CMD() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [ clg: Update cmd_abbrev ] Message-Id: <20210624142209.1193073-9-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
a6e0f67e |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_GO_IDLE_STATE() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-8-f4bug@amsat.org> Si
hw/sd: Add sd_cmd_GO_IDLE_STATE() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-8-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
7ffcbf3e |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_unimplemented() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [ clg: Fix redundant assignment of .cmd ] Message-Id: <20210624142209.1193073-7-f4bug@amsat.org> Sig
hw/sd: Add sd_cmd_unimplemented() handler
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [ clg: Fix redundant assignment of .cmd ] Message-Id: <20210624142209.1193073-7-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
583204d8 |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Add sd_cmd_illegal() handler
Log illegal commands as GUEST_ERROR.
Note: we are logging back the SDIO commands (CMD5, CMD52-54).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Revie
hw/sd: Add sd_cmd_illegal() handler
Log illegal commands as GUEST_ERROR.
Note: we are logging back the SDIO commands (CMD5, CMD52-54).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-6-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|
#
46859b60 |
| 24-Jun-2021 |
Philippe Mathieu-Daudé <f4bug@amsat.org> |
hw/sd: Introduce sd_cmd_handler type
Add 2 command handler arrays in SDProto, for CMD and ACMD. Have sd_normal_command() / sd_app_command() use these arrays: if an command handler is registered, cal
hw/sd: Introduce sd_cmd_handler type
Add 2 command handler arrays in SDProto, for CMD and ACMD. Have sd_normal_command() / sd_app_command() use these arrays: if an command handler is registered, call it, otherwise fall back to current code base.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210624142209.1193073-5-f4bug@amsat.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
show more ...
|