From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Alexey Romanov <avromanov@sberdevices.ru>,
narmstrong@baylibre.com, trini@konsulko.com, sjg@chromium.org
Cc: u-boot-amlogic@groups.io, u-boot@lists.denx.de,
kernel@sberdevices.ru, Alexey Romanov <avromanov@sberdevices.ru>,
Neil Armstrong <neil.armstrong@linaro.org>
Subject: Re: [PATCH v4 1/5] asm/arch-meson: add missing meson_sm_write_efuse signature
Date: Tue, 10 Jan 2023 14:40:56 +0100 [thread overview]
Message-ID: <87bkn68q3b.fsf@baylibre.com> (raw)
In-Reply-To: <20230110105650.54580-2-avromanov@sberdevices.ru>
On Tue, Jan 10, 2023 at 13:56, Alexey Romanov <avromanov@sberdevices.ru> wrote:
> This function can be used by other modules. Also add comments.
>
> Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> ---
> arch/arm/include/asm/arch-meson/sm.h | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h
> index f3ae46a6d6b..53b75176493 100644
> --- a/arch/arm/include/asm/arch-meson/sm.h
> +++ b/arch/arm/include/asm/arch-meson/sm.h
> @@ -6,10 +6,35 @@
> #ifndef __MESON_SM_H__
> #define __MESON_SM_H__
>
> +/**
> + * meson_sm_read_efuse - read efuse memory into buffer
> + *
> + * @offset: offset from the start efuse memory
> + * @buffer: pointer to buffer
> + * @size: number of bytes to read
> + * @return: number of bytes read
> + */
> ssize_t meson_sm_read_efuse(uintptr_t offset, void *buffer, size_t size);
>
> +/**
> + * meson_sm_write_efuse - write into efuse memory from buffer
> + *
> + * @offset: offset from the start efuse memory
> + * @buffer: pointer to buffer
> + * @size: number of bytes to write
> + * @return: number of bytes written
> + */
> +ssize_t meson_sm_write_efuse(uintptr_t offset, void *buffer, size_t size);
> +
> #define SM_SERIAL_SIZE 12
>
> +/**
> + * meson_sm_get_serial - read chip unique id into buffer
> + *
> + * @buffer: pointer to buffer
> + * @size: buffer size.
> + * @return: zero on success or -errno on failure
> + */
> int meson_sm_get_serial(void *buffer, size_t size);
>
> enum {
> @@ -28,6 +53,9 @@ enum {
> REBOOT_REASON_WATCHDOG_REBOOT = 13,
> };
>
> +/**
> + * meson_sm_get_reboot_reason - get reboot reason
> + */
> int meson_sm_get_reboot_reason(void);
>
> #endif /* __MESON_SM_H__ */
> --
> 2.25.1
next prev parent reply other threads:[~2023-01-10 13:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 10:56 [PATCH v4 0/5] arch-meson: introduce efusedump command Alexey Romanov
2023-01-10 10:56 ` [PATCH v4 1/5] asm/arch-meson: add missing meson_sm_write_efuse signature Alexey Romanov
2023-01-10 13:40 ` Mattijs Korpershoek [this message]
2023-01-10 10:56 ` [PATCH v4 2/5] arm/mach-meson: move smc commands in cmd/meson Alexey Romanov
2023-01-10 10:56 ` [PATCH v4 3/5] doc/usage: cmd: documentation for meson/sm command Alexey Romanov
2023-01-10 13:42 ` Mattijs Korpershoek
2023-01-10 10:56 ` [PATCH v4 4/5] cmd/arm: meson: sm: introduce efusedump command Alexey Romanov
2023-01-10 10:56 ` [PATCH v4 5/5] doc/usage: cmd: sm: documentation efusedump cmd Alexey Romanov
2023-01-10 13:42 ` Mattijs Korpershoek
2023-01-10 14:27 ` [PATCH v4 0/5] arch-meson: introduce efusedump command Neil Armstrong
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=87bkn68q3b.fsf@baylibre.com \
--to=mkorpershoek@baylibre.com \
--cc=avromanov@sberdevices.ru \
--cc=kernel@sberdevices.ru \
--cc=narmstrong@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot-amlogic@groups.io \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox