Lines Matching +full:off +full:- +full:chip
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
31 * Access to the Freescale i.MX6 On-Chip One-Time-Programmable Memory
72 if ((root = OF_finddevice("/")) == -1) in fsl_ocotp_devmap()
74 if ((child = fdt_depth_search_compatible(root, "fsl,imx6q-ocotp", 0)) == 0) in fsl_ocotp_devmap()
98 RD4(struct ocotp_softc *sc, bus_size_t off) in RD4() argument
101 return (bus_read_4(sc->mem_res, off)); in RD4()
119 sc->dev = dev; in ocotp_attach()
123 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in ocotp_attach()
125 if (sc->mem_res == NULL) { in ocotp_attach()
153 if (ofw_bus_is_compatible(dev, "fsl,imx6q-ocotp") == 0) in ocotp_probe()
157 "Freescale On-Chip One-Time-Programmable Memory"); in ocotp_probe()
163 fsl_ocotp_read_4(bus_size_t off) in fsl_ocotp_read_4() argument
166 if (off > FSL_OCOTP_LAST_REG) in fsl_ocotp_read_4()
171 return (RD4(ocotp_sc, off)); in fsl_ocotp_read_4()
182 return (ocotp_regs[off / 4]); in fsl_ocotp_read_4()