summaryrefslogtreecommitdiff
path: root/sys/boot/arm
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2007-03-28 22:31:32 +0000
committerWarner Losh <imp@FreeBSD.org>2007-03-28 22:31:32 +0000
commit304d0536ab14d2e9963df36818ffaa252a657f31 (patch)
tree8e4aacaa0d17698b44152214a1742cd33ba68056 /sys/boot/arm
parent5394d87e216193b168ccaf46221769985b328262 (diff)
Notes
Diffstat (limited to 'sys/boot/arm')
-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 095b6a1fcb96..d0b7bebda9c5 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;