mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 04:26:42 +07:00
f9324a85c1
Add IOMEM(x) definition, and use it with MISC_BASE for SPEAr platform. With this there is no need to typecast misc macros to (unsigned int *). Reviewed-by: Stanley Miao <stanley.miao@windriver.com> Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
24 lines
551 B
C
24 lines
551 B
C
/*
|
|
* arch/arm/plat-spear/include/plat/hardware.h
|
|
*
|
|
* Hardware definitions for SPEAr
|
|
*
|
|
* Copyright (C) 2010 ST Microelectronics
|
|
* Viresh Kumar<viresh.kumar@st.com>
|
|
*
|
|
* 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 __PLAT_HARDWARE_H
|
|
#define __PLAT_HARDWARE_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#define IOMEM(x) ((void __iomem __force *)(x))
|
|
#else
|
|
#define IOMEM(x) (x)
|
|
#endif
|
|
|
|
#endif /* __PLAT_HARDWARE_H */
|