Lines Matching +full:imx8m +full:- +full:clock
1 // SPDX-License-Identifier: GPL-2.0+
14 #include <asm/arch/imx-regs.h>
15 #include <asm/arch/clock.h>
18 #include <asm/mach-imx/boot_mode.h>
28 static u32 reset_cause = -1;
34 if (reset_cause == -1) { in get_imx_reset_cause()
35 reset_cause = readl(&src_regs->srsr); in get_imx_reset_cause()
36 /* preserve the value for U-Boot proper */ in get_imx_reset_cause()
38 writel(reset_cause, &src_regs->srsr); in get_imx_reset_cause()
63 return "JTAG HIGH-Z"; in get_reset_cause()
117 * imx_ddr_size - return size in bytes of DRAM according MMDC config
125 unsigned ctl = readl(&mem->ctl); in imx_ddr_size()
126 unsigned misc = readl(&mem->misc); in imx_ddr_size()
149 return "8MQ"; /* Quad-core version of the imx8m */ in get_imx_type()
151 return "7S"; /* Single-core version of the mx7 */ in get_imx_type()
153 return "7D"; /* Dual-core version of the mx7 */ in get_imx_type()
155 return "6QP"; /* Quad-Plus version of the mx6 */ in get_imx_type()
157 return "6DP"; /* Dual-Plus version of the mx6 */ in get_imx_type()
159 return "6Q"; /* Quad-core version of the mx6 */ in get_imx_type()
161 return "6D"; /* Dual-core version of the mx6 */ in get_imx_type()
167 return "6SL"; /* Solo-Lite version of the mx6 */ in get_imx_type()
173 return "6UL"; /* Ultra-Lite version of the mx6 */ in get_imx_type()
239 debug(" - invalid sensor data\n"); in print_cpuinfo()
241 debug(" - invalid sensor device\n"); in print_cpuinfo()
252 int rc = -ENODEV; in cpu_eth_init()
263 * Initializes on-chip MMC controllers.
278 reg = __raw_readl(&imx_ccm->cbcdr); in get_ahb_clk()
311 reg = readl(&iomuxc_regs->gpr[1]); in set_chipselect_size()
335 writel(reg, &iomuxc_regs->gpr[1]); in set_chipselect_size()
342 * defines a 2-bit SPEED_GRADING
355 struct fuse_bank *bank = &ocotp->bank[1]; in get_cpu_speed_grade_hz()
357 (struct fuse_bank1_regs *)bank->fuse_regs; in get_cpu_speed_grade_hz()
360 val = readl(&fuse->tester3); in get_cpu_speed_grade_hz()
380 * defines a 2-bit SPEED_GRADING
387 struct fuse_bank *bank = &ocotp->bank[1]; in get_cpu_temp_grade()
389 (struct fuse_bank1_regs *)bank->fuse_regs; in get_cpu_temp_grade()
392 val = readl(&fuse->tester3); in get_cpu_temp_grade()
398 *minc = -40; in get_cpu_temp_grade()
401 *minc = -40; in get_cpu_temp_grade()
404 *minc = -20; in get_cpu_temp_grade()
422 u8 boot_type = (*p)->boot_dev_type; in get_boot_device()
423 u8 boot_instance = (*p)->boot_dev_instance; in get_boot_device()
467 struct fuse_bank *bank = &ocotp->bank[4]; in nxp_board_rev()
469 (struct fuse_bank4_regs *)bank->fuse_regs; in nxp_board_rev()
471 return (readl(&fuse->gp1) >> 8 & 0x0F); in nxp_board_rev()
478 return (*rev + nxp_board_rev() - 1); in nxp_board_rev_string()