From b569048357495c568cab7dc0d0eb94c3d9b964e9 Mon Sep 17 00:00:00 2001
From: Emmanuel Vadot <manu@bidouilliste.com>
Date: Tue, 31 Jan 2017 12:17:05 +0100
Subject: [PATCH] api: Convert to Kconfig

Now that we have a Kconfig for the API, convert the two boards that
are using this to Kconfig and remove CONFIG_API from the whitelist.

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 configs/PMC440_defconfig     | 1 +
 configs/lsxhl_defconfig      | 1 +
 include/configs/PMC440.h     | 2 --
 include/configs/lsxl.h       | 5 -----
 scripts/config_whitelist.txt | 1 -
 5 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/configs/PMC440_defconfig b/configs/PMC440_defconfig
index 0bcc5866af..7380ba7b21 100644
--- a/configs/PMC440_defconfig
+++ b/configs/PMC440_defconfig
@@ -24,3 +24,4 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_API=y
diff --git a/configs/lsxhl_defconfig b/configs/lsxhl_defconfig
index 75bd46da2f..4d974f1e16 100644
--- a/configs/lsxhl_defconfig
+++ b/configs/lsxhl_defconfig
@@ -23,3 +23,4 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_API=y
diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h
index 5ea82f8e4d..59ba79e43b 100644
--- a/include/configs/PMC440.h
+++ b/include/configs/PMC440.h
@@ -385,6 +385,4 @@
 #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */
 #endif
 
-#define CONFIG_API		1
-
 #endif /* __CONFIG_H */
diff --git a/include/configs/lsxl.h b/include/configs/lsxl.h
index 7ec82cd4bb..ad1adcec8c 100644
--- a/include/configs/lsxl.h
+++ b/include/configs/lsxl.h
@@ -37,11 +37,6 @@
 
 #define CONFIG_SYS_NO_FLASH
 
-/*
- * Enable u-boot API for standalone programs.
- */
-#define CONFIG_API
-
 /*
  * Commands configuration
  */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index d21589bc2b..826d031852 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -102,7 +102,6 @@ CONFIG_APBH_DMA_BURST8
 CONFIG_APER_0_BASE
 CONFIG_APER_1_BASE
 CONFIG_APER_SIZE
-CONFIG_API
 CONFIG_APUS_FAST_EXCEPT
 CONFIG_AP_SH4A_4A
 CONFIG_ARCH_ADPAG101P
-- 
2.39.5