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 <[email protected]>
[...] > 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 <[email protected]> > + * > + * 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 _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

