Home
last modified time | relevance | path

Searched refs:ocotp_regs (Results 1 – 14 of 14) sorted by relevance

/openbmc/u-boot/drivers/misc/
H A Dmxc_ocotp.c157 static void wait_busy(struct ocotp_regs *regs, unsigned int delay_us) in wait_busy()
163 static void clear_error(struct ocotp_regs *regs) in clear_error()
168 static int prepare_access(struct ocotp_regs **regs, u32 bank, u32 word, in prepare_access()
171 *regs = (struct ocotp_regs *)OCOTP_BASE_ADDR; in prepare_access()
196 static int finish_access(struct ocotp_regs *regs, const char *caller) in finish_access()
215 static int prepare_read(struct ocotp_regs **regs, u32 bank, u32 word, u32 *val, in prepare_read()
223 struct ocotp_regs *regs; in fuse_read()
248 static void set_timing(struct ocotp_regs *regs) in set_timing()
266 static void set_timing(struct ocotp_regs *regs) in set_timing()
272 static void set_timing(struct ocotp_regs *regs) in set_timing()
[all …]
H A Dmxs_ocotp.c24 static struct mxs_ocotp_regs *ocotp_regs = variable
37 reg = readl(&ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_wait_busy_clear()
54 writel(OCOTP_CTRL_ERROR, &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_clear_error()
63 &ocotp_regs->hw_ocotp_ctrl_set); in mxs_ocotp_read_bank_open()
74 &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_read_bank_open()
213 writel(addr | OCOTP_CTRL_WR_UNLOCK_KEY, &ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_write_fuse()
216 writel(mask, &ocotp_regs->hw_ocotp_data); in mxs_ocotp_write_fuse()
227 if (readl(&ocotp_regs->hw_ocotp_ctrl) & OCOTP_CTRL_ERROR) { in mxs_ocotp_write_fuse()
246 reg = ((uint32_t)&ocotp_regs->hw_ocotp_cust0) + (reg << 4); in mxs_ocotp_read_fuse()
/openbmc/u-boot/board/bluegiga/apx4devkit/
H A Dapx4devkit.c114 struct mxs_ocotp_regs *ocotp_regs = in get_board_serial() local
120 writel(OCOTP_CTRL_RD_BANK_OPEN, &ocotp_regs->hw_ocotp_ctrl_set); in get_board_serial()
122 if (mxs_wait_mask_clr(&ocotp_regs->hw_ocotp_ctrl_reg, OCOTP_CTRL_BUSY, in get_board_serial()
128 serialnr->low = readl(&ocotp_regs->hw_ocotp_cust3); in get_board_serial()
/openbmc/u-boot/arch/arm/mach-imx/
H A Dcpu.c354 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_cpu_speed_grade_hz()
386 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_cpu_temp_grade()
466 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in nxp_board_rev()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dmxs.c237 struct mxs_ocotp_regs *ocotp_regs = in imx_get_mac_from_fuse() local
243 writel(OCOTP_CTRL_RD_BANK_OPEN, &ocotp_regs->hw_ocotp_ctrl_set); in imx_get_mac_from_fuse()
245 if (mxs_wait_mask_clr(&ocotp_regs->hw_ocotp_ctrl_reg, OCOTP_CTRL_BUSY, in imx_get_mac_from_fuse()
251 data = readl(&ocotp_regs->hw_ocotp_cust0); in imx_get_mac_from_fuse()
/openbmc/u-boot/arch/arm/mach-imx/mx7/
H A Dsoc.c133 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in is_mx7d()
333 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_board_serial()
/openbmc/u-boot/arch/arm/mach-imx/mx6/
H A Dsoc.c125 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_cpu_speed_grade_hz()
184 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_cpu_temp_grade()
329 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in init_bandgap()
H A Dopos6ul.c236 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in spl_dram_init()
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/
H A Dgeneric.c257 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in imx_get_mac_from_fuse()
/openbmc/u-boot/arch/arm/include/asm/arch-imx8m/
H A Dimx-regs.h154 struct ocotp_regs { struct
/openbmc/u-boot/arch/arm/include/asm/arch-vf610/
H A Dimx-regs.h389 struct ocotp_regs { struct
/openbmc/u-boot/arch/arm/include/asm/arch-mx6/
H A Dimx-regs.h726 struct ocotp_regs { struct
/openbmc/u-boot/arch/arm/include/asm/arch-mx7ulp/
H A Dimx-regs.h947 struct ocotp_regs { struct
/openbmc/u-boot/arch/arm/include/asm/arch-mx7/
H A Dimx-regs.h892 struct ocotp_regs { struct