Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[deliverable/linux.git] / include / asm-arm / arch-lh7a40x / constants.h
1 /* include/asm-arm/arch-lh7a40x/constants.h
2 *
3 * Copyright (C) 2004 Coastal Environmental Systems
4 * Copyright (C) 2004 Logic Product Development
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
9 *
10 */
11
12 #ifndef __ASM_ARCH_CONSTANTS_H
13 #define __ASM_ARCH_CONSTANTS_H
14
15
16 /* Addressing constants */
17
18 /* SoC CPU IO addressing */
19 #define IO_PHYS (0x80000000)
20 #define IO_VIRT (0xf8000000)
21 #define IO_SIZE (0x0000B000)
22
23 #ifdef CONFIG_MACH_KEV7A400
24 # define CPLD_PHYS (0x20000000)
25 # define CPLD_VIRT (0xf2000000)
26 # define CPLD_SIZE PAGE_SIZE
27 #endif
28
29 #if defined (CONFIG_MACH_LPD7A400) || defined (CONFIG_MACH_LPD7A404)
30
31 # define IOBARRIER_PHYS 0xc0000000 /* Start of SDRAM */
32 /*# define IOBARRIER_PHYS 0x00000000 */ /* Start of flash */
33 # define IOBARRIER_VIRT 0xf0000000
34 # define IOBARRIER_SIZE PAGE_SIZE
35
36 # define CF_PHYS 0x60200000
37 # define CF_VIRT 0xf6020000
38 # define CF_SIZE (8*1024)
39
40 /* The IO mappings for the LPD CPLD are, unfortunately, sparse. */
41 # define CPLDX_PHYS(x) (0x70000000 | ((x) << 20))
42 # define CPLDX_VIRT(x) (0xf7000000 | ((x) << 16))
43 # define CPLD00_PHYS CPLDX_PHYS (0x00) /* Wired LAN */
44 # define CPLD00_VIRT CPLDX_VIRT (0x00)
45 # define CPLD00_SIZE PAGE_SIZE
46 # define CPLD02_PHYS CPLDX_PHYS (0x02)
47 # define CPLD02_VIRT CPLDX_VIRT (0x02)
48 # define CPLD02_SIZE PAGE_SIZE
49 # define CPLD06_PHYS CPLDX_PHYS (0x06)
50 # define CPLD06_VIRT CPLDX_VIRT (0x06)
51 # define CPLD06_SIZE PAGE_SIZE
52 # define CPLD08_PHYS CPLDX_PHYS (0x08)
53 # define CPLD08_VIRT CPLDX_VIRT (0x08)
54 # define CPLD08_SIZE PAGE_SIZE
55 # define CPLD0C_PHYS CPLDX_PHYS (0x0c)
56 # define CPLD0C_VIRT CPLDX_VIRT (0x0c)
57 # define CPLD0C_SIZE PAGE_SIZE
58 # define CPLD0E_PHYS CPLDX_PHYS (0x0e)
59 # define CPLD0E_VIRT CPLDX_VIRT (0x0e)
60 # define CPLD0E_SIZE PAGE_SIZE
61 # define CPLD10_PHYS CPLDX_PHYS (0x10)
62 # define CPLD10_VIRT CPLDX_VIRT (0x10)
63 # define CPLD10_SIZE PAGE_SIZE
64 # define CPLD12_PHYS CPLDX_PHYS (0x12)
65 # define CPLD12_VIRT CPLDX_VIRT (0x12)
66 # define CPLD12_SIZE PAGE_SIZE
67 # define CPLD14_PHYS CPLDX_PHYS (0x14)
68 # define CPLD14_VIRT CPLDX_VIRT (0x14)
69 # define CPLD14_SIZE PAGE_SIZE
70 # define CPLD16_PHYS CPLDX_PHYS (0x16)
71 # define CPLD16_VIRT CPLDX_VIRT (0x16)
72 # define CPLD16_SIZE PAGE_SIZE
73 # define CPLD18_PHYS CPLDX_PHYS (0x18)
74 # define CPLD18_VIRT CPLDX_VIRT (0x18)
75 # define CPLD18_SIZE PAGE_SIZE
76 # define CPLD1A_PHYS CPLDX_PHYS (0x1a)
77 # define CPLD1A_VIRT CPLDX_VIRT (0x1a)
78 # define CPLD1A_SIZE PAGE_SIZE
79 #endif
80
81 /* Timing constants */
82
83 #define XTAL_IN 14745600 /* 14.7456 MHz crystal */
84 #define PLL_CLOCK (XTAL_IN * 21) /* 309 MHz PLL clock */
85 #define MAX_HCLK_KHZ 100000 /* HCLK max limit ~100MHz */
86
87 #endif /* __ASM_ARCH_CONSTANTS_H */
This page took 0.033909 seconds and 6 git commands to generate.