diff options
author | Anton Vorontsov <avorontsov@mvista.com> | 2010-03-25 17:12:41 +0300 |
---|---|---|
committer | Anton Vorontsov <avorontsov@mvista.com> | 2010-05-02 21:55:46 +0400 |
commit | d94f944e108da21badabd99f527b25e03b677b96 (patch) | |
tree | 3c150c38dcf4c6749eff881bacad872347ab3edd /arch/arm/mach-cns3xxx/include/mach/memory.h | |
parent | ea5ce655b90f5debb7b9768284eaafcca218ddef (diff) |
ARM: cns3xxx: Add basic support for Cavium Networks CNS3xxx processors
This patch adds very basic support for ECONA CNS3xxx ARM11 MPcore
(ARMv6) dual-core processors.
Note that SMP is not yet supported, as well as many peripheral
devices. Support for these features will be added later.
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Diffstat (limited to 'arch/arm/mach-cns3xxx/include/mach/memory.h')
-rw-r--r-- | arch/arm/mach-cns3xxx/include/mach/memory.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-cns3xxx/include/mach/memory.h b/arch/arm/mach-cns3xxx/include/mach/memory.h new file mode 100644 index 00000000000..3b6b769b7a2 --- /dev/null +++ b/arch/arm/mach-cns3xxx/include/mach/memory.h @@ -0,0 +1,26 @@ +/* + * Copyright 2003 ARM Limited + * Copyright 2008 Cavium Networks + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, Version 2, as + * published by the Free Software Foundation. + */ + +#ifndef __MACH_MEMORY_H +#define __MACH_MEMORY_H + +/* + * Physical DRAM offset. + */ +#define PHYS_OFFSET UL(0x00000000) + +#define __phys_to_bus(x) ((x) + PHYS_OFFSET) +#define __bus_to_phys(x) ((x) - PHYS_OFFSET) + +#define __virt_to_bus(v) __phys_to_bus(__virt_to_phys(v)) +#define __bus_to_virt(b) __phys_to_virt(__bus_to_phys(b)) +#define __pfn_to_bus(p) __phys_to_bus(__pfn_to_phys(p)) +#define __bus_to_pfn(b) __phys_to_pfn(__bus_to_phys(b)) + +#endif |