All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Generic uclass ID
Date: Sat, 2 Jun 2018 20:03:11 +0200	[thread overview]
Message-ID: <a090b2c3-b954-61b4-52a5-e3fe5edd2840@gmx.de> (raw)
In-Reply-To: <CA+Kvs9nwuAhUFPfy6rw0Tn=XHTwSvfwnNZoK+kaPLPRQxKh5Ww@mail.gmail.com>

On 06/02/2018 06:25 PM, Ramon Fried wrote:
> Hi Simon, all.
> 
> I want to port a specific driver from Linux Kernel (Qualcomm smem)
> which is declared in Linux as platform device.
> The implementation is very specific and It doesn't fall into any
> defined uclass id.
> I still want to use the dm framework, what's the approach taken on
> these kind of things ?
> Is it possible to create a generic uclass id ?

Hello Ramon,

a major benefit of the driver model is that drivers are selected via the
device tree.

In Linux the driver is in drivers/soc. Wouldn't it make sense to create
a minimal uclass for platform devices in drivers/soc on U-Boot?

drivers/ram/ram-uclass.c shows what a minimal uclass looks like.
The identifier has to be added in include/dm/uclass-id.h.

Best regards

Heinrich

  reply	other threads:[~2018-06-02 18:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-02 16:25 [U-Boot] Generic uclass ID Ramon Fried
2018-06-02 18:03 ` Heinrich Schuchardt [this message]
2018-06-02 19:19   ` Ramon Fried
2018-06-03 22:32     ` Ramon Fried
2018-06-07 20:28       ` Simon Glass
2018-06-07 21:41         ` Ramon Fried
2018-06-07 23:17           ` Simon Glass
2018-06-09  8:11             ` 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=a090b2c3-b954-61b4-52a5-e3fe5edd2840@gmx.de \
    --to=xypron.glpk@gmx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.