[U-Boot] [PATCH v2 2/3] configs: move RTC_MV config from mv-plug-common.h to boards
Chris Packham
judge.packham at gmail.com
Thu Jun 28 22:38:37 UTC 2018
To aid in migrating CONFIG_RTC_MV to Kconfig move the definition of it
from mv-plug-common.h to the board config headers that nest it.
Signed-off-by: Chris Packham <judge.packham at gmail.com>
---
Changes in v2: None
include/configs/dreamplug.h | 4 ++++
include/configs/ds109.h | 4 ++++
include/configs/guruplug.h | 4 ++++
include/configs/mv-plug-common.h | 7 -------
include/configs/sheevaplug.h | 4 ++++
5 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/include/configs/dreamplug.h b/include/configs/dreamplug.h
index 1c94bf9fa1bf..742232d2d660 100644
--- a/include/configs/dreamplug.h
+++ b/include/configs/dreamplug.h
@@ -27,6 +27,10 @@
*/
#include "mv-plug-common.h"
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
+#endif /* CONFIG_CMD_DATE */
+
/*
* Environment variables configurations
*/
diff --git a/include/configs/ds109.h b/include/configs/ds109.h
index c06f0058deb5..f8d663714239 100644
--- a/include/configs/ds109.h
+++ b/include/configs/ds109.h
@@ -30,6 +30,10 @@
*/
#include "mv-plug-common.h"
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
+#endif /* CONFIG_CMD_DATE */
+
/*
* Environment variables configurations
*/
diff --git a/include/configs/guruplug.h b/include/configs/guruplug.h
index 04b7e944a461..27096fbb20f3 100644
--- a/include/configs/guruplug.h
+++ b/include/configs/guruplug.h
@@ -27,6 +27,10 @@
*/
#include "mv-plug-common.h"
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
+#endif /* CONFIG_CMD_DATE */
+
/*
* Environment variables configurations
*/
diff --git a/include/configs/mv-plug-common.h b/include/configs/mv-plug-common.h
index 81c07a889a36..f424e2cc6c52 100644
--- a/include/configs/mv-plug-common.h
+++ b/include/configs/mv-plug-common.h
@@ -22,11 +22,4 @@
*/
#include "mv-common.h"
-/*
- * RTC driver configuration
- */
-#ifdef CONFIG_CMD_DATE
-#define CONFIG_RTC_MV
-#endif /* CONFIG_CMD_DATE */
-
#endif /* _CONFIG_MARVELL_PLUG_H */
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index dc6375841ed8..bf684babebf3 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -31,6 +31,10 @@
*/
#include "mv-plug-common.h"
+#ifdef CONFIG_CMD_DATE
+#define CONFIG_RTC_MV
+#endif /* CONFIG_CMD_DATE */
+
/*
* Environment variables configurations
*/
--
2.18.0
More information about the U-Boot
mailing list