hw/sd/sdcard: Assign SDCardStates enum values
commit26be1ceee5c5d0b01ebadc271807e6fb870670e7
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 24 Jun 2024 18:18:46 +0000 (24 20:18 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 2 Jul 2024 08:08:32 +0000 (2 10:08 +0200)
tree2d126c3ee2863b4defb5ad34d63b9ef35b228681
parent854f5bc655aaca38d3e05b795c500c4b27cfa070
hw/sd/sdcard: Assign SDCardStates enum values

SDCardStates enum values are specified, so assign them
correspondingly. It will be useful later when we add
states from later specs, which might not be continuous.

See CURRENT_STATE bits in section 4.10.1 "Card Status".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240628070216.92609-11-philmd@linaro.org>
hw/sd/sd.c