Message ID | 1533117848-28194-1-git-send-email-narmstrong@baylibre.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | pinctrl: meson: Add support for TEST_N gpio | expand |
On Wed, Aug 1, 2018 at 12:04 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > The Amlogic Meson GX and AXG has a Secure Monitor call to change the > TEST_N pin gpio direction, add it in the supported call list. > > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Looks fine to me, could we have Carlo's review on this patch? Yours, Linus Walleij
diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c index 0ec2ca8..f407001 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -48,6 +48,7 @@ struct meson_sm_chip gxbb_chip = { CMD(SM_EFUSE_READ, 0x82000030), CMD(SM_EFUSE_WRITE, 0x82000031), CMD(SM_EFUSE_USER_MAX, 0x82000033), + CMD(SM_TEST_N_DIR, 0x82000046), { /* sentinel */ }, }, }; diff --git a/include/linux/firmware/meson/meson_sm.h b/include/linux/firmware/meson/meson_sm.h index 37a5eae..133b1c3 100644 --- a/include/linux/firmware/meson/meson_sm.h +++ b/include/linux/firmware/meson/meson_sm.h @@ -17,6 +17,7 @@ enum { SM_EFUSE_READ, SM_EFUSE_WRITE, SM_EFUSE_USER_MAX, + SM_TEST_N_DIR, }; struct meson_sm_firmware;
The Amlogic Meson GX and AXG has a Secure Monitor call to change the TEST_N pin gpio direction, add it in the supported call list. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> --- drivers/firmware/meson/meson_sm.c | 1 + include/linux/firmware/meson/meson_sm.h | 1 + 2 files changed, 2 insertions(+)