From: Mario Six <mario.six@gdsys.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 0/3] dm: gpio: Add driver for MPC85xx GPIO controller
Date: Fri, 13 May 2016 13:15:07 +0200 [thread overview]
Message-ID: <1463138110-18565-1-git-send-email-mario.six@gdsys.cc> (raw)
The functions for accessing GPIOs on MPC85xx are hardcoded in
arch/powerpc/include/asm/mpc85xx_gpio.h This leads to problems if another GPIO
controller supporting the driver model is to be used simultaneously.
Therefore, this patch moves the "static" functions into a DM-compatible driver,
and also introduces a set of functions into the GPIO uclass that expose the
controller's capability to switch individual GPIOs into open-drain-mode.
v3 also implements shadowing of the GPDAT register to work around a known issue
in some MPC85xx GPIO controllers (as pointed out by Joakim Tjernlund).
mario.six at gdsys.cc (3):
dm: gpio: Add driver for MPC85XX GPIO controller
dm: gpio: Add methods for open drain setting
dm: gpio: Implement open drain for MPC85XX GPIO
arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 +
arch/powerpc/include/asm/immap_85xx.h | 2 +
drivers/gpio/Kconfig | 25 ++++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-uclass.c | 32 +++++
drivers/gpio/mpc85xx_gpio.c | 206 +++++++++++++++++++++++++++
include/asm-generic/gpio.h | 34 +++++
7 files changed, 302 insertions(+)
create mode 100644 drivers/gpio/mpc85xx_gpio.c
--
2.7.0.GIT
next reply other threads:[~2016-05-13 11:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 11:15 Mario Six [this message]
2016-05-13 11:15 ` [U-Boot] [PATCH v3 1/3] dm: gpio: Add driver for MPC85XX GPIO controller Mario Six
2016-05-19 4:02 ` Simon Glass
2016-05-13 11:15 ` [U-Boot] [PATCH v3 2/3] dm: gpio: Add methods for open drain setting Mario Six
2016-05-13 11:15 ` [U-Boot] [PATCH v3 3/3] dm: gpio: Implement open drain for MPC85XX GPIO Mario Six
2016-05-13 11:50 ` [U-Boot] [PATCH v3 0/3] dm: gpio: Add driver for MPC85xx GPIO controller Joakim Tjernlund
2016-05-15 18:35 ` Mario Six
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=1463138110-18565-1-git-send-email-mario.six@gdsys.cc \
--to=mario.six@gdsys.cc \
--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.