/*1* Copyright (c) 2018 naehrwert2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#ifndef _KFUSE_H_17#define _KFUSE_H_1819#include <utils/types.h>2021#define KFUSE_STATE_CURBLOCK_MASK 0x3F22#define KFUSE_STATE_ERRBLOCK_SHIFT 823#define KFUSE_STATE_ERRBLOCK_MASK 0x3F0024#define KFUSE_STATE_DONE BIT(16)25#define KFUSE_STATE_CRCPASS BIT(17)26#define KFUSE_STATE_RESTART BIT(24)27#define KFUSE_STATE_STOP BIT(25)28#define KFUSE_STATE_SOFTRESET BIT(31)2930#define KFUSE_KEYADDR_AUTOINC BIT(16)3132#define KFUSE_STATE 0x8033#define KFUSE_KEYADDR 0x8834#define KFUSE_KEYS 0x8C3536#define KFUSE_NUM_WORDS 1443738int kfuse_wait_ready();39int kfuse_read(u32 *buf);4041#endif424344