blob: 7f6ad8cac17037c8530326ec7e3718cb70f7c988 [file] [log] [blame]
huang linc14b54d2016-03-02 18:38:40 +08001##
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.
14##
15
16ifeq ($(CONFIG_SOC_ROCKCHIP_RK3399),y)
17
18IDBTOOL = util/rockchip/make_idb.py
19
Julius Werner8f25a662018-05-14 11:43:30 -070020decompressor-y += decompressor.c
21decompressor-y += timer.c
22
Julius Werner40d62f32016-07-28 13:41:37 -070023bootblock-y += ../common/i2c.c
huang linc14b54d2016-03-02 18:38:40 +080024bootblock-y += ../common/spi.c
Nico Huber755db952018-11-11 01:42:17 +010025bootblock-y += ../common/uart.c
Vadim Bendebury591298a2016-04-22 16:06:26 -070026bootblock-y += ../common/gpio.c
Eric Gao61e6c442016-07-29 12:34:32 +080027bootblock-y += ../common/pwm.c
huang linc14b54d2016-03-02 18:38:40 +080028bootblock-y += bootblock.c
29bootblock-y += clock.c
Vadim Bendebury591298a2016-04-22 16:06:26 -070030bootblock-y += gpio.c
Eric Gao61e6c442016-07-29 12:34:32 +080031bootblock-y += saradc.c
huang linc14b54d2016-03-02 18:38:40 +080032bootblock-y += timer.c
33
Vadim Bendeburyb4d3d092016-07-13 23:12:27 -070034verstage-y += ../common/gpio.c
35verstage-y += gpio.c
Shunqian Zheng2d3570a2016-04-13 21:34:12 +080036verstage-y += sdram.c
Julius Werner40d62f32016-07-28 13:41:37 -070037verstage-y += ../common/i2c.c
huang linc14b54d2016-03-02 18:38:40 +080038verstage-y += ../common/spi.c
Nico Huber755db952018-11-11 01:42:17 +010039verstage-y += ../common/uart.c
huang linc14b54d2016-03-02 18:38:40 +080040verstage-y += clock.c
41verstage-y += timer.c
42
43################################################################################
44
45romstage-y += ../common/cbmem.c
Shunqian Zheng2d3570a2016-04-13 21:34:12 +080046romstage-y += sdram.c
huang linc14b54d2016-03-02 18:38:40 +080047romstage-y += ../common/spi.c
Nico Huber755db952018-11-11 01:42:17 +010048romstage-y += ../common/uart.c
huang linc14b54d2016-03-02 18:38:40 +080049romstage-y += clock.c
Lin Huangef2eb9d2016-03-23 19:35:46 +080050romstage-y += ../common/pwm.c
huang linc14b54d2016-03-02 18:38:40 +080051romstage-y += timer.c
Shunqian Zhengf4181ce2016-05-06 16:50:48 +080052romstage-y += tsadc.c
Liangfeng Wu76655cb2016-05-26 16:06:58 +080053romstage-y += usb.c
Vadim Bendebury9ed93cb2016-05-22 16:09:54 -070054romstage-y += gpio.c
Lin Huang50df5222016-06-15 17:43:40 +080055romstage-y += saradc.c
Vadim Bendebury9ed93cb2016-05-22 16:09:54 -070056romstage-y += ../common/gpio.c
Philipp Deppenwiese545ed7a2018-02-14 16:47:12 +010057romstage-y += ../common/i2c.c
huang linc14b54d2016-03-02 18:38:40 +080058
59################################################################################
60
Shunqian Zheng2d3570a2016-04-13 21:34:12 +080061ramstage-y += sdram.c
huang linc14b54d2016-03-02 18:38:40 +080062ramstage-y += ../common/spi.c
Nico Huber755db952018-11-11 01:42:17 +010063ramstage-y += ../common/uart.c
huang linc14b54d2016-03-02 18:38:40 +080064ramstage-y += clock.c
Shunqian Zhengd1cec752016-05-04 16:21:36 +080065ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display.c
66ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/edp.c
Nickey Yangfe122d42017-04-27 09:38:06 +080067ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += mipi.c
Vadim Bendebury92c2f5e2016-04-04 16:57:05 -070068ramstage-y += ../common/gpio.c
69ramstage-y += gpio.c
huang lin4f173742016-03-02 18:46:24 +080070ramstage-y += ../common/i2c.c
Lin Huangbf48fbb2016-03-23 19:24:53 +080071ramstage-y += saradc.c
huang linc14b54d2016-03-02 18:38:40 +080072ramstage-y += soc.c
73ramstage-y += timer.c
Shunqian Zhengd1cec752016-05-04 16:21:36 +080074ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/vop.c
Liangfeng Wu76655cb2016-05-26 16:06:58 +080075ramstage-y += usb.c
huang linc14b54d2016-03-02 18:38:40 +080076
Martin Rothf34ca462017-01-02 19:55:11 -070077BL31_MAKEARGS += PLAT=rk3399 M0_CROSS_COMPILE="$(CROSS_COMPILE_arm)"
huang linc14b54d2016-03-02 18:38:40 +080078################################################################################
79
80CPPFLAGS_common += -Isrc/soc/rockchip/rk3399/include
81CPPFLAGS_common += -Isrc/soc/rockchip/common/include
82
83$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
84 @printf "Generating: $(subst $(obj)/,,$(@))\n"
85 @mkdir -p $(dir $@)
86 @$(IDBTOOL) --from=$< --to=$@ --enable-align --chip=RK33
87
88endif