blob: da10da2d1f7a75525f5e90ed3cec6a6c52f1db16 [file] [log] [blame]
Marek Vasutd7af4952019-06-15 15:01:04 +02001#
2# Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${RCAR_LSI},${RCAR_AUTO})
8# E3, H3N not available for LSI_AUTO
9 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v10.c
10 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v11.c
11 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v20.c
12 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v30.c
13 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v10.c
14 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v11.c
15 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v30.c
16 BL2_SOURCES += drivers/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
17 BL2_SOURCES += drivers/renesas/rcar/qos/V3M/qos_init_v3m.c
18else ifdef RCAR_LSI_CUT_COMPAT
19 ifeq (${RCAR_LSI},${RCAR_H3})
20 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v10.c
21 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v11.c
22 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v20.c
23 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v30.c
24 endif
25 ifeq (${RCAR_LSI},${RCAR_H3N})
26 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3n_v30.c
27 endif
28 ifeq (${RCAR_LSI},${RCAR_M3})
29 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v10.c
30 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v11.c
31 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v30.c
32 endif
33 ifeq (${RCAR_LSI},${RCAR_M3N})
34 BL2_SOURCES += drivers/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
35 endif
36 ifeq (${RCAR_LSI},${RCAR_V3M})
37 BL2_SOURCES += drivers/renesas/rcar/qos/V3M/qos_init_v3m.c
38 endif
39 ifeq (${RCAR_LSI},${RCAR_E3})
40 BL2_SOURCES += drivers/renesas/rcar/qos/E3/qos_init_e3_v10.c
41 endif
42 ifeq (${RCAR_LSI},${RCAR_D3})
43 BL2_SOURCES += drivers/renesas/rcar/qos/D3/qos_init_d3.c
44 endif
45else
46 ifeq (${RCAR_LSI},${RCAR_H3})
47 ifeq (${LSI_CUT},10)
48 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v10.c
49 else ifeq (${LSI_CUT},11)
50 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v11.c
51 else ifeq (${LSI_CUT},20)
52 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v20.c
53 else ifeq (${LSI_CUT},30)
54 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v30.c
55 else
56# LSI_CUT 30 or later
57 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3_v30.c
58 endif
59 endif
60 ifeq (${RCAR_LSI},${RCAR_H3N})
61 ifeq (${LSI_CUT},30)
62 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3n_v30.c
63 else
64# LSI_CUT 30 or later
65 BL2_SOURCES += drivers/renesas/rcar/qos/H3/qos_init_h3n_v30.c
66 endif
67 endif
68 ifeq (${RCAR_LSI},${RCAR_M3})
69 ifeq (${LSI_CUT},10)
70 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v10.c
71 else ifeq (${LSI_CUT},11)
72 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v11.c
73 else ifeq (${LSI_CUT},13)
74 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v11.c
75 else ifeq (${LSI_CUT},30)
76 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v30.c
77 else
78# LSI_CUT 30 or later
79 BL2_SOURCES += drivers/renesas/rcar/qos/M3/qos_init_m3_v30.c
80 endif
81 endif
82 ifeq (${RCAR_LSI},${RCAR_M3N})
83 ifeq (${LSI_CUT},10)
84 BL2_SOURCES += drivers/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
85 else
86# LSI_CUT 10 or later
87 BL2_SOURCES += drivers/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
88 endif
89 endif
90 ifeq (${RCAR_LSI},${RCAR_V3M})
91 BL2_SOURCES += drivers/renesas/rcar/qos/V3M/qos_init_v3m.c
92 endif
93 ifeq (${RCAR_LSI},${RCAR_E3})
94 ifeq (${LSI_CUT},10)
95 BL2_SOURCES += drivers/renesas/rcar/qos/E3/qos_init_e3_v10.c
96 else
97# LSI_CUT 10 or later
98 BL2_SOURCES += drivers/renesas/rcar/qos/E3/qos_init_e3_v10.c
99 endif
100 endif
101 ifeq (${RCAR_LSI},${RCAR_D3})
102 BL2_SOURCES += drivers/renesas/rcar/qos/E3/qos_init_d3.c
103 endif
104endif
105
106BL2_SOURCES += drivers/renesas/rcar/qos/qos_init.c