blob: 7e669ee0d6342dc0610dba99cbc21b186fb6a31d [file] [log] [blame]
Quinn Jensen52c543f2007-07-09 22:06:53 +01001/*
2 * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
3 */
4
5/*
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef __ASM_ARCH_MXC_MEMORY_H__
12#define __ASM_ARCH_MXC_MEMORY_H__
13
Russell Kingbe509722008-08-04 10:41:28 +010014#include <asm/arch/hardware.h>
Quinn Jensen52c543f2007-07-09 22:06:53 +010015
Robert Schwebelf304fc42008-03-28 10:59:08 +010016/*
Quinn Jensen52c543f2007-07-09 22:06:53 +010017 * Virtual view <-> DMA view memory address translations
18 * This macro is used to translate the virtual address to an address
19 * suitable to be passed to set_dma_addr()
20 */
21#define __virt_to_bus(a) __virt_to_phys(a)
22
Robert Schwebelf304fc42008-03-28 10:59:08 +010023/*
Quinn Jensen52c543f2007-07-09 22:06:53 +010024 * Used to convert an address for DMA operations to an address that the
25 * kernel can use.
26 */
27#define __bus_to_virt(a) __phys_to_virt(a)
28
Robert Schwebelf304fc42008-03-28 10:59:08 +010029#endif /* __ASM_ARCH_MXC_MEMORY_H__ */