~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-picoxcell/io.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2011 Picochip Ltd., Jamie Iles
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License version 2 as
 
6
 * published by the Free Software Foundation.
 
7
 *
 
8
 * All enquiries to support@picochip.com
 
9
 */
 
10
#include <linux/io.h>
 
11
#include <linux/mm.h>
 
12
#include <linux/module.h>
 
13
#include <linux/of.h>
 
14
 
 
15
#include <asm/mach/map.h>
 
16
 
 
17
#include <mach/map.h>
 
18
#include <mach/picoxcell_soc.h>
 
19
 
 
20
#include "common.h"
 
21
 
 
22
void __init picoxcell_map_io(void)
 
23
{
 
24
        struct map_desc io_map = {
 
25
                .virtual        = PHYS_TO_IO(PICOXCELL_PERIPH_BASE),
 
26
                .pfn            = __phys_to_pfn(PICOXCELL_PERIPH_BASE),
 
27
                .length         = PICOXCELL_PERIPH_LENGTH,
 
28
                .type           = MT_DEVICE,
 
29
        };
 
30
 
 
31
        iotable_init(&io_map, 1);
 
32
}