Re: [PATCH v2] hw/sd: Add SDHC support for SD card SPI-mode

2022-01-02 Thread Philippe Mathieu-Daudé
On 12/28/21 13:57, frank.ch...@sifive.com wrote: > From: Frank Chang > > In SPI-mode, SD card's OCR register: Card Capacity Status (CCS) bit > is not set to 1 correclty when the assigned SD image size is larger > than 2GB (SDHC). This will cause the SD card to be indentified as SDSC > incorrectly

[PATCH v2] hw/sd: Add SDHC support for SD card SPI-mode

2021-12-28 Thread frank . chang
From: Frank Chang In SPI-mode, SD card's OCR register: Card Capacity Status (CCS) bit is not set to 1 correclty when the assigned SD image size is larger than 2GB (SDHC). This will cause the SD card to be indentified as SDSC incorrectly. CCS bit should be set to 1 if we are using SDHC. Also, as