blob: f05d12678635e18190eb67a74e4b7f3191dd0982 [file] [log] [blame]
Biju Das21615422020-11-09 09:38:51 +00001#
Lad Prabhakaref124a22020-12-11 20:06:59 +00002# Copyright (c) 2020-2021, Renesas Electronics Corporation. All rights reserved.
Biju Das21615422020-11-09 09:38:51 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${RCAR_LSI},${RCAR_AUTO})
Lad Prabhakar84e942d2020-12-21 11:33:16 +00008 BL2_SOURCES += drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c
Lad Prabhakaref124a22020-12-11 20:06:59 +00009 BL2_SOURCES += drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c
Biju Das21615422020-11-09 09:38:51 +000010 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
Lad Prabhakar964fcb22021-03-18 18:54:15 +000013 BL2_SOURCES += drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c
Biju Das21615422020-11-09 09:38:51 +000014else 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
Lad Prabhakaref124a22020-12-11 20:06:59 +000020 ifeq (${RCAR_LSI},${RZ_G2H})
21 BL2_SOURCES += drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c
22 endif
Lad Prabhakar964fcb22021-03-18 18:54:15 +000023 ifeq (${RCAR_LSI},${RZ_G2N})
24 BL2_SOURCES += drivers/renesas/rzg/qos/G2N/qos_init_g2n_v10.c
25 endif
Lad Prabhakar84e942d2020-12-21 11:33:16 +000026 ifeq (${RCAR_LSI},${RZ_G2E})
27 BL2_SOURCES += drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c
28 endif
Biju Das21615422020-11-09 09:38:51 +000029else
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
Lad Prabhakaref124a22020-12-11 20:06:59 +000044 ifeq (${RCAR_LSI},${RZ_G2H})
45 BL2_SOURCES += drivers/renesas/rzg/qos/G2H/qos_init_g2h_v30.c
46 endif
Lad Prabhakar964fcb22021-03-18 18:54:15 +000047 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
Lad Prabhakar84e942d2020-12-21 11:33:16 +000055 ifeq (${RCAR_LSI},${RZ_G2E})
56 BL2_SOURCES += drivers/renesas/rzg/qos/G2E/qos_init_g2e_v10.c
57 endif
Biju Das21615422020-11-09 09:38:51 +000058endif
59
60BL2_SOURCES += drivers/renesas/rzg/qos/qos_init.c