Date: Thu, 19 Apr 2012 04:07:55 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r234451 - projects/armv6/sys/arm/ti Message-ID: <201204190407.q3J47tQ7064434@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Thu Apr 19 04:07:55 2012 New Revision: 234451 URL: http://svn.freebsd.org/changeset/base/234451 Log: Fix memory -> device transfer. There seemed to be some mix-up in register names. Proper initialization is described in section 16.4.14 of TRM Modified: projects/armv6/sys/arm/ti/ti_sdma.c Modified: projects/armv6/sys/arm/ti/ti_sdma.c ============================================================================== --- projects/armv6/sys/arm/ti/ti_sdma.c Thu Apr 19 03:26:21 2012 (r234450) +++ projects/armv6/sys/arm/ti/ti_sdma.c Thu Apr 19 04:07:55 2012 (r234451) @@ -764,10 +764,10 @@ ti_sdma_start_xfer_packet(unsigned int c if (channel->reg_ccr & DMA4_CCR_SEL_SRC_DST_SYNC(1)) ti_sdma_write_4(sc, DMA4_CSF(ch), pktsize); else - ti_sdma_write_4(sc, DMA4_CDE(ch), pktsize); + ti_sdma_write_4(sc, DMA4_CDF(ch), pktsize); /* - Set the destination frame index increment CDFI[31:0] */ - ti_sdma_write_4(sc, DMA4_CDF(ch), 0x0001); + ti_sdma_write_4(sc, DMA4_CDE(ch), 0x0001); /* Clear the status register */ ti_sdma_write_4(sc, DMA4_CSR(ch), 0x1FFE);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204190407.q3J47tQ7064434>