From: Ramon Fried <ramon.fried@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] dm: SOC (System on chip) uclass
Date: Sat, 9 Jun 2018 14:06:16 +0300 [thread overview]
Message-ID: <20180609110619.9753-2-ramon.fried@gmail.com> (raw)
In-Reply-To: <20180609110619.9753-1-ramon.fried@gmail.com>
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.fried@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
next prev parent reply other threads:[~2018-06-09 11:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-09 11:06 [U-Boot] [PATCH 0/4] Qualcomm SMEM driver Ramon Fried
2018-06-09 11:06 ` Ramon Fried [this message]
2018-06-09 10:31 ` [U-Boot] [PATCH 1/4] dm: SOC (System on chip) uclass Heinrich Schuchardt
2018-06-11 14:54 ` Simon Glass
2018-06-09 11:06 ` [U-Boot] [PATCH 2/4] soc: qualcomm: Add Shared Memory Manager driver Ramon Fried
2018-06-09 10:12 ` Heinrich Schuchardt
2018-06-09 10:29 ` Ramon Fried
2018-06-09 11:17 ` Heinrich Schuchardt
2018-06-13 17:37 ` Ramon Fried
2018-06-09 10:24 ` Heinrich Schuchardt
2018-06-09 10:31 ` Ramon Fried
2018-06-11 14:53 ` Simon Glass
2018-06-11 19:14 ` Ramon Fried
2018-06-11 19:38 ` Simon Glass
2018-06-12 8:50 ` Ramon Fried
2018-06-13 1:29 ` Simon Glass
2018-06-13 17:35 ` Ramon Fried
2018-06-09 11:06 ` [U-Boot] [PATCH 3/4] dts: db410c: added smem nodes Ramon Fried
2018-06-09 11:06 ` [U-Boot] [PATCH 4/4] dts: db820c: " Ramon Fried
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180609110619.9753-2-ramon.fried@gmail.com \
--to=ramon.fried@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox