1 /* 2 * Copyright (C) 2021 Marvell International Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * https://spdx.org/licenses 6 */ 7 8 #ifndef EFUSE_DEF_H 9 #define EFUSE_DEF_H 10 11 #include <platform_def.h> 12 13 #define MVEBU_AP_EFUSE_SRV_CTRL_REG (MVEBU_AP_GEN_MGMT_BASE + 0x8) 14 #define EFUSE_SRV_CTRL_LD_SELECT_OFFS 6 15 #define EFUSE_SRV_CTRL_LD_SELECT_MASK (1 << EFUSE_SRV_CTRL_LD_SELECT_OFFS) 16 17 #define MVEBU_AP_LD_EFUSE_BASE (MVEBU_AP_GEN_MGMT_BASE + 0xF00) 18 /* Bits [31:0] - 32 data bits total */ 19 #define MVEBU_AP_LDX_31_0_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE) 20 /* Bits [62:32] - 31 data bits total 32nd bit is parity for bits [62:0]*/ 21 #define MVEBU_AP_LDX_62_32_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE + 0x4) 22 /* Bits [94:63] - 32 data bits total */ 23 #define MVEBU_AP_LDX_94_63_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE + 0x8) 24 /* Bits [125:95] - 31 data bits total, 32nd bit is parity for bits [125:63] */ 25 #define MVEBU_AP_LDX_125_95_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE + 0xC) 26 /* Bits [157:126] - 32 data bits total */ 27 #define MVEBU_AP_LDX_126_157_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE + 0x10) 28 /* Bits [188:158] - 31 data bits total, 32nd bit is parity for bits [188:126] */ 29 #define MVEBU_AP_LDX_188_158_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE + 0x14) 30 /* Bits [220:189] - 32 data bits total */ 31 #define MVEBU_AP_LDX_220_189_EFUSE_OFFS (MVEBU_AP_LD_EFUSE_BASE + 0x18) 32 33 #endif /* EFUSE_DEF_H */ 34