~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to arch/arm/mach-u300/include/mach/memory.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 23:00:52 UTC
  • Revision ID: james.westby@ubuntu.com-20090805230052-7xedvqcyk9dnnxb2
Tags: 2.6.31-1.1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * arch/arm/mach-u300/include/mach/memory.h
 
4
 *
 
5
 *
 
6
 * Copyright (C) 2007-2009 ST-Ericsson AB
 
7
 * License terms: GNU General Public License (GPL) version 2
 
8
 * Memory virtual/physical mapping constants.
 
9
 * Author: Linus Walleij <linus.walleij@stericsson.com>
 
10
 * Author: Jonas Aaberg <jonas.aberg@stericsson.com>
 
11
 */
 
12
 
 
13
#ifndef __MACH_MEMORY_H
 
14
#define __MACH_MEMORY_H
 
15
 
 
16
#ifdef CONFIG_MACH_U300_DUAL_RAM
 
17
 
 
18
#define PHYS_OFFSET             UL(0x48000000)
 
19
#define BOOT_PARAMS_OFFSET      (PHYS_OFFSET + 0x100)
 
20
 
 
21
#else
 
22
 
 
23
#ifdef CONFIG_MACH_U300_2MB_ALIGNMENT_FIX
 
24
#define PHYS_OFFSET (0x28000000 + \
 
25
             (CONFIG_MACH_U300_ACCESS_MEM_SIZE - \
 
26
             (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024)
 
27
#else
 
28
#define PHYS_OFFSET (0x28000000 + \
 
29
             (CONFIG_MACH_U300_ACCESS_MEM_SIZE +        \
 
30
             (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024)
 
31
#endif
 
32
#define BOOT_PARAMS_OFFSET (0x28000000 + \
 
33
            (CONFIG_MACH_U300_ACCESS_MEM_SIZE +         \
 
34
            (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024 + 0x100)
 
35
#endif
 
36
 
 
37
/*
 
38
 * We enable a real big DMA buffer if need be.
 
39
 */
 
40
#define CONSISTENT_DMA_SIZE SZ_4M
 
41
 
 
42
#endif