From: gerg@uclinux.org
To: linux-m68k@vger.kernel.org, uclinux-dev@uclinux.org
Cc: Greg Ungerer <gerg@uclinux.org>
Subject: [PATCH 7/9] m68knommu: modify ColdFire dma_timer to use common definitions
Date: Wed, 28 May 2014 10:49:47 +1000 [thread overview]
Message-ID: <1401238189-4402-8-git-send-email-gerg@uclinux.org> (raw)
In-Reply-To: <1401238189-4402-1-git-send-email-gerg@uclinux.org>
From: Greg Ungerer <gerg@uclinux.org>
The ColdFire DMA Timer hardware module is used on a number of the ColdFire
family System on Chips. Modify the dma_timer.c driver address definitions
so that it can be used on any of those devices.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
arch/m68k/platform/coldfire/dma_timer.c | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/arch/m68k/platform/coldfire/dma_timer.c b/arch/m68k/platform/coldfire/dma_timer.c
index 235ad57..9b7b950 100644
--- a/arch/m68k/platform/coldfire/dma_timer.c
+++ b/arch/m68k/platform/coldfire/dma_timer.c
@@ -14,17 +14,12 @@
#include <asm/mcfpit.h>
#include <asm/mcfsim.h>
-#define DMA_TIMER_0 (0x00)
-#define DMA_TIMER_1 (0x40)
-#define DMA_TIMER_2 (0x80)
-#define DMA_TIMER_3 (0xc0)
-
-#define DTMR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x400)
-#define DTXMR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x402)
-#define DTER0 (MCF_IPSBAR + DMA_TIMER_0 + 0x403)
-#define DTRR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x404)
-#define DTCR0 (MCF_IPSBAR + DMA_TIMER_0 + 0x408)
-#define DTCN0 (MCF_IPSBAR + DMA_TIMER_0 + 0x40c)
+#define DTMR0 (MCFDTIM_BASE0 + 0x0)
+#define DTXMR0 (MCFDTIM_BASE0 + 0x2)
+#define DTER0 (MCFDTIM_BASE0 + 0x3)
+#define DTRR0 (MCFDTIM_BASE0 + 0x4)
+#define DTCR0 (MCFDTIM_BASE0 + 0x8)
+#define DTCN0 (MCFDTIM_BASE0 + 0xc)
#define DMA_FREQ ((MCF_CLK / 2) / 16)
--
1.8.1.4
next prev parent reply other threads:[~2014-05-28 0:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-28 0:49 [PATCH 0/9] m68knommu: use ColdFire DMA timer gerg
2014-05-28 0:49 ` [PATCH 1/9] m68knommu: add DMA timer base address definitions for ColdFire 53xx gerg
2014-05-28 0:49 ` [PATCH 2/9] m68knommu: add DMA timer base address definitions for ColdFire 520x gerg
2014-05-28 0:49 ` [PATCH 3/9] m68knommu: add DMA timer base address definitions for ColdFire 523x gerg
2014-05-28 0:49 ` [PATCH 4/9] m68knommu: add DMA timer base address definitions for ColdFire 527x gerg
2014-05-28 0:49 ` [PATCH 5/9] m68knommu: add DMA timer base address definitions for ColdFire 528x gerg
2014-05-28 0:49 ` [PATCH 6/9] m68knommu: add DMA timer base address definitions for ColdFire 5441x gerg
2014-05-28 0:49 ` gerg [this message]
2014-05-28 0:49 ` [PATCH 8/9] m68knommu: enable clock when using dma_timer hardware module gerg
2014-05-28 0:49 ` [PATCH 9/9] m68knommu: use ColdFire DMA timer module on devices that have it gerg
2014-05-28 15:59 ` Steven King
2014-05-28 23:46 ` Greg Ungerer
2014-05-29 23:22 ` [PATCH 0/9] m68knommu: use ColdFire DMA timer Steven King
2014-05-30 0:51 ` Greg Ungerer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1401238189-4402-8-git-send-email-gerg@uclinux.org \
--to=gerg@uclinux.org \
--cc=linux-m68k@vger.kernel.org \
--cc=uclinux-dev@uclinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox