1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the Linux/SuperH SH-4 backends.
4#
5
6obj-y	:= probe.o common.o
7common-y	+= $(addprefix ../sh3/, entry.o ex.o)
8
9obj-$(CONFIG_HIBERNATION)		+= $(addprefix ../sh3/, swsusp.o)
10obj-$(CONFIG_SH_FPU)			+= fpu.o softfloat.o
11obj-$(CONFIG_SH_STORE_QUEUES)		+= sq.o
12
13# Perf events
14perf-$(CONFIG_CPU_SUBTYPE_SH7750)	:= perf_event.o
15perf-$(CONFIG_CPU_SUBTYPE_SH7750S)	:= perf_event.o
16perf-$(CONFIG_CPU_SUBTYPE_SH7091)	:= perf_event.o
17
18# CPU subtype setup
19obj-$(CONFIG_CPU_SUBTYPE_SH7750)	+= setup-sh7750.o
20obj-$(CONFIG_CPU_SUBTYPE_SH7750R)	+= setup-sh7750.o
21obj-$(CONFIG_CPU_SUBTYPE_SH7750S)	+= setup-sh7750.o
22obj-$(CONFIG_CPU_SUBTYPE_SH7091)	+= setup-sh7750.o
23obj-$(CONFIG_CPU_SUBTYPE_SH7751)	+= setup-sh7750.o
24obj-$(CONFIG_CPU_SUBTYPE_SH7751R)	+= setup-sh7750.o
25obj-$(CONFIG_CPU_SUBTYPE_SH7760)	+= setup-sh7760.o
26obj-$(CONFIG_CPU_SUBTYPE_SH4_202)	+= setup-sh4-202.o
27
28# Primary on-chip clocks (common)
29ifndef CONFIG_CPU_SH4A
30clock-$(CONFIG_CPU_SH4)			:= clock-sh4.o
31endif
32
33# Additional clocks by subtype
34clock-$(CONFIG_CPU_SUBTYPE_SH4_202)	+= clock-sh4-202.o
35
36obj-y					+= $(clock-y)
37obj-$(CONFIG_PERF_EVENTS)		+= $(perf-y)
38