exynos: Convert to use CONFIG_BLK
authorSimon Glass <sjg@chromium.org>
Sat, 12 Jan 2019 01:37:08 +0000 (18:37 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 9 Feb 2019 19:50:21 +0000 (12:50 -0700)
Move all exynos boards over to use CONFIG_BLK.

This converts s5p_goni also, but adding dummy functions for pinmux and
peripheral ID. This will not function correctly, but gives the maintainer
more time to convert the board if desired.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/mach-exynos/Kconfig
arch/arm/mach-s5pc1xx/Kconfig
arch/arm/mach-s5pc1xx/Makefile
arch/arm/mach-s5pc1xx/pinmux.c [new file with mode: 0644]

index ed04369..3807770 100644 (file)
@@ -8,6 +8,8 @@ config ARCH_EXYNOS4
        bool "Exynos4 SoC family"
        select BOARD_EARLY_INIT_F
        select CPU_V7A
+       select BLK
+       select DM_MMC
        help
          Samsung Exynos4 SoC family are based on ARM Cortex-A9 CPU. There
          are multiple SoCs in this family including Exynos4210, Exynos4412,
@@ -24,6 +26,9 @@ config ARCH_EXYNOS5
        imply USB_ETHER_ASIX
        imply USB_ETHER_RTL8152
        imply USB_ETHER_SMSC95XX
+       select BLK
+       select DM_MMC
+
        help
          Samsung Exynos5 SoC family are based on ARM Cortex-A15 CPU (and
          Cortex-A7 CPU in big.LITTLE configuration). There are multiple SoCs
@@ -33,6 +38,8 @@ config ARCH_EXYNOS7
        bool "Exynos7 SoC family"
        select ARM64
        select BOARD_EARLY_INIT_F
+       select BLK
+       select DM_MMC
        help
          Samsung Exynos7 SoC family are based on ARM Cortex-A57 CPU or
          Cortex-A53 CPU (and some in a big.LITTLE configuration). There are
index 04acdaa..8cffced 100644 (file)
@@ -7,6 +7,8 @@ choice
 config TARGET_S5P_GONI
        bool "S5P Goni board"
        select OF_CONTROL
+       select BLK
+       select DM_MMC
 
 config TARGET_SMDKC100
        bool "Support smdkc100 board"
index a4be3fc..ab80460 100644 (file)
@@ -10,3 +10,4 @@ obj-y = cache.o
 obj-y  += reset.o
 
 obj-y  += clock.o
+obj-y  += pinmux.o
diff --git a/arch/arm/mach-s5pc1xx/pinmux.c b/arch/arm/mach-s5pc1xx/pinmux.c
new file mode 100644 (file)
index 0000000..818d751
--- /dev/null
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Dummy functions to keep s5p_goni building (although it won't work)
+ *
+ * Copyright 2018 Google LLC
+ * Written by Simon Glass <sjg@chromium.org>
+ */
+
+#include <common.h>
+#include <asm/arch/pinmux.h>
+
+int exynos_pinmux_config(int peripheral, int flags)
+{
+       return 0;
+}
+
+int pinmux_decode_periph_id(const void *blob, int node)
+{
+       return 0;
+}