+#ifdef CONFIG_SPL_DISABLE_OF_CONTROL
+#undef CONFIG_OF_CONTROL
+#endif
+
+#ifndef CONFIG_SPL_DM
+#undef CONFIG_DM_SERIAL
+#undef CONFIG_DM_GPIO
+#undef CONFIG_DM_I2C
+#undef CONFIG_DM_SPI
+#endif
+
+#undef CONFIG_DM_WARN
+#undef CONFIG_DM_DEVICE_REMOVE
+#undef CONFIG_DM_SEQ_ALIAS
+#undef CONFIG_DM_STDIO
+