summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/arm/at91/libat91/sd-card.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/boot/arm/at91/libat91/sd-card.c b/sys/boot/arm/at91/libat91/sd-card.c
index 095b6a1..d0b7beb 100644
--- a/sys/boot/arm/at91/libat91/sd-card.c
+++ b/sys/boot/arm/at91/libat91/sd-card.c
@@ -157,8 +157,9 @@ MCI_GetStatus()
static int
MCI_ReadBlock(int src, unsigned int *dataBuffer, int sizeToRead)
{
- unsigned log2sl = MCI_Device.READ_BL_LEN;
- unsigned sectorLength = 1 << log2sl;
+// unsigned log2sl = MCI_Device.READ_BL_LEN;
+// unsigned sectorLength = 1 << log2sl;
+ unsigned sectorLength = 512;
///////////////////////////////////////////////////////////////////////
if (MCI_Device.state != AT91C_MCI_IDLE)
@@ -195,8 +196,9 @@ MCI_ReadBlock(int src, unsigned int *dataBuffer, int sizeToRead)
int
MCI_read(char* dest, unsigned source, unsigned length)
{
- unsigned log2sl = MCI_Device.READ_BL_LEN;
- unsigned sectorLength = 1 << log2sl;
+// unsigned log2sl = MCI_Device.READ_BL_LEN;
+// unsigned sectorLength = 1 << log2sl;
+ unsigned sectorLength = 512;
int sizeToRead;
unsigned int *walker;
OpenPOWER on IntegriCloud