blob: f27e89b02083de21e46ad810aecd0e1b6c1d3299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
#
# Makefile for the SCore common driver
#
ccflags-$(CONFIG_EXYNOS_SCORE_FPGA) += -DCONFIG_EXYNOS_SCORE_FPGA
ccflags-$(CONFIG_EXYNOS_SCORE_V2) += -DCONFIG_EXYNOS_SCORE_V2
ccflags-$(CONFIG_EXYNOS_SCORE_V3) += -DCONFIG_EXYNOS_SCORE_V3
ccflags-$(CONFIG_EXYNOS_SCORE_FPGA) += -DSCORE_EVT1
ifeq ($(CONFIG_SOC_EXYNOS9810_EVT1),y)
ccflags-$(CONFIG_SOC_EXYNOS9810) += -DSCORE_EVT1
else
ccflags-$(CONFIG_SOC_EXYNOS9810) += -DSCORE_EVT0
endif
ifeq ($(CONFIG_SOC_EXYNOS9820_EVT0),y)
ccflags-$(CONFIG_SOC_EXYNOS9820) += -DSCORE_EVT0
else
ccflags-$(CONFIG_SOC_EXYNOS9820) += -DSCORE_EVT1
endif
ifeq ($(CONFIG_EXYNOS_SCORE_FPGA),y)
ccflags-y += -I${src}/
ccflags-$(CONFIG_EXYNOS_SCORE_V2) += -I${src}/hardware/v2
ccflags-$(CONFIG_EXYNOS_SCORE_V2) += -I${src}/hardware/v2/v2_0
ccflags-$(CONFIG_EXYNOS_SCORE_V3) += -I${src}/hardware/v3
ccflags-$(CONFIG_EXYNOS_SCORE_V3) += -I${src}/hardware/v3/v3_0
else
ccflags-$(CONFIG_EXYNOS_SCORE) += -Idrivers/vision/score
ccflags-$(CONFIG_EXYNOS_SCORE_V2) += -Idrivers/vision/score/hardware/v2
ccflags-$(CONFIG_EXYNOS_SCORE_V2) += -Idrivers/vision/score/hardware/v2/v2_1
ccflags-$(CONFIG_EXYNOS_SCORE_V3) += -Idrivers/vision/score/hardware/v3
ccflags-$(CONFIG_EXYNOS_SCORE_V3) += -Idrivers/vision/score/hardware/v3/v3_1
endif
score-objs := score_device.o
score-objs += score_core.o
score-objs += score_ioctl.o
ifeq ($(CONFIG_COMPAT),y)
score-objs += score_compat_ioctl.o
endif
score-objs += score_frame.o
score-objs += score_context.o
score-objs += score_util.o
score-objs += score_mmu.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_system.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_interface.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_firmware.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_scq.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_sm.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_sr.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_print.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_dpmu.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_profiler.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/score_sysfs.o
ifeq ($(CONFIG_EXYNOS_SCORE_FPGA),y)
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_0/score_memory.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_0/score_clk.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_0/score_pm.o
else
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_1/score_memory.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_1/score_clk.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_1/score_pm.o
score-objs-$(CONFIG_EXYNOS_SCORE_V2) += hardware/v2/v2_1/score_ion.o
endif
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_system.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_interface.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_firmware.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_scq.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_sm.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_sr.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_print.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_dpmu.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_profiler.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/score_sysfs.o
ifeq ($(CONFIG_EXYNOS_SCORE_FPGA),y)
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/v3_0/score_memory.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/v3_0/score_clk.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/v3_0/score_pm.o
else
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/v3_1/score_memory.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/v3_1/score_clk.o
score-objs-$(CONFIG_EXYNOS_SCORE_V3) += hardware/v3/v3_1/score_pm.o
endif
score-objs += $(score-objs-y)
ifeq ($(CONFIG_EXYNOS_SCORE_FPGA),y)
obj-m += score.o
else
obj-$(CONFIG_EXYNOS_SCORE) += score.o
endif
|