2014-06-09 22:20:04 +02:00
|
|
|
bootblock-y += bootblock.c
|
|
|
|
bootblock-y += bootblock_asm.S
|
2014-04-29 01:43:07 +02:00
|
|
|
bootblock-y += cbfs.c
|
|
|
|
bootblock-y += timer.c
|
2014-06-09 22:20:04 +02:00
|
|
|
bootblock-y += clock.c
|
2014-06-25 02:38:03 +02:00
|
|
|
bootblock-y += spi.c
|
|
|
|
bootblock-y += i2c.c
|
|
|
|
bootblock-y += dma.c
|
|
|
|
bootblock-y += monotonic_timer.c
|
2014-07-31 21:54:12 +02:00
|
|
|
bootblock-y += padconfig.c
|
2014-08-05 20:30:38 +02:00
|
|
|
bootblock-y += reset.c
|
2014-06-09 22:20:04 +02:00
|
|
|
bootblock-y += ../tegra/gpio.c
|
2014-06-25 02:38:03 +02:00
|
|
|
bootblock-y += ../tegra/i2c.c
|
2014-06-09 22:20:04 +02:00
|
|
|
bootblock-y += ../tegra/pingroup.c
|
|
|
|
bootblock-y += ../tegra/pinmux.c
|
|
|
|
bootblock-y += ../tegra/apbmisc.c
|
|
|
|
ifeq ($(CONFIG_BOOTBLOCK_CONSOLE),y)
|
|
|
|
bootblock-$(CONFIG_DRIVERS_UART) += uart.c
|
|
|
|
endif
|
2014-04-29 01:43:07 +02:00
|
|
|
|
2014-07-07 20:45:15 +02:00
|
|
|
romstage-y += romstage_asm.S
|
2014-07-10 22:05:13 +02:00
|
|
|
romstage-y += addressmap.c
|
2014-04-29 01:43:07 +02:00
|
|
|
romstage-y += cbfs.c
|
|
|
|
romstage-y += cbmem.c
|
|
|
|
romstage-y += timer.c
|
2014-06-30 23:37:13 +02:00
|
|
|
romstage-y += ccplex.c
|
2014-06-25 00:24:22 +02:00
|
|
|
romstage-y += clock.c
|
2014-08-05 20:30:38 +02:00
|
|
|
romstage-y += reset.c
|
2014-06-25 02:38:03 +02:00
|
|
|
romstage-y += spi.c
|
|
|
|
romstage-y += i2c.c
|
|
|
|
romstage-y += dma.c
|
|
|
|
romstage-y += monotonic_timer.c
|
2014-07-31 21:54:12 +02:00
|
|
|
romstage-y += padconfig.c
|
2014-06-27 23:43:59 +02:00
|
|
|
romstage-y += romstage.c
|
2014-07-10 19:50:27 +02:00
|
|
|
romstage-y += power.c
|
2014-06-26 23:24:42 +02:00
|
|
|
romstage-y += sdram.c
|
|
|
|
romstage-y += sdram_lp0.c
|
2014-06-09 22:20:04 +02:00
|
|
|
romstage-y += ../tegra/gpio.c
|
2014-06-25 02:38:03 +02:00
|
|
|
romstage-y += ../tegra/i2c.c
|
2014-06-09 22:20:04 +02:00
|
|
|
romstage-y += ../tegra/pinmux.c
|
|
|
|
romstage-$(CONFIG_DRIVERS_UART) += uart.c
|
2014-04-29 01:43:07 +02:00
|
|
|
|
2014-07-10 22:05:13 +02:00
|
|
|
ramstage-y += addressmap.c
|
2014-04-29 01:43:07 +02:00
|
|
|
ramstage-y += cbfs.c
|
|
|
|
ramstage-y += cbmem.c
|
|
|
|
ramstage-y += timer.c
|
2014-06-25 00:24:22 +02:00
|
|
|
ramstage-y += clock.c
|
2014-07-15 19:34:19 +02:00
|
|
|
ramstage-y += soc.c
|
2014-06-25 02:38:03 +02:00
|
|
|
ramstage-y += spi.c
|
|
|
|
ramstage-y += i2c.c
|
|
|
|
ramstage-y += dma.c
|
|
|
|
ramstage-y += monotonic_timer.c
|
2014-07-31 21:54:12 +02:00
|
|
|
ramstage-y += padconfig.c
|
2014-08-05 20:30:38 +02:00
|
|
|
ramstage-y += reset.c
|
2014-08-04 18:40:45 +02:00
|
|
|
ramstage-y += ../tegra/apbmisc.c
|
2014-06-09 22:20:04 +02:00
|
|
|
ramstage-y += ../tegra/gpio.c
|
2014-06-25 02:38:03 +02:00
|
|
|
ramstage-y += ../tegra/i2c.c
|
2014-06-09 22:20:04 +02:00
|
|
|
ramstage-y += ../tegra/pinmux.c
|
2014-07-15 17:53:29 +02:00
|
|
|
ramstage-y += ramstage.c
|
2014-07-17 20:42:35 +02:00
|
|
|
ramstage-y += mmu_operations.c
|
2014-06-09 22:20:04 +02:00
|
|
|
ramstage-$(CONFIG_DRIVERS_UART) += uart.c
|
2014-04-29 01:43:07 +02:00
|
|
|
|
2014-07-23 23:32:05 +02:00
|
|
|
modules_arm-y += monotonic_timer.c
|
|
|
|
VBOOT_STUB_DEPS += $(obj)/soc/nvidia/tegra132/monotonic_timer.rmodules_arm.o
|
|
|
|
|
2014-04-29 01:43:07 +02:00
|
|
|
CPPFLAGS_common += -Isrc/soc/nvidia/tegra132/include/
|
2014-06-20 21:58:05 +02:00
|
|
|
CBOOTIMAGE_OPTS = --soc tegra132
|
2014-06-09 22:26:38 +02:00
|
|
|
|
|
|
|
# We want to grab the bootblock right before it goes into the image and wrap
|
|
|
|
# it inside a BCT, but ideally we would do that without making special, one
|
|
|
|
# use modifications to the main ARM Makefile. We do this in two ways. First,
|
|
|
|
# we copy bootblock.elf to bootblock.raw.elf and allow the %.bin: %.elf
|
|
|
|
# template rule to turn it into bootblock.raw.bin. This makes sure whatever
|
|
|
|
# processing is supposed to happen to turn an .elf into a .bin happens.
|
|
|
|
#
|
|
|
|
# Second, we add our own rule for creating bootblock.bin from
|
|
|
|
# bootblock.raw.bin which displaces the template rule. When other rules that
|
|
|
|
# package up the image pull in bootblock.bin, it will be this wrapped version
|
|
|
|
# instead of the raw bootblock.
|
|
|
|
|
|
|
|
$(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf
|
|
|
|
cp $< $@
|
|
|
|
|
2015-02-17 11:11:12 +01:00
|
|
|
$(obj)/generated/bct.bin: $(obj)/generated/bct.cfg $(CBOOTIMAGE)
|
2014-06-09 22:26:38 +02:00
|
|
|
@printf " CBOOTIMAGE $(subst $(obj)/,,$(@))\n"
|
2014-06-20 21:58:05 +02:00
|
|
|
$(CBOOTIMAGE) -gbct $(CBOOTIMAGE_OPTS) $< $@
|
2014-06-09 22:26:38 +02:00
|
|
|
|
|
|
|
BCT_BIN = $(obj)/generated/bct.bin
|
|
|
|
BCT_WRAPPER = $(obj)/generated/bct.wrapper
|
2014-07-15 02:13:07 +02:00
|
|
|
MTS_DIR = $(CONFIG_MTS_DIRECTORY)
|
|
|
|
PREBOOT_MTS_FILE = $(MTS_DIR)/preboot_cr.bin
|
2015-02-17 11:11:12 +01:00
|
|
|
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BCT_BIN) $(CBOOTIMAGE)
|
2014-06-09 22:26:38 +02:00
|
|
|
echo "Version = 1;" > $(BCT_WRAPPER)
|
|
|
|
echo "Redundancy = 1;" >> $(BCT_WRAPPER)
|
2014-06-20 21:58:05 +02:00
|
|
|
echo "Bctcopy = 1;" >> $(BCT_WRAPPER)
|
2014-06-09 22:26:38 +02:00
|
|
|
echo "Bctfile = $(BCT_BIN);" >> $(BCT_WRAPPER)
|
2014-06-20 21:58:05 +02:00
|
|
|
echo "MtsPreboot = $(PREBOOT_MTS_FILE),0x4000f000,0x4000f000,Complete;" >> $(BCT_WRAPPER)
|
2014-06-09 22:26:38 +02:00
|
|
|
echo "BootLoader = $<,$(CONFIG_BOOTBLOCK_BASE),$(CONFIG_BOOTBLOCK_BASE),Complete;" >> $(BCT_WRAPPER)
|
|
|
|
@printf " CBOOTIMAGE $(subst $(obj)/,,$(@))\n"
|
2014-06-20 21:58:05 +02:00
|
|
|
$(CBOOTIMAGE) $(CBOOTIMAGE_OPTS) $(BCT_WRAPPER) $@
|
2014-07-15 02:13:07 +02:00
|
|
|
|
|
|
|
# MTS microcode
|
|
|
|
MTS_FILE = $(MTS_DIR)/mts_cr.bin
|
|
|
|
MTS_FILE_CBFS = mts
|
|
|
|
cbfs-files-y += $(MTS_FILE_CBFS)
|
|
|
|
$(MTS_FILE_CBFS)-file := $(MTS_FILE)
|
|
|
|
$(MTS_FILE_CBFS)-type := 0x50
|