mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
108 lines
2.5 KiB
C
108 lines
2.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* arch/arm/include/asm/arch-rmobile/rcar-mstp.h
|
|
*
|
|
* Copyright (C) 2013, 2014 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
|
|
* Copyright (C) 2013, 2014 Renesas Electronics Corporation
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_RCAR_MSTP_H
|
|
#define __ASM_ARCH_RCAR_MSTP_H
|
|
|
|
#define mstp_setbits(type, addr, saddr, set) \
|
|
out_##type((saddr), in_##type(addr) | (set))
|
|
#define mstp_clrbits(type, addr, saddr, clear) \
|
|
out_##type((saddr), in_##type(addr) & ~(clear))
|
|
#define mstp_setclrbits(type, addr, set, clear) \
|
|
out_##type((addr), (in_##type(addr) | (set)) & ~(clear))
|
|
#define mstp_setbits_le32(addr, saddr, set) \
|
|
mstp_setbits(le32, addr, saddr, set)
|
|
#define mstp_clrbits_le32(addr, saddr, clear) \
|
|
mstp_clrbits(le32, addr, saddr, clear)
|
|
#define mstp_setclrbits_le32(addr, set, clear) \
|
|
mstp_setclrbits(le32, addr, set, clear)
|
|
|
|
#ifndef CONFIG_SMSTP0_ENA
|
|
#define CONFIG_SMSTP0_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP1_ENA
|
|
#define CONFIG_SMSTP1_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP2_ENA
|
|
#define CONFIG_SMSTP2_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP3_ENA
|
|
#define CONFIG_SMSTP3_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP4_ENA
|
|
#define CONFIG_SMSTP4_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP5_ENA
|
|
#define CONFIG_SMSTP5_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP6_ENA
|
|
#define CONFIG_SMSTP6_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP7_ENA
|
|
#define CONFIG_SMSTP7_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP8_ENA
|
|
#define CONFIG_SMSTP8_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP9_ENA
|
|
#define CONFIG_SMSTP9_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP10_ENA
|
|
#define CONFIG_SMSTP10_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_SMSTP11_ENA
|
|
#define CONFIG_SMSTP11_ENA 0x00
|
|
#endif
|
|
|
|
#ifndef CONFIG_RMSTP0_ENA
|
|
#define CONFIG_RMSTP0_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP1_ENA
|
|
#define CONFIG_RMSTP1_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP2_ENA
|
|
#define CONFIG_RMSTP2_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP3_ENA
|
|
#define CONFIG_RMSTP3_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP4_ENA
|
|
#define CONFIG_RMSTP4_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP5_ENA
|
|
#define CONFIG_RMSTP5_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP6_ENA
|
|
#define CONFIG_RMSTP6_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP7_ENA
|
|
#define CONFIG_RMSTP7_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP8_ENA
|
|
#define CONFIG_RMSTP8_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP9_ENA
|
|
#define CONFIG_RMSTP9_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP10_ENA
|
|
#define CONFIG_RMSTP10_ENA 0x00
|
|
#endif
|
|
#ifndef CONFIG_RMSTP11_ENA
|
|
#define CONFIG_RMSTP11_ENA 0x00
|
|
#endif
|
|
|
|
struct mstp_ctl {
|
|
u32 s_addr;
|
|
u32 s_dis;
|
|
u32 s_ena;
|
|
u32 r_addr;
|
|
u32 r_dis;
|
|
u32 r_ena;
|
|
};
|
|
|
|
#endif /* __ASM_ARCH_RCAR_MSTP_H */
|