blob: 40e40900015dc880e842a03934c983cb9d26dc61 [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 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
9 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
10 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c
11 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c
12
13else ifdef RCAR_LSI_CUT_COMPAT
14 ifeq (${RCAR_LSI},${RCAR_H3})
15 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
16 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
17 endif
18 ifeq (${RCAR_LSI},${RCAR_H3N})
19 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
20 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
21 endif
22 ifeq (${RCAR_LSI},${RCAR_M3})
23 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c
24 endif
25 ifeq (${RCAR_LSI},${RCAR_M3N})
26 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c
27 endif
28 ifeq (${RCAR_LSI},${RCAR_E3})
29 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/E3/pfc_init_e3.c
30 endif
31else
32 ifeq (${RCAR_LSI},${RCAR_H3})
33 ifeq (${LSI_CUT},10)
34 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
35 else ifeq (${LSI_CUT},11)
36 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
37 else
38# LSI_CUT 20 or later
39 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
40 endif
41 endif
42 ifeq (${RCAR_LSI},${RCAR_H3N})
43 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
44 endif
45 ifeq (${RCAR_LSI},${RCAR_M3})
46 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/M3/pfc_init_m3.c
47 endif
48 ifeq (${RCAR_LSI},${RCAR_M3N})
49 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/M3N/pfc_init_m3n.c
50 endif
51 ifeq (${RCAR_LSI},${RCAR_E3})
52 BL2_SOURCES += drivers/staging/renesas/rcar/pfc/E3/pfc_init_e3.c
53 endif
54endif
55
56BL2_SOURCES += drivers/staging/renesas/rcar/pfc/pfc_init.c