1#
2# Copyright (c) 2020-2021, Renesas Electronics Corporation. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${RCAR_LSI},${RCAR_AUTO})
8    BL2_SOURCES += drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c
9    BL2_SOURCES += drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c
10    BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v10.c
11    BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v11.c
12    BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v30.c
13    BL2_SOURCES += drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c
14else ifeq (${RCAR_LSI_CUT_COMPAT},1)
15  ifeq (${RCAR_LSI},${RZ_G2M})
16    BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v10.c
17    BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v11.c
18    BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v30.c
19  endif
20  ifeq (${RCAR_LSI},${RZ_G2H})
21    BL2_SOURCES += drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c
22  endif
23  ifeq (${RCAR_LSI},${RZ_G2N})
24    BL2_SOURCES += drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c
25  endif
26  ifeq (${RCAR_LSI},${RZ_G2E})
27    BL2_SOURCES += drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c
28  endif
29else
30  ifeq (${RCAR_LSI},${RZ_G2M})
31    ifeq (${LSI_CUT},10)
32     BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v10.c
33    else ifeq (${LSI_CUT},11)
34     BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v11.c
35    else ifeq (${LSI_CUT},13)
36     BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v11.c
37    else ifeq (${LSI_CUT},30)
38     BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v30.c
39    else
40#    LSI_CUT 30 or later
41     BL2_SOURCES += drivers/renesas/rzg/qos/G2M/qos_init_g2m_v30.c
42    endif
43  endif
44  ifeq (${RCAR_LSI},${RZ_G2H})
45     BL2_SOURCES += drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c
46  endif
47  ifeq (${RCAR_LSI},${RZ_G2N})
48    ifeq (${LSI_CUT},10)
49     BL2_SOURCES += drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c
50    else
51#    LSI_CUT 10 or later
52     BL2_SOURCES += drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c
53    endif
54  endif
55  ifeq (${RCAR_LSI},${RZ_G2E})
56    BL2_SOURCES += drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c
57  endif
58endif
59
60BL2_SOURCES += drivers/renesas/rzg/qos/qos_init.c
61