pfc.mk 2.32 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

ifeq (${RCAR_LSI},${RCAR_AUTO})
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
    BL2_SOURCES += drivers/renesas/rcar/pfc/M3/pfc_init_m3.c
    BL2_SOURCES += drivers/renesas/rcar/pfc/M3N/pfc_init_m3n.c
    BL2_SOURCES += drivers/renesas/rcar/pfc/V3M/pfc_init_v3m.c

else ifdef RCAR_LSI_CUT_COMPAT
  ifeq (${RCAR_LSI},${RCAR_H3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
  endif
  ifeq (${RCAR_LSI},${RCAR_H3N})
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
  endif
  ifeq (${RCAR_LSI},${RCAR_M3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/M3/pfc_init_m3.c
  endif
  ifeq (${RCAR_LSI},${RCAR_M3N})
    BL2_SOURCES += drivers/renesas/rcar/pfc/M3N/pfc_init_m3n.c
  endif
  ifeq (${RCAR_LSI},${RCAR_V3M})
    BL2_SOURCES += drivers/renesas/rcar/pfc/V3M/pfc_init_v3m.c
  endif
  ifeq (${RCAR_LSI},${RCAR_E3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/E3/pfc_init_e3.c
  endif
  ifeq (${RCAR_LSI},${RCAR_D3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/D3/pfc_init_d3.c
  endif
else
  ifeq (${RCAR_LSI},${RCAR_H3})
    ifeq (${LSI_CUT},10)
      BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
    else ifeq (${LSI_CUT},11)
      BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v1.c
    else
#     LSI_CUT 20 or later
      BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
    endif
  endif
  ifeq (${RCAR_LSI},${RCAR_H3N})
    BL2_SOURCES += drivers/renesas/rcar/pfc/H3/pfc_init_h3_v2.c
  endif
  ifeq (${RCAR_LSI},${RCAR_M3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/M3/pfc_init_m3.c
  endif
  ifeq (${RCAR_LSI},${RCAR_M3N})
    BL2_SOURCES += drivers/renesas/rcar/pfc/M3N/pfc_init_m3n.c
  endif
  ifeq (${RCAR_LSI},${RCAR_V3M})
    BL2_SOURCES += drivers/renesas/rcar/pfc/V3M/pfc_init_v3m.c
  endif
  ifeq (${RCAR_LSI},${RCAR_E3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/E3/pfc_init_e3.c
  endif
  ifeq (${RCAR_LSI},${RCAR_D3})
    BL2_SOURCES += drivers/renesas/rcar/pfc/D3/pfc_init_d3.c
  endif
endif

BL2_SOURCES += drivers/renesas/rcar/pfc/pfc_init.c