summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2018-10-25 17:23:02 +0800
committerJagan Teki <jagan@amarulasolutions.com>2018-10-29 20:41:07 +0530
commitc6c2c85e4b980cba54b34a55399f9b82ae2787ea (patch)
tree2167e1a16334560f6af3aa1a1eee9a7bc7febaa3 /configs
parent3d99a0b33a16c9330a5bf5b3f8561f45d0e6ed80 (diff)
downloadu-boot-c6c2c85e4b980cba54b34a55399f9b82ae2787ea.tar.gz
u-boot-c6c2c85e4b980cba54b34a55399f9b82ae2787ea.tar.bz2
u-boot-c6c2c85e4b980cba54b34a55399f9b82ae2787ea.zip
sunxi: disable Pine A64 model detection code on other boards
The Pine A64 Plus/non-Plus model detection code is now built on all 64-bit ARM SoCs, even if the code cannot be triggered when H5/H6 is in use. Disable them when the board is Pine A64 by adding a Kconfig option that is only selected on Pine A64. On GCC 7.3.1 this makes the size of the function reduces 184 bytes, and saves a 104 byte strstr() function, then makes SPL on H6 succeed to build. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'configs')
-rw-r--r--configs/pine64_plus_defconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/pine64_plus_defconfig b/configs/pine64_plus_defconfig
index 14ccc9ba05..a5b87b9063 100644
--- a/configs/pine64_plus_defconfig
+++ b/configs/pine64_plus_defconfig
@@ -3,6 +3,7 @@ CONFIG_ARCH_SUNXI=y
CONFIG_SPL=y
CONFIG_MACH_SUN50I=y
CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y
+CONFIG_PINE64_DT_SELECTION=y
CONFIG_NR_DRAM_BANKS=1
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
# CONFIG_CMD_FLASH is not set