rockchip: gru: Add USB DRD DWC3 controller support
[coreboot.git] / src / soc / rockchip / rk3399 / Makefile.inc
blobf35f706ff23b6abab1ed2cf91a023c6a003d1483
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright 2016 Rockchip Inc.
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; version 2 of the License.
9 ##
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
16 ifeq ($(CONFIG_SOC_ROCKCHIP_RK3399),y)
18 IDBTOOL = util/rockchip/make_idb.py
20 bootblock-y += ../common/spi.c
21 ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
22 bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart.c
23 endif
24 bootblock-y += ../common/gpio.c
25 bootblock-y += bootblock.c
26 bootblock-y += clock.c
27 bootblock-y += gpio.c
28 bootblock-y += mmu_operations.c
29 bootblock-y += timer.c
31 verstage-y += ../common/cbmem.c
32 verstage-y += sdram.c
33 verstage-y += ../common/spi.c
34 verstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c
35 verstage-y += clock.c
36 verstage-y += timer.c
38 ################################################################################
40 romstage-y += ../common/cbmem.c
41 romstage-y += sdram.c
42 romstage-y += ../common/spi.c
43 romstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c
44 romstage-y += clock.c
45 romstage-y += mmu_operations.c
46 romstage-y += ../common/pwm.c
47 romstage-y += timer.c
48 romstage-y += romstage.c
49 romstage-y += tsadc.c
50 romstage-y += usb.c
51 romstage-y += gpio.c
52 romstage-y += ../common/gpio.c
54 ################################################################################
56 ramstage-y += ../common/cbmem.c
57 ramstage-y += sdram.c
58 ramstage-y += ../common/spi.c
59 ramstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c
60 ramstage-y += clock.c
61 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display.c
62 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/edp.c
63 ramstage-y += emmc.c
64 ramstage-y += ../common/gpio.c
65 ramstage-y += gpio.c
66 ramstage-y += ../common/i2c.c
67 ramstage-y += saradc.c
68 ramstage-y += soc.c
69 ramstage-y += timer.c
70 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/vop.c
71 ramstage-y += usb.c
73 BL31_MAKEARGS += PLAT=rk3399
74 ################################################################################
76 CPPFLAGS_common += -Isrc/soc/rockchip/rk3399/include
77 CPPFLAGS_common += -Isrc/soc/rockchip/common/include
79 $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
80         @printf "Generating: $(subst $(obj)/,,$(@))\n"
81         @mkdir -p $(dir $@)
82         @$(IDBTOOL) --from=$< --to=$@ --enable-align --chip=RK33
84 endif