[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 04/18] sdcard: clean the SCR register and add
From: |
Alistair Francis |
Subject: |
Re: [Qemu-devel] [PATCH v3 04/18] sdcard: clean the SCR register and add few comments |
Date: |
Wed, 31 Jan 2018 08:18:33 -0800 |
On Mon, Jan 22, 2018 at 7:30 PM, Philippe Mathieu-Daudé <address@hidden> wrote:
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Alistair
> ---
> hw/sd/sd.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/hw/sd/sd.c b/hw/sd/sd.c
> index 56df5b660a..5d50d48097 100644
> --- a/hw/sd/sd.c
> +++ b/hw/sd/sd.c
> @@ -297,10 +297,13 @@ static void sd_ocr_powerup(void *opaque)
>
> static void sd_reset_scr(SDState *sd)
> {
> - sd->scr[0] = 0x00; /* SCR Structure */
> - sd->scr[1] = 0x2f; /* SD Security Support */
> - sd->scr[2] = 0x00;
> + sd->scr[0] = (0 << 4) /* SCR version 1.0 */
> + | 0; /* Spec Versions 1.0 and 1.01 */
> + sd->scr[1] = (2 << 4) /* SDSC Card (Security Version 1.01) */
> + | 0b0101; /* 1-bit or 4-bit width bus modes */
> + sd->scr[2] = 0x00; /* Extended Security is not supported. */
> sd->scr[3] = 0x00;
> + /* reserved for manufacturer usage */
> sd->scr[4] = 0x00;
> sd->scr[5] = 0x00;
> sd->scr[6] = 0x00;
> --
> 2.15.1
>
>
- [Qemu-devel] [PATCH v3 00/18] SDCard: bugfixes, support UHS-I (part 5), Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 01/18] sdcard: Don't always set the high capacity bit, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 02/18] sdcard: update the CSD CRC register regardless the CSD structure version, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 03/18] sdcard: fix the 'maximum data transfer rate' to 25MHz, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 04/18] sdcard: clean the SCR register and add few comments, Philippe Mathieu-Daudé, 2018/01/22
- Re: [Qemu-devel] [PATCH v3 04/18] sdcard: clean the SCR register and add few comments,
Alistair Francis <=
- [Qemu-devel] [PATCH v3 05/18] sdcard: remove commands from unsupported old MMC specification, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 06/18] sdcard: simplify using the ldst API, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 07/18] sdcard: use the correct masked OCR in the R3 reply, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 08/18] sdcard: use the registerfields API for the CARD_STATUS register masks, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 09/18] sdcard: handles more commands in SPI mode, Philippe Mathieu-Daudé, 2018/01/22
- [Qemu-devel] [PATCH v3 10/18] sdcard: handle CMD54 (SDIO), Philippe Mathieu-Daudé, 2018/01/22