diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/memory.h')
| -rw-r--r-- | arch/arm/mach-tegra/include/mach/memory.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h new file mode 100644 index 00000000000..5f51066482e --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/memory.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-tegra/include/mach/memory.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010 Google, Inc. | ||
| 5 | * Copyright (C) 2011 NVIDIA Corporation. | ||
| 6 | * | ||
| 7 | * Author: | ||
| 8 | * Colin Cross <ccross@google.com> | ||
| 9 | * Erik Gilling <konkers@google.com> | ||
| 10 | * | ||
| 11 | * This software is licensed under the terms of the GNU General Public | ||
| 12 | * License version 2, as published by the Free Software Foundation, and | ||
| 13 | * may be copied, distributed, and modified under those terms. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, | ||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | * GNU General Public License for more details. | ||
| 19 | * | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef __MACH_TEGRA_MEMORY_H | ||
| 23 | #define __MACH_TEGRA_MEMORY_H | ||
| 24 | |||
| 25 | /* physical offset of RAM */ | ||
| 26 | #if defined(CONFIG_ARCH_TEGRA_2x_SOC) | ||
| 27 | #define PLAT_PHYS_OFFSET UL(0) | ||
| 28 | #else | ||
| 29 | #define PLAT_PHYS_OFFSET UL(0x80000000) | ||
| 30 | #endif | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Unaligned DMA causes tegra dma to place data on 4-byte boundary after | ||
| 34 | * expected address. Call to skb_reserve(skb, NET_IP_ALIGN) was causing skb | ||
| 35 | * buffers in usbnet.c to become unaligned. | ||
| 36 | */ | ||
| 37 | #define NET_IP_ALIGN 0 | ||
| 38 | |||
| 39 | #define CONSISTENT_DMA_SIZE (14 * SZ_1M) | ||
| 40 | |||
| 41 | #endif | ||
| 42 | |||
