All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor
Date: Sun, 17 Apr 2016 12:00:59 +0200	[thread overview]
Message-ID: <57135EDB.7010800@denx.de> (raw)
In-Reply-To: <1460879338-7671-4-git-send-email-b.galvani@gmail.com>

On 04/17/2016 09:48 AM, Beniamino Galvani wrote:
> Implement calls to the secure monitor to reset the board and read the
> MAC address from e-fuse.
> 
> Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>

[...]

> diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c
> new file mode 100644
> index 0000000..3065bd2
> --- /dev/null
> +++ b/arch/arm/mach-meson/sm.c
> @@ -0,0 +1,71 @@
> +/*
> + * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
> + *
> + * SPDX-License-Identifier:	GPL-2.0+
> + *
> + * Secure monitor calls.
> + */
> +
> +#include <common.h>
> +#include <asm/arch/gxbb.h>
> +
> +#define MIN(a, b) ((a) < (b) ? (a) : (b))

See include/linux/kernel.h for min macro

> +#define FN_GET_SHARE_MEM_INPUT_BASE	0x82000020
> +#define FN_GET_SHARE_MEM_OUTPUT_BASE	0x82000021
> +#define FN_EFUSE_READ			0x82000030
> +#define FN_EFUSE_WRITE			0x82000031
> +#define FN_REBOOT			0x84000009
> +
> +static void *shmem_input;
> +static void *shmem_output;

[...]


-- 
Best regards,
Marek Vasut

  parent reply	other threads:[~2016-04-17 10:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-17  7:48 [U-Boot] [PATCH v4 0/3] Amlogic Meson GXBaby and ODROID-C2 support Beniamino Galvani
2016-04-17  7:48 ` [U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs Beniamino Galvani
2016-04-17  9:56   ` Marek Vasut
2016-04-17 11:14     ` Beniamino Galvani
2016-04-17 20:59       ` Marek Vasut
2016-04-18 10:57         ` Beniamino Galvani
2016-04-18 11:06           ` Alexander Graf
2016-04-18 21:38             ` Beniamino Galvani
2016-04-18 21:52               ` Alexander Graf
2016-04-25 21:43           ` Joe Hershberger
2016-04-18 11:55   ` Andreas Färber
2016-04-18 22:05     ` Beniamino Galvani
2016-04-17  7:48 ` [U-Boot] [PATCH v4 2/3] arm: add initial support for Amlogic Meson and ODROID-C2 Beniamino Galvani
2016-04-17  7:48 ` [U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor Beniamino Galvani
2016-04-17  9:48   ` Alexander Graf
2016-04-18 21:50     ` Beniamino Galvani
2016-04-17 10:00   ` Marek Vasut [this message]
2016-04-18 21:52     ` Beniamino Galvani

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=57135EDB.7010800@denx.de \
    --to=marex@denx.de \
    --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.