From: Frank Wunderlich <linux@fw-web.de>
To: Lee Jones <lee.jones@linaro.org>
Cc: Frank Wunderlich <frank-w@public-files.de>,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
Peter Geis <pgwipeout@gmail.com>
Subject: [PATCH 2/2] mfd: rk808: Add poweroff and reboot support for rk809 pmic
Date: Wed, 15 Dec 2021 22:33:00 +0100 [thread overview]
Message-ID: <20211215213300.4778-3-linux@fw-web.de> (raw)
In-Reply-To: <20211215213300.4778-1-linux@fw-web.de>
From: Frank Wunderlich <frank-w@public-files.de>
Add support for reset/poweroff rk809. It uses same Register and Values
like rk817 so just add the Chip_id.
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
drivers/mfd/rk808.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index afbd7e01df50..2353caa81aa2 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -545,6 +545,7 @@ static void rk808_pm_power_off(void)
reg = RK808_DEVCTRL_REG,
bit = DEV_OFF_RST;
break;
+ case RK809_ID:
case RK817_ID:
reg = RK817_SYS_CFG(3);
bit = DEV_OFF;
@@ -577,6 +578,7 @@ static int rk808_restart_notify(struct notifier_block *this, unsigned long mode,
reg = RK808_DEVCTRL_REG,
bit = DEV_OFF;
break;
+ case RK809_ID:
case RK817_ID:
reg = RK817_SYS_CFG(3);
bit = DEV_RST;
--
2.25.1
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
prev parent reply other threads:[~2021-12-15 21:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-15 21:32 [PATCH 0/2] Add Poweroff/Reset for rk8xx PMIC Frank Wunderlich
2021-12-15 21:32 ` [PATCH 1/2] mfd: rk808: add reboot support to rk808 pmic Frank Wunderlich
2021-12-15 23:07 ` Nicolas Frattaroli
2021-12-15 23:52 ` Peter Geis
2021-12-16 13:17 ` Robin Murphy
2021-12-16 16:36 ` Aw: " Frank Wunderlich
2021-12-17 2:21 ` Peter Geis
2021-12-15 21:33 ` Frank Wunderlich [this message]
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=20211215213300.4778-3-linux@fw-web.de \
--to=linux@fw-web.de \
--cc=frank-w@public-files.de \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=pgwipeout@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).