2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-10-03 10:21:06 +00:00
|
|
|
|
2015-02-05 05:42:58 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
|
2017-01-27 21:53:48 +00:00
|
|
|
obj-y += boards.o
|
2017-01-15 05:59:09 +00:00
|
|
|
obj-y += spl_board_init.o
|
2017-01-15 05:59:04 +00:00
|
|
|
obj-y += memconf.o
|
2017-01-15 05:59:09 +00:00
|
|
|
obj-y += bcu/
|
2021-08-08 18:20:09 +00:00
|
|
|
obj-$(CONFIG_SPL_MMC) += mmc-boot-mode.o
|
2015-02-05 05:42:58 +00:00
|
|
|
|
|
|
|
else
|
2014-10-03 10:21:06 +00:00
|
|
|
|
2017-01-21 09:05:26 +00:00
|
|
|
obj-$(CONFIG_DISPLAY_CPUINFO) += cpu-info.o
|
2015-02-05 05:42:58 +00:00
|
|
|
obj-y += dram_init.o
|
2016-09-13 16:06:08 +00:00
|
|
|
obj-y += board_init.o
|
ARM: uniphier: detect register base addresses run-time
Until the last SoC, the register addresses have been hard-coded because
they are always constant. For a planned new SoC, the register bases
will be completely changed. I insist on supporting multiple SoCs/boards
by a single defconfig (uniphier_v8_defconfig) since duplicating similar
defconfig files is a maintenance burden. The base addresses must be
fixed-up at run-time somehow.
Previously, the board init code identified the SoC by reading out the
SG_REVISION register. This is much easier than parsing DT.
You cannot do it any more because the base address of SG will be
changed. The SG_REVISION register exists to read out the SoC ID, but
you never know its address before identifying the SoC. Oh well.
So, the possible solution is to parse the DT, and find out the node
with "*-soc-glue" compatible string. Then, sg_base is set to the value
of the "reg" property. The sc_base is set up likewise.
It is worth noting a pit-fall. Having sc_base and sg_base in the global
scope will make the life easier, but the global variables are poorly
supported before the relocation. In fact, the .bss section overwraps
with DT. Allocating them in the .bss section would break DT. So, I gave
dummy initializers to assign them in the .data section.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2019-07-10 11:07:42 +00:00
|
|
|
obj-$(CONFIG_ARCH_UNIPHIER_V8_MULTI) += base-address.o
|
2014-10-03 10:21:06 +00:00
|
|
|
obj-$(CONFIG_BOARD_LATE_INIT) += board_late_init.o
|
2017-04-20 07:54:42 +00:00
|
|
|
ifndef CONFIG_SYSRESET
|
2015-02-05 05:42:58 +00:00
|
|
|
obj-y += reset.o
|
2017-04-20 07:54:42 +00:00
|
|
|
endif
|
2014-10-03 10:21:06 +00:00
|
|
|
|
2019-07-10 11:07:37 +00:00
|
|
|
obj-$(CONFIG_MICRO_SUPPORT_CARD) += micro-support-card.o
|
2017-02-13 16:24:24 +00:00
|
|
|
obj-$(CONFIG_MMC) += mmc-first-dev.o
|
2018-07-19 07:28:25 +00:00
|
|
|
obj-y += fdt-fixup.o
|
2017-01-15 05:59:10 +00:00
|
|
|
|
2015-02-05 05:42:58 +00:00
|
|
|
endif
|
|
|
|
|
2017-01-21 09:05:26 +00:00
|
|
|
obj-y += soc-info.o
|
2017-02-13 16:24:26 +00:00
|
|
|
obj-y += boot-device/
|
2016-09-16 18:33:10 +00:00
|
|
|
obj-y += clk/
|
2016-02-05 04:20:31 +00:00
|
|
|
obj-y += dram/
|
2015-02-05 05:42:58 +00:00
|
|
|
|
2016-03-18 07:41:52 +00:00
|
|
|
obj-$(CONFIG_DEBUG_UART_UNIPHIER) += debug-uart/
|
2016-02-26 09:59:44 +00:00
|
|
|
|
2018-04-26 12:51:26 +00:00
|
|
|
obj-$(CONFIG_CPU_V7A) += arm32/
|
2016-04-21 05:43:18 +00:00
|
|
|
obj-$(CONFIG_ARM64) += arm64/
|