mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:45:36 +07:00
477099f189
Apart from the necessity to do this change for multi-platform kernels the previous logic depended on the zImage decompressor to write the physical and virtual address to a magic memory location. If the decompressor is unused or not correctly configured for the current machid, the addruart macro was an infinite loop. Moreover debugging the early zImage code was not possible either. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [nsekhar@ti.com: add braces in _DEBUG_LL_ENTRY() macro to fix checkpatch error. Fix debug port choice config dependency for traditional DaVincis. Modify debug port config names and add help text.] Signed-off-by: Sekhar Nori <nsekhar@ti.com>
34 lines
1022 B
C
34 lines
1022 B
C
/*
|
|
* Hardware definitions common to all DaVinci family processors
|
|
*
|
|
* Author: Kevin Hilman, Deep Root Systems, LLC
|
|
*
|
|
* 2007 (c) Deep Root Systems, LLC. 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.
|
|
*/
|
|
#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 */
|