1# SPDX-License-Identifier: GPL-2.0 2# 3# Copyright 2009 Simtec Electronics 4 5ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include 6 7ifdef CONFIG_ARCH_S3C24XX 8include $(src)/Makefile.s3c24xx 9endif 10 11ifdef CONFIG_ARCH_S3C64XX 12include $(src)/Makefile.s3c64xx 13endif 14 15# Objects we always build independent of SoC choice 16 17obj-y += init.o cpu.o 18 19# ADC 20 21obj-$(CONFIG_S3C_ADC) += adc.o 22 23# devices 24 25obj-$(CONFIG_SAMSUNG_ATAGS) += platformdata.o 26 27obj-$(CONFIG_SAMSUNG_ATAGS) += devs.o 28obj-$(CONFIG_SAMSUNG_ATAGS) += dev-uart.o 29 30obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o 31 32# PM support 33 34obj-$(CONFIG_SAMSUNG_PM) += pm.o pm-common.o 35obj-$(CONFIG_SAMSUNG_PM_GPIO) += pm-gpio.o 36 37obj-$(CONFIG_SAMSUNG_WAKEMASK) += wakeup-mask.o 38