Searched refs:ocotp_regs (Results 1 – 13 of 13) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/misc/ |
| H A D | mxc_ocotp.c | 153 static void wait_busy(struct ocotp_regs *regs, unsigned int delay_us) in wait_busy() 159 static void clear_error(struct ocotp_regs *regs) in clear_error() 164 static int prepare_access(struct ocotp_regs **regs, u32 bank, u32 word, in prepare_access() 167 *regs = (struct ocotp_regs *)OCOTP_BASE_ADDR; in prepare_access() 192 static int finish_access(struct ocotp_regs *regs, const char *caller) in finish_access() 211 static int prepare_read(struct ocotp_regs **regs, u32 bank, u32 word, u32 *val, in prepare_read() 219 struct ocotp_regs *regs; in fuse_read() 244 static void set_timing(struct ocotp_regs *regs) in set_timing() 262 static void set_timing(struct ocotp_regs *regs) in set_timing() 268 static void set_timing(struct ocotp_regs *regs) in set_timing() [all …]
|
| H A D | mxs_ocotp.c | 25 static struct mxs_ocotp_regs *ocotp_regs = variable 38 reg = readl(&ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_wait_busy_clear() 55 writel(OCOTP_CTRL_ERROR, &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_clear_error() 64 &ocotp_regs->hw_ocotp_ctrl_set); in mxs_ocotp_read_bank_open() 75 &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_read_bank_open() 214 writel(addr | OCOTP_CTRL_WR_UNLOCK_KEY, &ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_write_fuse() 217 writel(mask, &ocotp_regs->hw_ocotp_data); in mxs_ocotp_write_fuse() 228 if (readl(&ocotp_regs->hw_ocotp_ctrl) & OCOTP_CTRL_ERROR) { in mxs_ocotp_write_fuse() 247 reg = ((uint32_t)&ocotp_regs->hw_ocotp_cust0) + (reg << 4); in mxs_ocotp_read_fuse()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx7/ |
| H A D | soc.c | 112 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_cpu_speed_grade_hz() 143 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_cpu_temp_grade() 173 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in is_mx7d() 272 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in get_board_serial() 285 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in imx_get_mac_from_fuse()
|
| /OK3568_Linux_fs/u-boot/board/bluegiga/apx4devkit/ |
| H A D | apx4devkit.c | 115 struct mxs_ocotp_regs *ocotp_regs = in get_board_serial() local 121 writel(OCOTP_CTRL_RD_BANK_OPEN, &ocotp_regs->hw_ocotp_ctrl_set); in get_board_serial() 123 if (mxs_wait_mask_clr(&ocotp_regs->hw_ocotp_ctrl_reg, OCOTP_CTRL_BUSY, in get_board_serial() 129 serialnr->low = readl(&ocotp_regs->hw_ocotp_cust3); in get_board_serial()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx6/ |
| H A D | soc.c | 125 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() 523 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in imx_get_mac_from_fuse()
|
| H A D | opos6ul.c | 266 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in spl_dram_init()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
| H A D | mxs.c | 249 struct mxs_ocotp_regs *ocotp_regs = in imx_get_mac_from_fuse() local 255 writel(OCOTP_CTRL_RD_BANK_OPEN, &ocotp_regs->hw_ocotp_ctrl_set); in imx_get_mac_from_fuse() 257 if (mxs_wait_mask_clr(&ocotp_regs->hw_ocotp_ctrl_reg, OCOTP_CTRL_BUSY, in imx_get_mac_from_fuse() 263 data = readl(&ocotp_regs->hw_ocotp_cust0); in imx_get_mac_from_fuse()
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/vf610/ |
| H A D | generic.c | 258 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in imx_get_mac_from_fuse()
|
| /OK3568_Linux_fs/u-boot/board/freescale/mx6sabreauto/ |
| H A D | mx6sabreauto.c | 409 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; in mx6sabre_rev()
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-vf610/ |
| H A D | imx-regs.h | 377 struct ocotp_regs { struct
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-mx6/ |
| H A D | imx-regs.h | 715 struct ocotp_regs { struct
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-mx7ulp/ |
| H A D | imx-regs.h | 948 struct ocotp_regs { struct
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-mx7/ |
| H A D | imx-regs.h | 887 struct ocotp_regs { struct
|