blob: 153d1d817d9bc10169fb8ecf2f71dfc429e3687a [file] [log] [blame]
Jorge Ramirez-Ortiz47503d22018-09-23 09:36:52 +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/staging/renesas/rcar/qos/H3/qos_init_h3_v10.c
10 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
11 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c
12 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
13 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v10.c
14 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
15 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
16else ifdef RCAR_LSI_CUT_COMPAT
17 ifeq (${RCAR_LSI},${RCAR_H3})
18 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v10.c
19 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
20 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c
21 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
22 endif
23 ifeq (${RCAR_LSI},${RCAR_H3N})
24 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c
25 endif
26 ifeq (${RCAR_LSI},${RCAR_M3})
27 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v10.c
28 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
29 endif
30 ifeq (${RCAR_LSI},${RCAR_M3N})
31 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
32 endif
33 ifeq (${RCAR_LSI},${RCAR_E3})
34 BL2_SOURCES += drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c
35 endif
36else
37 ifeq (${RCAR_LSI},${RCAR_H3})
38 ifeq (${LSI_CUT},10)
39 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v10.c
40 else ifeq (${LSI_CUT},11)
41 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
42 else ifeq (${LSI_CUT},20)
43 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c
44 else ifeq (${LSI_CUT},30)
45 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
46 else
47# LSI_CUT 30 or later
48 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
49 endif
50 endif
51 ifeq (${RCAR_LSI},${RCAR_H3N})
52 ifeq (${LSI_CUT},30)
53 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c
54 else
55# LSI_CUT 30 or later
56 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c
57 endif
58 endif
59 ifeq (${RCAR_LSI},${RCAR_M3})
60 ifeq (${LSI_CUT},10)
61 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v10.c
62 else ifeq (${LSI_CUT},11)
63 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
64 else
65# LSI_CUT 11 or later
66 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
67 endif
68 endif
69 ifeq (${RCAR_LSI},${RCAR_M3N})
70 ifeq (${LSI_CUT},10)
71 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
72 else
73# LSI_CUT 10 or later
74 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
75 endif
76 endif
77 ifeq (${RCAR_LSI},${RCAR_E3})
78 ifeq (${LSI_CUT},10)
79 BL2_SOURCES += drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c
80 else
81# LSI_CUT 10 or later
82 BL2_SOURCES += drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c
83 endif
84 endif
85endif
86
87BL2_SOURCES += drivers/staging/renesas/rcar/qos/qos_init.c