Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 01:31:52 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 106483 for review
Message-ID:  <200609220131.k8M1VqDS024623@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106483

Change 106483 by imp@imp_lighthouse on 2006/09/22 01:31:38

	Put back in the scaling...

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/mci_device.c#18 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/mci_device.c#18 (text+ko) ====

@@ -178,6 +178,8 @@
         // Init Mode Register
 	AT91C_BASE_MCI->MCI_MR |= ((sectorLength << 16) | AT91C_MCI_PDCMODE);
 	 
+	sizeToRead = sizeToRead / 4;
+
 	AT91C_BASE_PDC_MCI->PDC_PTCR = (AT91C_PDC_TXTDIS | AT91C_PDC_RXTDIS);
 	AT91C_BASE_PDC_MCI->PDC_RPR  = (unsigned int)dataBuffer;
 	AT91C_BASE_PDC_MCI->PDC_RCR  = sizeToRead;
@@ -237,6 +239,8 @@
 	// Init Mode Register
 	AT91C_BASE_MCI->MCI_MR |= ((1 << pMCI_Device->pMCI_DeviceFeatures->WRITE_BL_LEN) << 16) | AT91C_MCI_PDCMODE;
 
+	sizeToWrite = sizeToWrite / 4;
+
 	// Init PDC for write sequence
 	AT91C_BASE_PDC_MCI->PDC_PTCR = (AT91C_PDC_TXTDIS | AT91C_PDC_RXTDIS);
 	AT91C_BASE_PDC_MCI->PDC_TPR = (unsigned int) dataBuffer;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609220131.k8M1VqDS024623>