This is a simple uclass for SOC drivers.
It is intend to serve as uclass for SOC specific drivers
that don't fall into any other uclass catagories.
Currently, it doesn't define any special ops.

Signed-off-by: Ramon Fried <ramon.fr...@gmail.com>

---

 drivers/soc/Makefile     | 1 +
 drivers/soc/soc-uclass.c | 8 ++++++++
 include/dm/uclass-id.h   | 1 +
 3 files changed, 10 insertions(+)
 create mode 100644 drivers/soc/soc-uclass.c

diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile
index 42037f99d5..d17f6ecaa0 100644
--- a/drivers/soc/Makefile
+++ b/drivers/soc/Makefile
@@ -3,3 +3,4 @@
 # Makefile for the U-Boot SOC specific device drivers.
 
 obj-$(CONFIG_ARCH_KEYSTONE)    += keystone/
+obj-y += soc-uclass.o
diff --git a/drivers/soc/soc-uclass.c b/drivers/soc/soc-uclass.c
new file mode 100644
index 0000000000..858f30649f
--- /dev/null
+++ b/drivers/soc/soc-uclass.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
+#include <common.h>
+#include <dm.h>
+
+UCLASS_DRIVER(soc) = {
+       .id     = UCLASS_SOC,
+       .name       = "soc",
+};
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index d7f9df3583..a79cc9aa6d 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -74,6 +74,7 @@ enum uclass_id {
        UCLASS_RTC,             /* Real time clock device */
        UCLASS_SCSI,            /* SCSI device */
        UCLASS_SERIAL,          /* Serial UART */
+       UCLASS_SOC,             /* SOC (System on chip) specific device */
        UCLASS_SPI,             /* SPI bus */
        UCLASS_SPMI,            /* System Power Management Interface bus */
        UCLASS_SPI_FLASH,       /* SPI flash */
-- 
2.17.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to