From aa06f10f01c2748fee151eb6f4b49987f77848e3 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Fri, 1 Feb 2008 17:38:03 +1000 Subject: [PATCH] --- yaml --- r: 81797 b: refs/heads/master c: dad263b84e244cd991f40ab9f87813078f585abb h: refs/heads/master i: 81795: bf94a15d90fe8d9d3fb002fe1ff59409c2856fcf v: v3 --- [refs] | 2 +- trunk/arch/m68knommu/platform/coldfire/dma.c | 39 ++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 trunk/arch/m68knommu/platform/coldfire/dma.c diff --git a/[refs] b/[refs] index ce722ca872f5..723998cb47bd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6d3867987b8eefd880246f7dab085fcbe348c4dd +refs/heads/master: dad263b84e244cd991f40ab9f87813078f585abb diff --git a/trunk/arch/m68knommu/platform/coldfire/dma.c b/trunk/arch/m68knommu/platform/coldfire/dma.c new file mode 100644 index 000000000000..2b30cf1b8f77 --- /dev/null +++ b/trunk/arch/m68knommu/platform/coldfire/dma.c @@ -0,0 +1,39 @@ +/***************************************************************************/ + +/* + * dma.c -- Freescale ColdFire DMA support + * + * Copyright (C) 2007, Greg Ungerer (gerg@snapgear.com) + */ + +/***************************************************************************/ + +#include +#include +#include +#include +#include + +/***************************************************************************/ + +/* + * DMA channel base address table. + */ +unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = { +#ifdef MCFDMA_BASE0 + MCF_MBAR + MCFDMA_BASE0, +#endif +#ifdef MCFDMA_BASE1 + MCF_MBAR + MCFDMA_BASE1, +#endif +#ifdef MCFDMA_BASE2 + MCF_MBAR + MCFDMA_BASE2, +#endif +#ifdef MCFDMA_BASE3 + MCF_MBAR + MCFDMA_BASE3, +#endif +}; + +unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; + +/***************************************************************************/