/openbmc/u-boot/arch/arm/mach-tegra/tegra20/ |
H A D | warmboot_avp.c | 28 struct clk_rst_ctlr *clkrst = in wb_start() local 55 reg = readl(&clkrst->crc_rst_dev[TEGRA_DEV_U]); in wb_start() 57 writel(reg, &clkrst->crc_rst_dev[TEGRA_DEV_U]); in wb_start() 61 osc_ctrl.word = readl(&clkrst->crc_osc_ctrl); in wb_start() 64 writel(osc_ctrl.word, &clkrst->crc_osc_ctrl); in wb_start() 83 reg = readl(&clkrst->crc_rst_dev[TEGRA_DEV_L]); in wb_start() 85 writel(reg, &clkrst->crc_rst_dev[TEGRA_DEV_L]); in wb_start() 90 writel(reg, &clkrst->crc_cpu_cmplx_set); in wb_start() 108 writel(reg, &clkrst->crc_clk_cpu_cmplx); in wb_start() 198 writel(reg, &clkrst->crc_cpu_cmplx_clr); in wb_start() [all …]
|
H A D | clock.c | 394 struct clk_rst_ctlr *clkrst = in clock_get_osc_freq() local 398 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_freq() 405 struct clk_rst_ctlr *clkrst = in get_periph_source_reg() local 412 return &clkrst->crc_clk_src[internal_id]; in get_periph_source_reg() 509 struct clk_rst_ctlr *clkrst = in clock_set_enable() local 511 u32 *clk = &clkrst->crc_clk_out_enb[PERIPH_REG(periph_id)]; in clock_set_enable() 526 struct clk_rst_ctlr *clkrst = in reset_set_enable() local 528 u32 *reset = &clkrst->crc_rst_dev[PERIPH_REG(periph_id)]; in reset_set_enable()
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra114/ |
H A D | cpu.c | 47 clrbits_le32(&clkrst->crc_cpu_softrst_ctrl2, 0xFFF); in enable_cpu_power_rail() 48 setbits_le32(&clkrst->crc_cpu_softrst_ctrl2, 408); in enable_cpu_power_rail() 67 writel(CCLK_BURST_POLICY, &clkrst->crc_cclk_brst_pol); in enable_cpu_clocks() 83 reg = readl(&clkrst->crc_rst_cpulp_cmplx_clr); in remove_cpu_resets() 87 reg = readl(&clkrst->crc_rst_cpug_cmplx_clr); in remove_cpu_resets() 91 reg = readl(&clkrst->crc_rst_cpulp_cmplx_clr); in remove_cpu_resets() 93 writel(reg, &clkrst->crc_rst_cpulp_cmplx_clr); in remove_cpu_resets() 96 reg = readl(&clkrst->crc_rst_cpug_cmplx_clr); in remove_cpu_resets() 101 writel(reg, &clkrst->crc_rst_cpug_cmplx_clr); in remove_cpu_resets() 110 struct clk_rst_ctlr *clkrst = in t114_init_clocks() local [all …]
|
H A D | clock.c | 464 struct clk_rst_ctlr *clkrst = in clock_get_osc_freq() local 468 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_freq() 480 struct clk_rst_ctlr *clkrst = in get_periph_source_reg() local 486 return &clkrst->crc_clk_src[PERIPH_ID_CSI+1]; in get_periph_source_reg() 493 return &clkrst->crc_clk_src_vw[internal_id]; in get_periph_source_reg() 495 return &clkrst->crc_clk_src[internal_id]; in get_periph_source_reg() 576 struct clk_rst_ctlr *clkrst = in clock_set_enable() local 584 clk = &clkrst->crc_clk_out_enb[PERIPH_REG(periph_id)]; in clock_set_enable() 597 struct clk_rst_ctlr *clkrst = in reset_set_enable() local 605 reset = &clkrst->crc_rst_dev[PERIPH_REG(periph_id)]; in reset_set_enable() [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/ |
H A D | cpu.c | 63 writel(CCLK_BURST_POLICY, &clkrst->crc_cclk_brst_pol); in enable_cpu_clocks() 64 writel(SUPER_CCLK_DIVIDER, &clkrst->crc_super_cclk_div); in enable_cpu_clocks() 70 writel(reg, &clkrst->crc_clk_cpu_cmplx_clr); in enable_cpu_clocks() 90 writel(reg, &clkrst->crc_rst_cpulp_cmplx_clr); in remove_cpu_resets() 91 writel(reg, &clkrst->crc_rst_cpug_cmplx_clr); in remove_cpu_resets() 96 writel(reg, &clkrst->crc_rst_cpulp_cmplx_clr); in remove_cpu_resets() 104 writel(reg, &clkrst->crc_rst_cpug_cmplx_clr); in remove_cpu_resets() 152 struct clk_rst_ctlr *clkrst = in tegra124_init_clocks() local 162 val = readl(&clkrst->crc_osc_ctrl); in tegra124_init_clocks() 165 writel(val, &clkrst->crc_osc_ctrl); in tegra124_init_clocks() [all …]
|
H A D | clock.c | 606 struct clk_rst_ctlr *clkrst = in clock_get_osc_freq() local 610 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_freq() 622 struct clk_rst_ctlr *clkrst = in get_periph_source_reg() local 722 struct clk_rst_ctlr *clkrst = in clock_set_enable() local 734 clk = &clkrst->crc_clk_out_enb_x; in clock_set_enable() 745 struct clk_rst_ctlr *clkrst = in reset_set_enable() local 757 reset = &clkrst->crc_rst_devices_x; in reset_set_enable() 836 struct clk_rst_ctlr *clkrst = in clock_early_init() local 1139 struct clk_rst_ctlr *clkrst = in clock_set_up_plldp() local 1151 struct clk_rst_ctlr *clkrst = in clock_get_simple_pll() local [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/ |
H A D | cpu.c | 156 struct clk_rst_ctlr *clkrst = (struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE; in pllx_set_iddq() local 161 reg = readl(&clkrst->crc_pllx_misc3); in pllx_set_iddq() 163 writel(reg, &clkrst->crc_pllx_misc3); in pllx_set_iddq() 166 readl(&clkrst->crc_pllx_misc3)); in pllx_set_iddq() 230 struct clk_rst_ctlr *clkrst = (struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE; in init_pllx() local 231 struct clk_pll_simple *pll = &clkrst->crc_pll_simple[SIMPLE_PLLX]; in init_pllx() 260 struct clk_rst_ctlr *clkrst = (struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE; in enable_cpu_clock() local 279 writel(CCLK_BURST_POLICY, &clkrst->crc_cclk_brst_pol); in enable_cpu_clock() 280 writel(SUPER_CCLK_DIVIDER, &clkrst->crc_super_cclk_div); in enable_cpu_clock() 287 clk = readl(&clkrst->crc_clk_cpu_cmplx); in enable_cpu_clock() [all …]
|
H A D | clock.c | 62 struct clk_rst_ctlr *clkrst = in clock_get_osc_bypass() local 66 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_bypass() 73 struct clk_rst_ctlr *clkrst = in get_pll() local 81 return &clkrst->crc_pll[clkid]; in get_pll() 512 struct clk_rst_ctlr *clkrst = in reset_cmplx_set_enable() local 522 writel(mask, &clkrst->crc_cpu_cmplx_set); in reset_cmplx_set_enable() 524 writel(mask, &clkrst->crc_cpu_cmplx_clr); in reset_cmplx_set_enable() 724 struct clk_rst_ctlr *clkrst = in set_avp_clock_source() local 733 writel(val, &clkrst->crc_sclk_brst_pol); in set_avp_clock_source() 793 writel(reg, &clkrst->crc_pll[CLOCK_ID_PERIPH].pll_out[0]); in tegra30_set_up_pllp() [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/ |
H A D | clock.c | 675 struct clk_rst_ctlr *clkrst = in clock_get_osc_freq() local 679 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_freq() 701 struct clk_rst_ctlr *clkrst = in get_periph_source_reg() local 812 struct clk_rst_ctlr *clkrst = in clock_set_enable() local 824 clk = &clkrst->crc_clk_out_enb_x; in clock_set_enable() 826 clk = &clkrst->crc_clk_out_enb_y; in clock_set_enable() 838 struct clk_rst_ctlr *clkrst = in reset_set_enable() local 850 reset = &clkrst->crc_rst_devices_x; in reset_set_enable() 852 reset = &clkrst->crc_rst_devices_y; in reset_set_enable() 971 struct clk_rst_ctlr *clkrst = in clock_early_init() local [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra30/ |
H A D | cpu.c | 86 struct clk_rst_ctlr *clkrst = in t30_init_clocks() local 95 writel(SUPER_SCLK_ENB_MASK, &clkrst->crc_super_sclk_div); in t30_init_clocks() 101 writel(val, &clkrst->crc_clk_sys_rate); in t30_init_clocks()
|
H A D | clock.c | 444 struct clk_rst_ctlr *clkrst = in clock_get_osc_freq() local 448 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_freq() 460 struct clk_rst_ctlr *clkrst = in get_periph_source_reg() local 466 return &clkrst->crc_clk_src[PERIPH_ID_CSI+1]; in get_periph_source_reg() 473 return &clkrst->crc_clk_src_vw[internal_id]; in get_periph_source_reg() 475 return &clkrst->crc_clk_src[internal_id]; in get_periph_source_reg() 556 struct clk_rst_ctlr *clkrst = in clock_set_enable() local 564 clk = &clkrst->crc_clk_out_enb[PERIPH_REG(periph_id)]; in clock_set_enable() 577 struct clk_rst_ctlr *clkrst = in reset_set_enable() local 585 reset = &clkrst->crc_rst_dev[PERIPH_REG(periph_id)]; in reset_set_enable() [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-tegra.c | 352 struct clk_rst_ctlr *clkrst; in init_utmi_usb_controller() local 409 clkrst = (struct clk_rst_ctlr *)NV_PA_CLK_RST_BASE; in init_utmi_usb_controller() 411 val = readl(&clkrst->crc_utmip_pll_cfg2); in init_utmi_usb_controller() 418 writel(val, &clkrst->crc_utmip_pll_cfg2); in init_utmi_usb_controller() 421 val = readl(&clkrst->crc_utmip_pll_cfg1); in init_utmi_usb_controller() 428 writel(val, &clkrst->crc_utmip_pll_cfg1); in init_utmi_usb_controller() 431 clrbits_le32(&clkrst->crc_utmip_pll_cfg1, in init_utmi_usb_controller() 527 clrbits_le32(&clkrst->crc_utmip_pll_cfg2, in init_utmi_usb_controller() 530 clrbits_le32(&clkrst->crc_utmip_pll_cfg2, in init_utmi_usb_controller() 533 clrbits_le32(&clkrst->crc_utmip_pll_cfg2, in init_utmi_usb_controller()
|
/openbmc/linux/drivers/pinctrl/bcm/ |
H A D | pinctrl-bcm6358.c | 205 BCM6358_FUN(clkrst),
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-agl-defs.h | 1729 uint64_t clkrst:1; member 1733 uint64_t clkrst:1;
|
/openbmc/linux/drivers/net/ethernet/cavium/octeon/ |
H A D | octeon_mgmt.c | 1100 agl_prtx_ctl.s.clkrst = 0; in octeon_mgmt_open()
|