mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 13:34:38 +08:00
0fdebc5ec2
Based on the normalized pattern: this file is licensed under the terms of the gnu general public license version 2 this program is licensed as is without any warranty of any kind whether express or implied extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference. Reviewed-by: Allison Randal <allison@lohutok.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
879 B
C
32 lines
879 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Hardware definitions common to all DaVinci family processors
|
|
*
|
|
* Author: Kevin Hilman, Deep Root Systems, LLC
|
|
*
|
|
* 2007 (c) Deep Root Systems, LLC.
|
|
*/
|
|
#ifndef __ASM_ARCH_HARDWARE_H
|
|
#define __ASM_ARCH_HARDWARE_H
|
|
|
|
/*
|
|
* Before you add anything to ths file:
|
|
*
|
|
* This header is for defines common to ALL DaVinci family chips.
|
|
* Anything that is chip specific should go in <chipname>.h,
|
|
* and the chip/board init code should then explicitly include
|
|
* <chipname>.h
|
|
*/
|
|
/*
|
|
* I/O mapping
|
|
*/
|
|
#define IO_PHYS UL(0x01c00000)
|
|
#define IO_OFFSET 0xfd000000 /* Virtual IO = 0xfec00000 */
|
|
#define IO_SIZE 0x00400000
|
|
#define IO_VIRT (IO_PHYS + IO_OFFSET)
|
|
#define io_v2p(va) ((va) - IO_OFFSET)
|
|
#define __IO_ADDRESS(x) ((x) + IO_OFFSET)
|
|
#define IO_ADDRESS(pa) IOMEM(__IO_ADDRESS(pa))
|
|
|
|
#endif /* __ASM_ARCH_HARDWARE_H */
|