Skip to contentSkip to conversation

dm: stv0991: Move driver model CONFIGs to Kconfig

PATCH New Simon Glass 1 participant 4 messages Feb 9, 2015 – Feb 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dm: stv0991: Move driver model CONFIGs to Kconfig

Remove driver model CONFIGs from the board config headers and use Kconfig instead.

---

 configs/stv0991_defconfig |  2 ++
 include/configs/stv0991.h | 10 ----------
 2 files changed, 2 insertions(+), 10 deletions(-)
configs/stv0991_defconfig +2 -0
index 37b10ba..1c9ba88 100644
@@ -3,3 +3,5 @@ CONFIG_ARM=y
 CONFIG_TARGET_STV0991=y
 CONFIG_SYS_MALLOC_F=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_DM=y
+CONFIG_DM_SERIAL=y
include/configs/stv0991.h +0 -10
index 071b1c2..156e0fa 100644
@@ -29,19 +29,9 @@
 #define CONFIG_SYS_MAXARGS			16
 #define CONFIG_SYS_MALLOC_LEN			(CONFIG_ENV_SIZE + 16 * 1024)
 
-#define CONFIG_DM
 /* serial port (PL011) configuration */
 #define CONFIG_BAUDRATE				115200
-#ifdef CONFIG_DM
-#define CONFIG_DM_SERIAL
 #define CONFIG_PL01X_SERIAL
-#else
-#define CONFIG_SYS_SERIAL0                     0x80406000
-#define CONFIG_CONS_INDEX			0
-#define CONFIG_PL011_SERIAL
-#define CONFIG_PL01x_PORTS                     {(void *)CONFIG_SYS_SERIAL0}
-#define CONFIG_PL011_CLOCK                     (2700 * 1000)
-#endif
 
 /* user interface */
 #define CONFIG_SYS_PROMPT			"STV0991> "
Signature · 1 line
2.2.0.rc0.207.ga3a616c
#1 lore raw

PATCH 1/2 dm: stv0991: Move driver model CONFIGs to Kconfig

Quoted 9 lines · Simon Glass

Remove driver model CONFIGs from the board config headers and use Kconfig instead.

---

 configs/stv0991_defconfig |  2 ++
 include/configs/stv0991.h | 10 ----------
 2 files changed, 2 insertions(+), 10 deletions(-)

Applied to u-boot-dm.

#2 lore raw

PATCH 2/2 dm: mx6: sabre: Move driver model CONFIGs to Kconfig

In reply to Simon Glass

Remove driver model CONFIGs from the board config headers and use Kconfig instead.

---

 configs/mx6dlsabreauto_defconfig  | 2 ++
 configs/mx6dlsabresd_defconfig    | 2 ++
 configs/mx6qsabreauto_defconfig   | 2 ++
 configs/mx6qsabrelite_defconfig   | 2 ++
 configs/mx6qsabresd_defconfig     | 2 ++
 configs/mx6sabresd_spl_defconfig  | 3 ++-
 include/configs/mx6sabre_common.h | 2 --
 7 files changed, 12 insertions(+), 3 deletions(-)
configs/mx6dlsabreauto_defconfig +2 -0
index ccdfe31..47f3f87 100644
@@ -3,3 +3,5 @@ CONFIG_ARM=y
 CONFIG_TARGET_MX6QSABREAUTO=y
 CONFIG_SYS_MALLOC_F=y
 CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
configs/mx6dlsabresd_defconfig +2 -0
index 7f6cdff..6adfd55 100644
@@ -1,3 +1,5 @@
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL"
 CONFIG_ARM=y
 CONFIG_TARGET_MX6SABRESD=y
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
configs/mx6qsabreauto_defconfig +2 -0
index fe3d797..ab72942 100644
@@ -3,3 +3,5 @@ CONFIG_ARM=y
 CONFIG_TARGET_MX6QSABREAUTO=y
 CONFIG_SYS_MALLOC_F=y
 CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
configs/mx6qsabrelite_defconfig +2 -0
index dfa9c2e..50b75ae 100644
@@ -1,3 +1,5 @@
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024,SABRELITE"
 CONFIG_ARM=y
 CONFIG_TARGET_NITROGEN6X=y
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
configs/mx6qsabresd_defconfig +2 -0
index 09b0190..112918b 100644
@@ -3,3 +3,5 @@ CONFIG_ARM=y
 CONFIG_TARGET_MX6SABRESD=y
 CONFIG_SYS_MALLOC_F=y
 CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
configs/mx6sabresd_spl_defconfig +2 -1
index 12e7844..67079ba 100644
@@ -2,4 +2,5 @@ CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,SPL,MX6Q"
 +S:CONFIG_ARM=y
 +S:CONFIG_TARGET_MX6SABRESD=y
-
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
include/configs/mx6sabre_common.h +0 -2
index 80e48d1..4aa8101 100644
@@ -25,8 +25,6 @@
 #define CONFIG_INITRD_TAG
 #define CONFIG_REVISION_TAG
 
-#define CONFIG_DM
-#define CONFIG_DM_THERMAL
 #define CONFIG_IMX6_THERMAL
 
 #define CONFIG_SYS_GENERIC_BOARD
Signature · 1 line
2.2.0.rc0.207.ga3a616c
#3 lore raw

PATCH 2/2 dm: mx6: sabre: Move driver model CONFIGs to Kconfig

Quoted 6 lines · Simon Glass

Remove driver model CONFIGs from the board config headers and use Kconfig instead.

---

Quoted 8 lines
 configs/mx6dlsabreauto_defconfig  | 2 ++
 configs/mx6dlsabresd_defconfig    | 2 ++
 configs/mx6qsabreauto_defconfig   | 2 ++
 configs/mx6qsabrelite_defconfig   | 2 ++
 configs/mx6qsabresd_defconfig     | 2 ++
 configs/mx6sabresd_spl_defconfig  | 3 ++-
 include/configs/mx6sabre_common.h | 2 --
 7 files changed, 12 insertions(+), 3 deletions(-)

Applied to u-boot-dm.