1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the Linux/SuperH SH-3 backends.
4#
5
6obj-y	:= ex.o probe.o entry.o setup-sh3.o
7
8obj-$(CONFIG_HIBERNATION)		+= swsusp.o
9
10# CPU subtype setup
11obj-$(CONFIG_CPU_SUBTYPE_SH7705)	+= setup-sh7705.o serial-sh770x.o
12obj-$(CONFIG_CPU_SUBTYPE_SH7706)	+= setup-sh770x.o serial-sh770x.o
13obj-$(CONFIG_CPU_SUBTYPE_SH7707)	+= setup-sh770x.o serial-sh770x.o
14obj-$(CONFIG_CPU_SUBTYPE_SH7708)	+= setup-sh770x.o serial-sh770x.o
15obj-$(CONFIG_CPU_SUBTYPE_SH7709)	+= setup-sh770x.o serial-sh770x.o
16obj-$(CONFIG_CPU_SUBTYPE_SH7710)	+= setup-sh7710.o serial-sh7710.o
17obj-$(CONFIG_CPU_SUBTYPE_SH7712)	+= setup-sh7710.o serial-sh7710.o
18obj-$(CONFIG_CPU_SUBTYPE_SH7720)	+= setup-sh7720.o serial-sh7720.o
19obj-$(CONFIG_CPU_SUBTYPE_SH7721)	+= setup-sh7720.o serial-sh7720.o
20
21# Primary on-chip clocks (common)
22clock-$(CONFIG_CPU_SH3)			:= clock-sh3.o
23clock-$(CONFIG_CPU_SUBTYPE_SH7705)	:= clock-sh7705.o
24clock-$(CONFIG_CPU_SUBTYPE_SH7706)	:= clock-sh7706.o
25clock-$(CONFIG_CPU_SUBTYPE_SH7709)	:= clock-sh7709.o
26clock-$(CONFIG_CPU_SUBTYPE_SH7710)	:= clock-sh7710.o
27clock-$(CONFIG_CPU_SUBTYPE_SH7720)	:= clock-sh7710.o
28clock-$(CONFIG_CPU_SUBTYPE_SH7712)	:= clock-sh7712.o
29
30# Pinmux setup
31pinmux-$(CONFIG_CPU_SUBTYPE_SH7720)	:= pinmux-sh7720.o
32
33obj-y	+= $(clock-y)
34obj-$(CONFIG_GPIOLIB)			+= $(pinmux-y)
35