mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 0/4] gpio: Add gpio latch driver
Date: Mon,  7 Nov 2022 15:45:20 +0100	[thread overview]
Message-ID: <20221107144524.489471-1-s.hauer@pengutronix.de> (raw)

This adds a gpio-latch driver recently added to Linux, see
https://lore.kernel.org/lkml/20221007114647.2723457-2-s.hauer@pengutronix.de/T/

This is basically the same driver adjusted for barebox. As a preparation
we have to add some bitmap helpers needed for the driver.

Sascha Hauer (4):
  bitmap: Implement bitmap_*zalloc()
  bitops: include linux/types.h
  bitops: implement assign_bit()
  gpio: Add gpio latch driver

 drivers/gpio/Kconfig      |   6 ++
 drivers/gpio/Makefile     |   1 +
 drivers/gpio/gpio-latch.c | 195 ++++++++++++++++++++++++++++++++++++++
 include/linux/bitmap.h    |   7 ++
 include/linux/bitops.h    |  16 +++-
 lib/bitmap.c              |  10 ++
 6 files changed, 234 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpio/gpio-latch.c

-- 
2.30.2




             reply	other threads:[~2022-11-07 15:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-07 14:45 Sascha Hauer [this message]
2022-11-07 14:45 ` [PATCH 1/4] bitmap: Implement bitmap_*zalloc() Sascha Hauer
2022-11-07 14:45 ` [PATCH 2/4] bitops: include linux/types.h Sascha Hauer
2022-11-07 14:45 ` [PATCH 3/4] bitops: implement assign_bit() Sascha Hauer
2022-11-07 14:45 ` [PATCH 4/4] gpio: Add gpio latch driver Sascha Hauer

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=20221107144524.489471-1-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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