Lines Matching +full:sustainable +full:- +full:power

1 // SPDX-License-Identifier:     GPL-2.0+
134 * use GPIO0_A4 to indicate power supply voltage for VCCIO3 by hardware,
135 * then we can switch to io_vsel3 after system power on, and release GPIO0_A4
161 rk_clrsetreg(&grf->soc_con0, IOVSEL3_CTRL_MASK | IOVSEL3_MASK, val); in rk_board_init()
204 rk_clrreg(&sgrf->con_secure0, 0x2b83); in arch_cpu_init()
213 * but some boards may give a 3.3V power supply for VCCIO4, this may in arch_cpu_init()
217 rk_clrsetreg(&grf->soc_con0, IOVSEL4_MASK, VCCIO4_3V3 << IOVSEL4_SHIFT); in arch_cpu_init()
222 glb_rst_st = readl(&cru->glb_rst_st); in arch_cpu_init()
223 writel(FST_GLB_WDT_RST | SND_GLB_WDT_RST, &cru->glb_rst_st); in arch_cpu_init()
230 &cru->glb_rst_con); in arch_cpu_init()
281 rk_clrsetreg(&grf->soc_con15, mask, value); in rk_board_init_f()
296 rk_clrsetreg(&cru->clksel_con[16], in board_debug_uart_init()
303 rk_clrsetreg(&grf->soc_con5, UART2_IO_SEL_MASK, in board_debug_uart_init()
305 rk_clrsetreg(&grf->gpio1ch_iomux, GPIO1C7_MASK | GPIO1C6_MASK, in board_debug_uart_init()
311 rk_clrsetreg(&grf->soc_con5, UART2_IO_SEL_MASK, in board_debug_uart_init()
314 rk_clrsetreg(&grf->gpio4d_iomux, in board_debug_uart_init()
324 rk_clrsetreg(&cru->clksel_con[22], in board_debug_uart_init()
329 rk_clrsetreg(&grf->gpio4b_iomux, in board_debug_uart_init()
335 rk_clrsetreg(&cru->clksel_con[10], in board_debug_uart_init()
340 rk_clrsetreg(&grf->gpio2a_iomux, in board_debug_uart_init()
346 rk_clrsetreg(&cru->clksel_con[13], in board_debug_uart_init()
351 rk_clrsetreg(&grf->gpio1d_iomux, in board_debug_uart_init()
357 rk_clrsetreg(&cru->clksel_con[19], in board_debug_uart_init()
362 rk_clrsetreg(&grf->gpio3b_iomux, in board_debug_uart_init()
380 return -EINVAL; in fdt_fixup_cpu_idle()
384 pp = (u32 *)fdt_getprop(blob, sub_node, "cpu-idle-states", in fdt_fixup_cpu_idle()
388 if (fdt_delprop((void *)blob, sub_node, "cpu-idle-states") < 0) in fdt_fixup_cpu_idle()
389 printf("Failed to del cpu-idle-states prop\n"); in fdt_fixup_cpu_idle()
403 opp_node = fdt_path_offset(blob, "/rk3308bs-cpu0-opp-table"); in fdt_fixup_cpu_opp_table()
405 printf("Failed to get rk3308bs-cpu0-opp-table node\n"); in fdt_fixup_cpu_opp_table()
406 return -EINVAL; in fdt_fixup_cpu_opp_table()
412 return -EINVAL; in fdt_fixup_cpu_opp_table()
418 return -EINVAL; in fdt_fixup_cpu_opp_table()
422 pp = (u32 *)fdt_getprop(blob, sub_node, "operating-points-v2", in fdt_fixup_cpu_opp_table()
439 opp_node = fdt_path_offset(blob, "/rk3308bs-dmc-opp-table"); in fdt_fixup_dmc_opp_table()
441 printf("Failed to get rk3308bs-dmc-opp-table node\n"); in fdt_fixup_dmc_opp_table()
442 return -EINVAL; in fdt_fixup_dmc_opp_table()
448 return -EINVAL; in fdt_fixup_dmc_opp_table()
454 return -EINVAL; in fdt_fixup_dmc_opp_table()
457 pp = (u32 *)fdt_getprop(blob, dmc_node, "operating-points-v2", &len); in fdt_fixup_dmc_opp_table()
470 dss = (u32 *)fdt_getprop(blob, noffset, "drive-strength-s", NULL); in fixup_pcfg_drive_strength()
475 ds = (u32 *)fdt_getprop(blob, noffset, "drive-strength", NULL); in fixup_pcfg_drive_strength()
480 "drive-strength", &val, 4) < 0) in fixup_pcfg_drive_strength()
481 printf("Failed to add drive-strength prop\n"); in fixup_pcfg_drive_strength()
517 thermal_node = fdt_path_offset(blob, "/thermal-zones/soc-thermal"); in fdt_fixup_thermal_zones()
520 return -EINVAL; in fdt_fixup_thermal_zones()
524 "rk3308bs-sustainable-power", &len); in fdt_fixup_thermal_zones()
528 "sustainable-power", &len); in fdt_fixup_thermal_zones()