All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount
Date: Mon, 10 Dec 2018 18:07:17 -0700	[thread overview]
Message-ID: <CAPnjgZ0NsOn7LGjyZ+VRxeO4nfFLmSmKsDqbWFhN=ofXhweHEw@mail.gmail.com> (raw)
In-Reply-To: <1543356019-47135-2-git-send-email-philipp.tomsich@theobroma-systems.com>

Hi Philipp,

On Tue, 27 Nov 2018 at 15:00, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
>
> The original bootcount methods do not provide an interface to DM and
> rely on a static configuration for I2C devices (e.g. bus, chip-addr,
> etc. are configured through defines statically).  On a modern system
> that exposes multiple devices in a DTS-configurable way, this is less
> than optimal and a interface to DM-based devices will be desirable.
>
> This adds a simple driver that is DM-aware and configurable via DTS.
> If ambiguous (i.e. multiple bootcount-devices are present) the
> /chosen/u-boot,bootcount-device property can be used to select one
> bootcount device.
>
> Initially, this provides support for the following DM devices:
>  * RTC devices
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
>
> ---
>
> Changes in v2:
> - changed to provide a UCLASS-based implementation, as requested by
>   SJG in his earlier review
> - split off the RV3029 driver into a separate series
>
>  doc/device-tree-bindings/chosen.txt  | 30 ++++++++++++
>  drivers/bootcount/Kconfig            |  8 ++++
>  drivers/bootcount/Makefile           |  2 +
>  drivers/bootcount/bootcount-uclass.c | 93 ++++++++++++++++++++++++++++++++++++
>  include/bootcount.h                  | 48 +++++++++++++++++++
>  include/dm/uclass-id.h               |  1 +
>  6 files changed, 182 insertions(+)
>  create mode 100644 drivers/bootcount/bootcount-uclass.c

Just checking if there is a text and sandbox driver for this?

Regards,
SImon

  parent reply	other threads:[~2018-12-11  1:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27 22:00 [U-Boot] [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support Philipp Tomsich
2018-11-27 22:00 ` [U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount Philipp Tomsich
2018-12-10  0:01   ` [U-Boot] [U-Boot,v2,1/2] " Philipp Tomsich
2018-12-11  1:07   ` Simon Glass [this message]
2018-12-14 15:37     ` [U-Boot] [PATCH v2 1/2] " Simon Glass
2018-12-14 16:04       ` Philipp Tomsich
2018-12-14 16:06         ` Simon Glass
2018-12-14 20:16           ` Philipp Tomsich
2018-11-27 22:00 ` [U-Boot] [PATCH v2 2/2] bootcount: add a DM RTC backing store " Philipp Tomsich
2018-12-10  0:01   ` [U-Boot] [U-Boot, v2, " Philipp Tomsich
2018-11-28  6:29 ` [U-Boot] EXT: [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support Ray, Ian
2018-11-28  9:25   ` Philipp Tomsich

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='CAPnjgZ0NsOn7LGjyZ+VRxeO4nfFLmSmKsDqbWFhN=ofXhweHEw@mail.gmail.com' \
    --to=sjg@chromium.org \
    --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.