f4117ac9e2
This uncouple PHYS_OFFSET from the platform definitions, thereby facilitating run-time computation of the physical memory offset. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@st.com> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Magnus Damm <damm@opensource.se> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Wan ZongShun <mcuos.com@gmail.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Eric Miao <eric.y.miao@gmail.com> Acked-by: Jiandong Zheng <jdzheng@broadcom.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
31 lines
800 B
C
31 lines
800 B
C
/*
|
|
* arch/arm/mach-pxa/include/mach/memory.h
|
|
*
|
|
* Author: Nicolas Pitre
|
|
* Copyright: (C) 2001 MontaVista Software Inc.
|
|
*
|
|
* This program 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 __ASM_ARCH_MEMORY_H
|
|
#define __ASM_ARCH_MEMORY_H
|
|
|
|
/*
|
|
* Physical DRAM offset.
|
|
*/
|
|
#define PLAT_PHYS_OFFSET UL(0xa0000000)
|
|
|
|
#if !defined(__ASSEMBLY__) && defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI)
|
|
void cmx2xx_pci_adjust_zones(unsigned long *size, unsigned long *holes);
|
|
|
|
#define arch_adjust_zones(size, holes) \
|
|
cmx2xx_pci_adjust_zones(size, holes)
|
|
|
|
#define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_64M - 1)
|
|
#define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M)
|
|
#endif
|
|
|
|
#endif
|