Skip to content

Commit 2431817

Browse files
committed
add documentation stub
1 parent ad745b2 commit 2431817

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

otp/otp_linux.go

+17
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,20 @@ func ReadNVMEM(devicePath string, f *fusemap.FuseMap, name string) (res []byte,
175175

176176
return
177177
}
178+
179+
// Blow an OTP fuse using the NXP On-Chip OTP Controller.
180+
//
181+
// WARNING: Fusing SoC OTPs is an **irreversible** action that permanently
182+
// fuses values on the device. This means that any errors in the process, or
183+
// lost fused data such as cryptographic key material, might result in a
184+
// **bricked** device.
185+
//
186+
// The use of this function is therefore **at your own risk**.
187+
func BlowOCOTP(bank int, word int, off int, bitLen int, val []byte) (err error) {
188+
return errors.New("available only under GOOS=tamago")
189+
}
190+
191+
// Read an OTP fuse using the NXP On-Chip OTP Controller.
192+
func ReadOCOTP(bank int, word int, off int, bitLen int) (res []byte, err error) {
193+
return nil, errors.New("available only under GOOS=tamago")
194+
}

0 commit comments

Comments
 (0)