blob: d7136e14303b48cf1f5f6cb42c48cf85d55f86a3 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __EFUSE_AMLOGIC_H
#define __EFUSE_AMLOGIC_H
#define EFUSE_KEY_NAME_LEN 32
#define OSCRING_EFUSE_GET 0x8200004D
#define VMIN_EFUSE_GET 0x8200004E
#define GET_SHARE_MEM_OUTPUT_BASE 0x82000021
struct efusekey_info {
char keyname[EFUSE_KEY_NAME_LEN];
unsigned int offset;
unsigned int size;
};
int efuse_getinfo(char *item, struct efusekey_info *info);
ssize_t efuse_user_attr_show(char *name, char *buf);
ssize_t efuse_user_attr_store(char *name, const char *buf, size_t count);
ssize_t efuse_user_attr_read(char *name, char *buf);
int bl31_get_cornerinfo(uint8_t *outbuf, int size);
int bl31_get_vmininfo(u8 *outbuf, int size);
#endif