blob: 9fabc56f8169418874f5c6088a78b6728d23c7af [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
Marek Vasut3af20052019-02-25 14:57:08 +010015 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v30.c
Jorge Ramirez-Ortiz47503d22018-09-23 09:36:52 +020016 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
17else ifdef RCAR_LSI_CUT_COMPAT
18 ifeq (${RCAR_LSI},${RCAR_H3})
19 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v10.c
20 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
21 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c
22 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
23 endif
24 ifeq (${RCAR_LSI},${RCAR_H3N})
25 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c
26 endif
27 ifeq (${RCAR_LSI},${RCAR_M3})
28 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v10.c
29 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
Marek Vasut3af20052019-02-25 14:57:08 +010030 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v30.c
Jorge Ramirez-Ortiz47503d22018-09-23 09:36:52 +020031 endif
32 ifeq (${RCAR_LSI},${RCAR_M3N})
33 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
34 endif
35 ifeq (${RCAR_LSI},${RCAR_E3})
36 BL2_SOURCES += drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c
37 endif
38else
39 ifeq (${RCAR_LSI},${RCAR_H3})
40 ifeq (${LSI_CUT},10)
41 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v10.c
42 else ifeq (${LSI_CUT},11)
43 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v11.c
44 else ifeq (${LSI_CUT},20)
45 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v20.c
46 else ifeq (${LSI_CUT},30)
47 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
48 else
49# LSI_CUT 30 or later
50 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3_v30.c
51 endif
52 endif
53 ifeq (${RCAR_LSI},${RCAR_H3N})
54 ifeq (${LSI_CUT},30)
55 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c
56 else
57# LSI_CUT 30 or later
58 BL2_SOURCES += drivers/staging/renesas/rcar/qos/H3/qos_init_h3n_v30.c
59 endif
60 endif
61 ifeq (${RCAR_LSI},${RCAR_M3})
62 ifeq (${LSI_CUT},10)
63 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v10.c
64 else ifeq (${LSI_CUT},11)
65 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
Marek Vasut3af20052019-02-25 14:57:08 +010066 else ifeq (${LSI_CUT},13)
Jorge Ramirez-Ortiz47503d22018-09-23 09:36:52 +020067 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v11.c
Marek Vasut3af20052019-02-25 14:57:08 +010068 else ifeq (${LSI_CUT},30)
69 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v30.c
70 else
71# LSI_CUT 30 or later
72 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3/qos_init_m3_v30.c
Jorge Ramirez-Ortiz47503d22018-09-23 09:36:52 +020073 endif
74 endif
75 ifeq (${RCAR_LSI},${RCAR_M3N})
76 ifeq (${LSI_CUT},10)
77 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
78 else
79# LSI_CUT 10 or later
80 BL2_SOURCES += drivers/staging/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
81 endif
82 endif
83 ifeq (${RCAR_LSI},${RCAR_E3})
84 ifeq (${LSI_CUT},10)
85 BL2_SOURCES += drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c
86 else
87# LSI_CUT 10 or later
88 BL2_SOURCES += drivers/staging/renesas/rcar/qos/E3/qos_init_e3_v10.c
89 endif
90 endif
91endif
92
93BL2_SOURCES += drivers/staging/renesas/rcar/qos/qos_init.c