Path: blob/master/arch/arm/mach-davinci/include/mach/memory.h
17531 views
/*1* DaVinci memory space definitions2*3* Author: Kevin Hilman, MontaVista Software, Inc. <[email protected]>4*5* 2007 (c) MontaVista Software, Inc. This file is licensed under6* the terms of the GNU General Public License version 2. This program7* is licensed "as is" without any warranty of any kind, whether express8* or implied.9*/10#ifndef __ASM_ARCH_MEMORY_H11#define __ASM_ARCH_MEMORY_H1213/**************************************************************************14* Included Files15**************************************************************************/16#include <asm/page.h>17#include <asm/sizes.h>1819/**************************************************************************20* Definitions21**************************************************************************/22#define DAVINCI_DDR_BASE 0x8000000023#define DA8XX_DDR_BASE 0xc00000002425#if defined(CONFIG_ARCH_DAVINCI_DA8XX) && defined(CONFIG_ARCH_DAVINCI_DMx)26#error Cannot enable DaVinci and DA8XX platforms concurrently27#elif defined(CONFIG_ARCH_DAVINCI_DA8XX)28#define PLAT_PHYS_OFFSET DA8XX_DDR_BASE29#else30#define PLAT_PHYS_OFFSET DAVINCI_DDR_BASE31#endif3233#define DDR2_SDRCR_OFFSET 0xc34#define DDR2_SRPD_BIT BIT(23)35#define DDR2_MCLKSTOPEN_BIT BIT(30)36#define DDR2_LPMODEN_BIT BIT(31)3738/*39* Increase size of DMA-consistent memory region40*/41#define CONSISTENT_DMA_SIZE (14<<20)4243/*44* Restrict DMA-able region to workaround silicon bug. The bug45* restricts buffers available for DMA to video hardware to be46* below 128M47*/48#define ARM_DMA_ZONE_SIZE SZ_128M4950#endif /* __ASM_ARCH_MEMORY_H */515253