From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 17 Apr 2016 12:00:59 +0200 Subject: [U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor In-Reply-To: <1460879338-7671-4-git-send-email-b.galvani@gmail.com> References: <1460879338-7671-1-git-send-email-b.galvani@gmail.com> <1460879338-7671-4-git-send-email-b.galvani@gmail.com> Message-ID: <57135EDB.7010800@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 [...] > 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 > + * > + * SPDX-License-Identifier: GPL-2.0+ > + * > + * Secure monitor calls. > + */ > + > +#include > +#include > + > +#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