From 533cf7737bae4363edefbfb202cb44e9eb30cd3f Mon Sep 17 00:00:00 2001 From: Torne Wuff Date: Sun, 31 Jan 2010 11:07:29 +0000 Subject: Enable ATA DMA on pp5020 based players with ATA drives. DMA is only used for reading because writing seems to be slower with DMA. Only requests which are cacheline aligned (16 bytes) will use DMA, so many requests will still use PIO at this point; a later change will align more reads. Part of FS#9708, original DMA code by Boris Gjenero (dreamlayers). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24405 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config/samsungyh820.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/export/config/samsungyh820.h') diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h index 4968960803..0ca244ae39 100644 --- a/firmware/export/config/samsungyh820.h +++ b/firmware/export/config/samsungyh820.h @@ -181,3 +181,8 @@ #define ICODE_ATTR_TREMOR_NOT_MDCT + +/* DMA is used only for reading on PP502x because although reads are ~8x faster + * writes appear to be ~25% slower. + */ +#define HAVE_ATA_DMA -- cgit v1.2.3