be20902ba6
Rather than each platform providing its own function to adjust the zone sizes, use the new ARM_DMA_ZONE_SIZE definition to perform this adjustment. This ensures that the actual DMA zone size and the ISA_DMA_THRESHOLD/MAX_DMA_ADDRESS definitions are consistent with each other, and moves this complexity out of the platform code. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
29 lines
482 B
C
29 lines
482 B
C
/*
|
|
* arch/arm/mach-shark/include/mach/memory.h
|
|
*
|
|
* by Alexander Schulz
|
|
*
|
|
* derived from:
|
|
* arch/arm/mach-ebsa110/include/mach/memory.h
|
|
* Copyright (c) 1996-1999 Russell King.
|
|
*/
|
|
#ifndef __ASM_ARCH_MEMORY_H
|
|
#define __ASM_ARCH_MEMORY_H
|
|
|
|
#include <asm/sizes.h>
|
|
|
|
/*
|
|
* Physical DRAM offset.
|
|
*/
|
|
#define PLAT_PHYS_OFFSET UL(0x08000000)
|
|
|
|
#define ARM_DMA_ZONE_SIZE SZ_4M
|
|
|
|
/*
|
|
* Cache flushing area
|
|
*/
|
|
#define FLUSH_BASE_PHYS 0x80000000
|
|
#define FLUSH_BASE 0xdf000000
|
|
|
|
#endif
|