]> git.ipfire.org Git - u-boot.git/commitdiff
ARM: hisilicon: hikey: Enable OF_CONTROL for hikey board.
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 20 Apr 2016 16:13:59 +0000 (17:13 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2016 19:10:34 +0000 (15:10 -0400)
Currently only the serial pl01x driver is using DT,
and the other drivers still use platform data but
as more DT lands in the upstream kernel the aim is
to migrate the other drivers over to DT as well to
have a fully DT configured hikey u-boot.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/Kconfig
arch/arm/dts/Makefile
board/hisilicon/hikey/hikey.c
configs/hikey_defconfig

index d1c3157b7958afbab28d0d86cbcbbe97f4731417..6b65d8e76a46fcf259c13bfe5fec77b0219816bd 100644 (file)
@@ -668,6 +668,7 @@ config TARGET_HIKEY
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select OF_CONTROL
          help
          Support for HiKey 96boards platform. It features a HI6220
          SoC, with 8xA53 CPU, mali450 gpu, and 1GB RAM.
index aa31fd943f698e9d06020b60463d08280a3e3d8f..d1f8e2245148bb94fc06f36f0c855b594e246da3 100644 (file)
@@ -11,6 +11,8 @@ dtb-$(CONFIG_EXYNOS4) += exynos4210-origen.dtb \
        exynos4412-trats2.dtb \
        exynos4412-odroid.dtb
 
+dtb-$(CONFIG_TARGET_HIKEY) += hi6220-hikey.dtb
+
 dtb-$(CONFIG_EXYNOS5) += exynos5250-arndale.dtb \
        exynos5250-snow.dtb \
        exynos5250-spring.dtb \
index 3b484a96e9355a75af913349fdce268ecab3cbf0..3f0a0cc0da8b5edf6a0f7247537bb8c60e5e869e 100644 (file)
@@ -71,6 +71,8 @@ U_BOOT_DEVICES(hi6220_gpios) = {
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#if !CONFIG_IS_ENABLED(OF_CONTROL)
+
 static const struct pl01x_serial_platdata serial_platdata = {
 #if CONFIG_CONS_INDEX == 1
        .base = HI6220_UART0_BASE,
@@ -87,6 +89,7 @@ U_BOOT_DEVICE(hikey_seriala) = {
        .name = "serial_pl01x",
        .platdata = &serial_platdata,
 };
+#endif
 
 static struct mm_region hikey_mem_map[] = {
        {
index f5660eaf41a6f90c554520ffd9d63d31c813a02b..d150dd3bcdbd5c5cecfe10e31e29c25dea078d59 100644 (file)
@@ -14,3 +14,4 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_LIBFDT=y
+CONFIG_DEFAULT_DEVICE_TREE="hi6220-hikey"