1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifeq ($(CONFIG_SOC_ROCKCHIP_RK3399
),y
)
5 IDBTOOL
= util
/rockchip
/make_idb.py
7 decompressor-y
+= decompressor.c
8 decompressor-y
+= timer.c
10 bootblock-y
+= ..
/common
/i2c.c
11 bootblock-y
+= ..
/common
/spi.c
12 bootblock-y
+= ..
/common
/uart.c
13 bootblock-y
+= ..
/common
/gpio.c
14 bootblock-y
+= ..
/common
/pwm.c
15 bootblock-y
+= bootblock.c
16 bootblock-y
+= clock.c
18 bootblock-y
+= saradc.c
19 bootblock-y
+= timer.c
21 verstage-y
+= ..
/common
/gpio.c
24 verstage-y
+= ..
/common
/i2c.c
25 verstage-y
+= ..
/common
/spi.c
26 verstage-y
+= ..
/common
/uart.c
30 ################################################################################
32 romstage-y
+= ..
/common
/cbmem.c
34 romstage-y
+= ..
/common
/spi.c
35 romstage-y
+= ..
/common
/uart.c
37 romstage-y
+= ..
/common
/pwm.c
42 romstage-y
+= saradc.c
43 romstage-y
+= ..
/common
/gpio.c
44 romstage-y
+= ..
/common
/i2c.c
46 ################################################################################
49 ramstage-y
+= ..
/common
/spi.c
50 ramstage-y
+= ..
/common
/uart.c
52 ramstage-
$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT
) += display.c
53 ramstage-
$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT
) += ..
/common
/edp.c
54 ramstage-
$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT
) += mipi.c
55 ramstage-y
+= ..
/common
/gpio.c
57 ramstage-y
+= ..
/common
/i2c.c
58 ramstage-y
+= saradc.c
61 ramstage-
$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT
) += ..
/common
/vop.c
64 BL31_MAKEARGS
+= PLAT
=rk3399 M0_CROSS_COMPILE
="$(CROSS_COMPILE_arm)"
65 ################################################################################
67 CPPFLAGS_common
+= -Isrc
/soc
/rockchip
/rk3399
/include
68 CPPFLAGS_common
+= -Isrc
/soc
/rockchip
/common
/include
70 $(objcbfs
)/bootblock.bin
: $(objcbfs
)/bootblock.raw.bin
71 @printf
"Generating: $(subst $(obj)/,,$(@))\n"
72 $(Q
)mkdir
-p
$(dir $@
)
73 $(Q
)$(IDBTOOL
) --from
=$< --to
=$@
--enable-align
--chip
=RK33