public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Pavel Herrmann <morpheus.ibis@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 06/16] dm: Add README for driver model
Date: Wed, 06 Nov 2013 11:54:56 +0100	[thread overview]
Message-ID: <1884606.SVB8x29SNI@bloomfield> (raw)
In-Reply-To: <CAPnjgZ1BzPb4z=zZ2xhNeF8NrPGmS5XC-x_FHsuWO80mmquCow@mail.gmail.com>

Hi

On Tuesday 05 of November 2013 14:34:03 Simon Glass wrote:
> >> +Declaring Uclasses
> >> +------------------
> >> +
> >> +The demo uclass is declared like this:
> >> +
> >> +U_BOOT_CLASS(demo) = {
> >> +     .id             = UCLASS_DEMO,
> >> +};
> >> +
> >> +It is also possible to specify special methods for probe, etc. The
> >> uclass
> >> +numbering comes from include/dm/uclass.h. To add a new uclass, add to
> >> the
> >> +end of the enum there, then declare your uclass as above.
> > 
> > I wonder if we cannot even automate the numbering here ;-)
> 
> We could but it would need some lookup mechanism. String search? I'll
> leave it as is at the moment but add something to the bottom of the
> README.

please keep in mind that the original design was done with the possibility of 
loading drivers as modules at runtime, while only having certain uclasses 
compiled in. having dynamic ID numbers would complicate things (more 
precisely, no dynamic uclass loading, uclass id map would be part of the 
driver ABI).

if you have ditched the whole idea of runtime loading then please ignore me, i 
havent cought up with all the changes

Regards
Pavel Herrmann

  parent reply	other threads:[~2013-11-06 10:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-21 17:49 [U-Boot] [PATCH v5 0/16] Driver model implementation, tests, demo and GPIO Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 01/16] sandbox: Make map_to_sysmem() use a constant pointer Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 02/16] sandbox: Correct data sizes and printf() strings in fdtdec.c Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 03/16] sandbox: config: Don't use 64-bit physical memory Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 04/16] sandbox: Build a device tree file for sandbox Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 05/16] Add cmd_process_error() to report and process errors Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 06/16] dm: Add README for driver model Simon Glass
2013-10-23  2:56   ` Marek Vasut
2013-11-05 20:34     ` Simon Glass
2013-11-05 22:38       ` Marek Vasut
2013-11-06 10:54       ` Pavel Herrmann [this message]
2013-10-21 17:49 ` [U-Boot] [PATCH v5 07/16] dm: Add base driver model support Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 08/16] sandbox: config: Enable driver model Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 09/16] dm: Set up driver model after relocation Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 10/16] dm: Add basic tests Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 11/16] dm: Add a 'dm' command for testing Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 12/16] dm: Add a demonstration/example driver Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 13/16] dm: Add GPIO support and tests Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 14/16] sandbox: Convert GPIOs to use driver model Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 15/16] dm: Enable gpio command to support " Simon Glass
2013-10-21 17:49 ` [U-Boot] [PATCH v5 16/16] dm: Remove old driver model documentation Simon Glass

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=1884606.SVB8x29SNI@bloomfield \
    --to=morpheus.ibis@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