[U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor
Marek Vasut
marex at denx.de
Sun Apr 17 12:00:59 CEST 2016
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 at 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 at 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
More information about the U-Boot
mailing list