Lines Matching +full:otp +full:- +full:1
2 * BCM2835 One-Time Programmable (OTP) Memory
4 * The OTP implementation is mostly a stub except for the OTP rows
7 * The OTP registers are unimplemented due to lack of documentation.
11 * SPDX-License-Identifier: MIT
19 /* OTP rows are 1-indexed */
22 assert(row <= BCM2835_OTP_ROW_COUNT && row >= 1); in bcm2835_otp_get_row()
24 return s->otp_rows[row - 1]; in bcm2835_otp_get_row()
30 assert(row <= BCM2835_OTP_ROW_COUNT && row >= 1); in bcm2835_otp_set_row()
32 /* Real OTP rows work as e-fuses */ in bcm2835_otp_set_row()
33 s->otp_rows[row - 1] |= value; in bcm2835_otp_set_row()
150 memory_region_init_io(&s->iomem, OBJECT(dev), &bcm2835_otp_ops, s, in bcm2835_otp_realize()
152 sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->iomem); in bcm2835_otp_realize()
154 memset(s->otp_rows, 0x00, sizeof(s->otp_rows)); in bcm2835_otp_realize()
159 .version_id = 1,
160 .minimum_version_id = 1,
171 dc->realize = bcm2835_otp_realize; in bcm2835_otp_class_init()
172 dc->vmsd = &vmstate_bcm2835_otp; in bcm2835_otp_class_init()