2015-07-31 11:10:40 +02:00
|
|
|
##
|
|
|
|
## This file is part of the coreboot project.
|
|
|
|
##
|
|
|
|
## Copyright 2015 MediaTek Inc.
|
|
|
|
##
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; version 2 of the License.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SOC_MEDIATEK_MT8173),y)
|
|
|
|
|
|
|
|
bootblock-y += bootblock.c
|
2015-10-16 07:42:49 +02:00
|
|
|
bootblock-$(CONFIG_SPI_FLASH) += flash_controller.c
|
2015-12-17 09:59:55 +01:00
|
|
|
bootblock-y += i2c.c
|
2015-07-31 11:10:53 +02:00
|
|
|
bootblock-y += pll.c
|
2015-07-31 11:10:46 +02:00
|
|
|
bootblock-y += spi.c
|
2015-07-31 11:10:40 +02:00
|
|
|
bootblock-y += timer.c
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
|
|
|
|
bootblock-$(CONFIG_DRIVERS_UART) += uart.c
|
|
|
|
endif
|
|
|
|
|
2015-07-31 11:10:52 +02:00
|
|
|
bootblock-y += gpio.c gpio_init.c pmic_wrap.c mt6391.c
|
2015-11-25 04:51:11 +01:00
|
|
|
bootblock-y += wdt.c
|
2015-07-31 11:10:50 +02:00
|
|
|
bootblock-y += mmu_operations.c
|
2015-07-31 11:10:52 +02:00
|
|
|
|
2015-07-31 11:10:40 +02:00
|
|
|
################################################################################
|
|
|
|
|
2015-07-31 11:10:51 +02:00
|
|
|
verstage-y += i2c.c
|
2015-07-31 11:10:46 +02:00
|
|
|
verstage-y += spi.c
|
|
|
|
|
|
|
|
verstage-$(CONFIG_DRIVERS_UART) += uart.c
|
|
|
|
|
|
|
|
verstage-y += timer.c
|
|
|
|
verstage-y += wdt.c
|
2015-10-16 07:42:49 +02:00
|
|
|
verstage-$(CONFIG_SPI_FLASH) += flash_controller.c
|
2015-07-31 11:10:46 +02:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-10-16 07:42:49 +02:00
|
|
|
romstage-$(CONFIG_SPI_FLASH) += flash_controller.c
|
2015-07-31 11:11:14 +02:00
|
|
|
romstage-y += pll.c
|
2015-07-31 11:10:40 +02:00
|
|
|
romstage-y += timer.c
|
|
|
|
|
|
|
|
romstage-$(CONFIG_DRIVERS_UART) += uart.c
|
|
|
|
romstage-y += cbmem.c
|
2015-07-31 11:10:46 +02:00
|
|
|
romstage-y += spi.c
|
2015-07-31 11:10:55 +02:00
|
|
|
romstage-y += gpio.c
|
2015-11-25 04:51:11 +01:00
|
|
|
romstage-y += pmic_wrap.c mt6391.c
|
2015-07-31 11:11:14 +02:00
|
|
|
romstage-y += memory.c
|
|
|
|
romstage-y += emi.c dramc_pi_basic_api.c dramc_pi_calibration_api.c
|
2015-07-31 11:10:50 +02:00
|
|
|
romstage-y += mmu_operations.c
|
2015-11-25 04:51:11 +01:00
|
|
|
romstage-y += rtc.c
|
2015-07-31 11:10:40 +02:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-02-04 10:26:48 +01:00
|
|
|
ramstage-y += cbmem.c emi.c
|
2015-07-31 11:10:46 +02:00
|
|
|
ramstage-y += spi.c
|
2015-10-16 07:42:49 +02:00
|
|
|
ramstage-$(CONFIG_SPI_FLASH) += flash_controller.c
|
2015-07-31 11:11:04 +02:00
|
|
|
ramstage-y += soc.c mtcmos.c
|
2015-07-31 11:10:40 +02:00
|
|
|
ramstage-y += timer.c
|
|
|
|
ramstage-$(CONFIG_DRIVERS_UART) += uart.c
|
2015-12-17 09:59:55 +01:00
|
|
|
ramstage-y += pmic_wrap.c mt6391.c i2c.c
|
2016-03-02 08:49:52 +01:00
|
|
|
ramstage-y += mt6311.c
|
2015-07-31 11:10:55 +02:00
|
|
|
ramstage-y += gpio.c
|
2015-07-31 11:10:46 +02:00
|
|
|
ramstage-y += wdt.c
|
2015-07-31 11:11:04 +02:00
|
|
|
ramstage-y += pll.c
|
2015-09-15 11:33:38 +02:00
|
|
|
ramstage-y += rtc.c
|
2015-07-31 11:10:40 +02:00
|
|
|
|
2015-07-31 11:11:08 +02:00
|
|
|
ramstage-y += usb.c
|
|
|
|
|
2015-07-31 11:11:00 +02:00
|
|
|
ramstage-$(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE) += bl31_plat_params.c
|
|
|
|
|
|
|
|
BL31_MAKEARGS += PLAT=mt8173 MEDIATEK_MEM_CONFIG=SRAM_192K MEDIATEK_DA9212=1 \
|
|
|
|
MEDIATEK_MT6311=1
|
|
|
|
|
2015-07-31 11:10:40 +02:00
|
|
|
################################################################################
|
|
|
|
|
2015-07-31 11:10:48 +02:00
|
|
|
# Generate the actual coreboot bootblock code
|
|
|
|
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
|
|
|
|
./util/mtkheader/gen-bl-img.py mt8173 sf $< $@
|
|
|
|
|
2015-07-31 11:10:40 +02:00
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/mt8173/include
|
|
|
|
|
|
|
|
endif
|