MFP4 change 219820
Add a missing 0 to the mask for byte0 of C_SIZE. The previous mask (0xc) worked except that the last 0-1536K of the disk could not be accessed since we were shifting the (wrong) bits we did mask off the right edge.
This commit is contained in:
parent
9f9f029919
commit
6f1efb0f4b
@ -138,7 +138,7 @@ void altera_sdcard_io_start(struct altera_sdcard_softc *sc,
|
||||
* data. Software ease of use was not a design consideration.
|
||||
*/
|
||||
#define ALTERA_SDCARD_CSD_C_SIZE_BYTE0 7
|
||||
#define ALTERA_SDCARD_CSD_C_SIZE_MASK0 0xc /* top 2 bits */
|
||||
#define ALTERA_SDCARD_CSD_C_SIZE_MASK0 0xc0 /* top 2 bits */
|
||||
#define ALTERA_SDCARD_CSD_C_SIZE_RSHIFT0 6
|
||||
|
||||
#define ALTERA_SDCARD_CSD_C_SIZE_BYTE1 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user