mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00

Meson is the internal code name for the SoC family. The correct name for the platform should be Amlogic. Change the name of the platform directory. Signed-off-by: Carlo Caione <ccaione@baylibre.com> Change-Id: Icc140e1ea137f12117acbf64c7dcb1a8b66b345d
25 lines
481 B
C
25 lines
481 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "gxbb_private.h"
|
|
|
|
#define EFUSE_BASE 0x140
|
|
#define EFUSE_SIZE 0xC0
|
|
|
|
uint64_t gxbb_efuse_read(void *dst, uint32_t offset, uint32_t size)
|
|
{
|
|
if ((uint64_t)(offset + size) > (uint64_t)EFUSE_SIZE)
|
|
return 0;
|
|
|
|
return scpi_efuse_read(dst, offset + EFUSE_BASE, size);
|
|
}
|
|
|
|
uint64_t gxbb_efuse_user_max(void)
|
|
{
|
|
return EFUSE_SIZE;
|
|
}
|