From owner-p4-projects@FreeBSD.ORG Fri Sep 22 01:31:54 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A274116A688; Fri, 22 Sep 2006 01:31:54 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EE7616A684 for ; Fri, 22 Sep 2006 01:31:54 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CC8A43D69 for ; Fri, 22 Sep 2006 01:31:52 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8M1VqZh024626 for ; Fri, 22 Sep 2006 01:31:52 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8M1VqDS024623 for perforce@freebsd.org; Fri, 22 Sep 2006 01:31:52 GMT (envelope-from imp@freebsd.org) Date: Fri, 22 Sep 2006 01:31:52 GMT Message-Id: <200609220131.k8M1VqDS024623@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 106483 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 01:31:54 -0000 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;