Root/
1 | /* |
2 | * linux/arch/arm/mach-tcc8k/io.c |
3 | * |
4 | * (C) 2009 Hans J. Koch <hjk@linutronix.de> |
5 | * |
6 | * derived from TCC83xx io.c |
7 | * Copyright (C) Telechips, Inc. |
8 | * |
9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License version 2 as |
11 | * published by the Free Software Foundation. |
12 | */ |
13 | |
14 | #include <linux/init.h> |
15 | #include <linux/io.h> |
16 | #include <linux/kernel.h> |
17 | |
18 | #include <asm/mach/map.h> |
19 | |
20 | #include <mach/tcc8k-regs.h> |
21 | |
22 | /* |
23 | * The machine specific code may provide the extra mapping besides the |
24 | * default mapping provided here. |
25 | */ |
26 | static struct map_desc tcc8k_io_desc[] __initdata = { |
27 | { |
28 | .virtual = (unsigned long)CS1_BASE_VIRT, |
29 | .pfn = __phys_to_pfn(CS1_BASE), |
30 | .length = CS1_SIZE, |
31 | .type = MT_DEVICE, |
32 | }, { |
33 | .virtual = (unsigned long)AHB_PERI_BASE_VIRT, |
34 | .pfn = __phys_to_pfn(AHB_PERI_BASE), |
35 | .length = AHB_PERI_SIZE, |
36 | .type = MT_DEVICE, |
37 | }, { |
38 | .virtual = (unsigned long)APB0_PERI_BASE_VIRT, |
39 | .pfn = __phys_to_pfn(APB0_PERI_BASE), |
40 | .length = APB0_PERI_SIZE, |
41 | .type = MT_DEVICE, |
42 | }, { |
43 | .virtual = (unsigned long)APB1_PERI_BASE_VIRT, |
44 | .pfn = __phys_to_pfn(APB1_PERI_BASE), |
45 | .length = APB1_PERI_SIZE, |
46 | .type = MT_DEVICE, |
47 | }, { |
48 | .virtual = (unsigned long)EXT_MEM_CTRL_BASE_VIRT, |
49 | .pfn = __phys_to_pfn(EXT_MEM_CTRL_BASE), |
50 | .length = EXT_MEM_CTRL_SIZE, |
51 | .type = MT_DEVICE, |
52 | }, |
53 | }; |
54 | |
55 | /* |
56 | * Maps common IO regions for tcc8k. |
57 | * |
58 | */ |
59 | void __init tcc8k_map_common_io(void) |
60 | { |
61 | iotable_init(tcc8k_io_desc, ARRAY_SIZE(tcc8k_io_desc)); |
62 | } |
63 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9