mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-03 17:38:39 +00:00
amlogic: Move efuse code to common directory
The efuse code is the same between GXL and GXBB. Move the code to common directory. Signed-off-by: Carlo Caione <ccaione@baylibre.com> Change-Id: Ie37f21d1907a36292724f1fb645a78041fe4a6b3
This commit is contained in:
parent
5b74369871
commit
d498d24970
4 changed files with 2 additions and 27 deletions
|
@ -28,7 +28,7 @@ BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
|
||||||
plat/common/plat_psci_common.c \
|
plat/common/plat_psci_common.c \
|
||||||
${AML_PLAT_COMMON}/aarch64/aml_helpers.S \
|
${AML_PLAT_COMMON}/aarch64/aml_helpers.S \
|
||||||
${AML_PLAT_SOC}/gxbb_bl31_setup.c \
|
${AML_PLAT_SOC}/gxbb_bl31_setup.c \
|
||||||
${AML_PLAT_SOC}/gxbb_efuse.c \
|
${AML_PLAT_COMMON}/aml_efuse.c \
|
||||||
${AML_PLAT_SOC}/gxbb_mhu.c \
|
${AML_PLAT_SOC}/gxbb_mhu.c \
|
||||||
${AML_PLAT_SOC}/gxbb_pm.c \
|
${AML_PLAT_SOC}/gxbb_pm.c \
|
||||||
${AML_PLAT_COMMON}/aml_scpi.c \
|
${AML_PLAT_COMMON}/aml_scpi.c \
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include "aml_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;
|
|
||||||
}
|
|
|
@ -31,7 +31,7 @@ BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
|
||||||
plat/common/plat_psci_common.c \
|
plat/common/plat_psci_common.c \
|
||||||
${AML_PLAT_COMMON}/aarch64/aml_helpers.S \
|
${AML_PLAT_COMMON}/aarch64/aml_helpers.S \
|
||||||
${AML_PLAT_SOC}/gxl_bl31_setup.c \
|
${AML_PLAT_SOC}/gxl_bl31_setup.c \
|
||||||
${AML_PLAT_SOC}/gxl_efuse.c \
|
${AML_PLAT_COMMON}/aml_efuse.c \
|
||||||
${AML_PLAT_SOC}/gxl_mhu.c \
|
${AML_PLAT_SOC}/gxl_mhu.c \
|
||||||
${AML_PLAT_SOC}/gxl_pm.c \
|
${AML_PLAT_SOC}/gxl_pm.c \
|
||||||
${AML_PLAT_COMMON}/aml_scpi.c \
|
${AML_PLAT_COMMON}/aml_scpi.c \
|
||||||
|
|
Loading…
Add table
Reference in a new issue