ARM: ux500: update ASIC detection for U5500
[deliverable/linux.git] / arch / arm / mach-ux500 / include / mach / hardware.h
CommitLineData
ffae4e01
SK
1/*
2 * Copyright (C) 2009 ST-Ericsson.
3 *
4 * U8500 hardware definitions
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10#ifndef __MACH_HARDWARE_H
11#define __MACH_HARDWARE_H
12
d5608bbf
LW
13/*
14 * Macros to get at IO space when running virtually
ffae4e01
SK
15 * We dont map all the peripherals, let ioremap do
16 * this for us. We map only very basic peripherals here.
17 */
18#define U8500_IO_VIRTUAL 0xf0000000
19#define U8500_IO_PHYSICAL 0xa0000000
20
d5608bbf 21/* This macro is used in assembly, so no cast */
ffae4e01
SK
22#define IO_ADDRESS(x) \
23 (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + U8500_IO_VIRTUAL)
24
25/* typesafe io address */
26#define __io_address(n) __io(IO_ADDRESS(n))
d5608bbf 27/* Used by some plat-nomadik code */
94bdc0e2 28#define io_p2v(n) __io_address(n)
ffae4e01 29
c9c09572
RV
30#include <mach/db8500-regs.h>
31#include <mach/db5500-regs.h>
32
75a36ee0
RV
33#ifndef __ASSEMBLY__
34
abf12d71 35#include <mach/id.h>
11871890 36extern void __iomem *_PRCMU_BASE;
591d8dd7 37
01afdd13
RV
38#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
39
d5608bbf 40#endif /* __ASSEMBLY__ */
ffae4e01 41#endif /* __MACH_HARDWARE_H */
This page took 0.127506 seconds and 5 git commands to generate.