/linux-6.15/drivers/power/reset/ |
D | reboot-mode.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/reboot.h> 12 #include <linux/reboot-mode.h> 14 #define PREFIX "mode-" 17 const char *mode; member 22 static unsigned int get_reboot_mode_magic(struct reboot_mode_driver *reboot, in get_reboot_mode_magic() argument 32 list_for_each_entry(info, &reboot->head, list) { in get_reboot_mode_magic() 33 if (!strcmp(info->mode, cmd)) { in get_reboot_mode_magic() 34 magic = info->magic; in get_reboot_mode_magic() 43 unsigned long mode, void *cmd) in reboot_mode_notify() argument [all …]
|
D | nvmem-reboot-mode.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <linux/nvmem-consumer.h> 12 #include <linux/reboot-mode.h> 15 struct reboot_mode_driver reboot; member 19 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument 25 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write() 27 ret = nvmem_cell_write(nvmem_rbm->cell, &magic, sizeof(magic)); in nvmem_reboot_mode_write() 29 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write() 39 nvmem_rbm = devm_kzalloc(&pdev->dev, sizeof(*nvmem_rbm), GFP_KERNEL); in nvmem_reboot_mode_probe() 41 return -ENOMEM; in nvmem_reboot_mode_probe() [all …]
|
D | syscon-reboot-mode.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/reboot.h> 14 #include <linux/reboot-mode.h> 18 struct reboot_mode_driver reboot; member 23 static int syscon_reboot_mode_write(struct reboot_mode_driver *reboot, in syscon_reboot_mode_write() argument 29 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write() 31 ret = regmap_update_bits(syscon_rbm->map, syscon_rbm->offset, in syscon_reboot_mode_write() 32 syscon_rbm->mask, magic); in syscon_reboot_mode_write() 34 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write() 44 syscon_rbm = devm_kzalloc(&pdev->dev, sizeof(*syscon_rbm), GFP_KERNEL); in syscon_reboot_mode_probe() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 bool "ams AS3722 power-off driver" 16 This driver supports turning off board via a ams AS3722 power-off. 35 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver" 43 tristate "Actions Semi ATC260x PMIC power-off driver" 46 This driver provides power-off and restart support for a system 64 Say Y here if you have a Broadcom Kona-based board and you wish 90 bool "Cortina Gemini power-off driver" 99 bool "GPIO power-off driver" 115 bool "Hisilicon power-off driver" [all …]
|
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o 3 obj-$(CONFIG_POWER_RESET_AT91_POWEROFF) += at91-poweroff.o 4 obj-$(CONFIG_POWER_RESET_AT91_RESET) += at91-reset.o 5 obj-$(CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC) += at91-sama5d2_shdwc.o 6 obj-$(CONFIG_POWER_RESET_ATC260X) += atc260x-poweroff.o 7 obj-$(CONFIG_POWER_RESET_AXXIA) += axxia-reset.o 8 obj-$(CONFIG_POWER_RESET_BRCMKONA) += brcm-kona-reset.o 9 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o 10 obj-$(CONFIG_POWER_RESET_EP93XX) += ep93xx-restart.o [all …]
|
D | qcom-pon.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-18 Linaro Limited 11 #include <linux/reboot.h> 12 #include <linux/reboot-mode.h> 30 static int pm8916_reboot_mode_write(struct reboot_mode_driver *reboot, in pm8916_reboot_mode_write() argument 34 (reboot, struct pm8916_pon, reboot_mode); in pm8916_reboot_mode_write() 37 ret = regmap_update_bits(pon->regmap, in pm8916_reboot_mode_write() 38 pon->baseaddr + PON_SOFT_RB_SPARE, in pm8916_reboot_mode_write() 39 GENMASK(7, pon->reason_shift), in pm8916_reboot_mode_write() 40 magic << pon->reason_shift); in pm8916_reboot_mode_write() [all …]
|
/linux-6.15/Documentation/devicetree/bindings/power/reset/ |
D | nvmem-reboot-mode.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic NVMEM reboot mode 10 - Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 13 This driver gets the reboot mode magic value from the reboot-mode driver 14 and stores it in the NVMEM cell named "reboot-mode". The bootloader can 19 const: nvmem-reboot-mode 21 nvmem-cells: [all …]
|
D | syscon-reboot-mode.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic SYSCON reboot mode driver 10 - Sebastian Reichel <sre@kernel.org> 13 This driver gets reboot mode magic value from reboot-mode driver 17 parental dt-node plus the offset. So the SYSCON reboot-mode node 18 should be represented as a sub-node of a "syscon", "simple-mfd" node. 22 const: syscon-reboot-mode [all …]
|
D | reboot-mode.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic reboot mode core map 10 - Andy Yan <andy.yan@rock-chips.com> 13 This driver get reboot mode arguments and call the write 18 All mode properties are vendor specific, it is a indication to tell 20 as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value). 23 - normal: Normal reboot mode, system reboot with command "reboot". [all …]
|
D | syscon-reboot.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 16 mask defined in the reboot node. Default will be little endian mode, 32 bit 18 parental dt-node. So the SYSCON reboot node should be represented as a 19 sub-node of a "syscon", "simple-mfd" node. Though the regmap property 24 const: syscon-reboot 32 description: Offset in the register map for the reboot register (in bytes). [all …]
|
/linux-6.15/kernel/ |
D | reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/kernel/reboot.c 8 #define pr_fmt(fmt) "reboot: " fmt 16 #include <linux/reboot.h> 23 * this indicates whether you can reboot with ctrl-alt-del: the default is yes 43 * reboot_type is still set to its default value (i.e., reboot= hasn't 45 * suppress DMI scanning for reboot quirks. Without it, it's 46 * impossible to override a faulty reboot quirk without recompiling. 57 enum sys_off_mode mode; member 65 * reboot when the reboot call was invoked with LINUX_REBOOT_CMD_POWER_OFF, but [all …]
|
/linux-6.15/Documentation/ABI/testing/ |
D | sysfs-kernel-reboot | 1 What: /sys/kernel/reboot 5 Description: Interface to set the kernel reboot behavior, similarly to 6 what can be done via the reboot= cmdline option. 7 (see Documentation/admin-guide/kernel-parameters.txt) 9 What: /sys/kernel/reboot/mode 13 Description: Reboot mode. Valid values are: cold warm hard soft gpio 15 What: /sys/kernel/reboot/type 19 Description: Reboot type. Valid values are: bios acpi kbd triple efi pci 21 What: /sys/kernel/reboot/cpu 25 Description: CPU number to use to reboot. [all …]
|
D | sysfs-class-chromeos | 1 What: /sys/class/chromeos/<ec-device-name>/flashinfo 7 What: /sys/class/chromeos/<ec-device-name>/kb_wake_angle 15 What: /sys/class/chromeos/<ec-device-name>/reboot 19 Tell the EC to reboot in various ways. Options are: 21 - "cancel": Cancel a pending reboot. 22 - "ro": Jump to RO without rebooting. 23 - "rw": Jump to RW without rebooting. 24 - "cold": Cold reboot. 25 - "disable-jump": Disable jump until next reboot. 26 - "hibernate": Hibernate the EC. [all …]
|
/linux-6.15/tools/power/pm-graph/ |
D | bootgraph.8 | 3 bootgraph \- Kernel boot timing analysis 13 timeline is split into two phases: kernel mode & user mode. kernel mode 15 Once user mode begins, the init process is called, and the init calls 24 Generates output files in subdirectory: boot-yymmdd-HHMMSS 30 \fB-h\fR 33 \fB-v\fR 36 \fB-addlogs\fR 40 \fB-result \fIfile\fR 43 \fB-o \fIname\fR 47 e.g. boot-{hostname}-{date}-{time} [all …]
|
/linux-6.15/arch/arm/mach-omap2/ |
D | omap4-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap4-restart.c - Common to OMAP4 and OMAP5 7 #include <linux/reboot.h> 12 * omap44xx_restart - trigger a software restart of the SoC 13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 16 * Resets the SoC. For @cmd, see the 'reboot' syscall in 19 void omap44xx_restart(enum reboot_mode mode, const char *cmd) in omap44xx_restart() argument 21 /* XXX Should save 'cmd' into scratchpad for use after reboot */ in omap44xx_restart()
|
D | am33xx-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * am33xx-restart.c - Code common to all AM33xx machines. 6 #include <linux/reboot.h> 12 * am33xx_restart - trigger a software restart of the SoC 13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 16 * Resets the SoC. For @cmd, see the 'reboot' syscall in 19 void am33xx_restart(enum reboot_mode mode, const char *cmd) in am33xx_restart() argument 22 prm_reboot_mode = mode; in am33xx_restart()
|
D | ti81xx-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 #include <linux/reboot.h> 15 * ti81xx_restart - trigger a software restart of the SoC 16 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 19 * Resets the SoC. For @cmd, see the 'reboot' syscall in 23 * clocks to bypass mode. 25 void ti81xx_restart(enum reboot_mode mode, const char *cmd) in ti81xx_restart() argument
|
D | omap2-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap2-restart.c - code common to all OMAP2xxx machines. 23 /* Reboot handling */ 26 * omap2xxx_restart - Set DPLL to bypass mode for reboot to work 28 * Set the DPLL to bypass so that reboot completes successfully. No 31 void omap2xxx_restart(enum reboot_mode mode, const char *cmd) in omap2xxx_restart() argument 38 /* XXX Should save the cmd argument for use after the reboot */ in omap2xxx_restart() 44 * omap2xxx_common_look_up_clks_for_reset - look up clocks needed for restart 47 * operation to work - see omap2xxx_restart(). Returns -EINVAL upon 54 return -EINVAL; in omap2xxx_common_look_up_clks_for_reset() [all …]
|
D | omap3-restart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap3-restart.c - Code common to all OMAP3xxx machines. 12 #include <linux/reboot.h> 21 * omap3xxx_restart - trigger a software restart of the SoC 22 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 25 * Resets the SoC. For @cmd, see the 'reboot' syscall in 28 void omap3xxx_restart(enum reboot_mode mode, const char *cmd) in omap3xxx_restart() argument
|
/linux-6.15/arch/arm64/boot/dts/qcom/ |
D | pmk8550.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 12 reboot-mode { 13 compatible = "nvmem-reboot-mode"; 14 nvmem-cells = <&reboot_reason>; 15 nvmem-cell-names = "reboot-mode"; 16 mode-recovery = <0x01>; [all …]
|
D | pmk8350.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 17 reboot-mode { 18 compatible = "nvmem-reboot-mode"; 19 nvmem-cells = <&reboot_reason>; 20 nvmem-cell-names = "reboot-mode"; 21 mode-recovery = <0x01>; [all …]
|
D | sa8775p-pmics.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/spmi/spmi.h> 10 thermal-zones { 11 pmm8654au_0_thermal: pm8775-0-thermal { 12 polling-delay-passive = <100>; 14 thermal-sensors = <&pmm8654au_0_temp_alarm>; 31 pmm8654au_1_thermal: pm8775-1-thermal { 32 polling-delay-passive = <100>; 34 thermal-sensors = <&pmm8654au_1_temp_alarm>; [all …]
|
/linux-6.15/include/linux/ |
D | reboot.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #include <uapi/linux/reboot.h> 18 REBOOT_UNDEFINED = -1, 54 * Architecture-specific implementations of sys_reboot commands. 69 * sys-off handler API. 73 * Standard sys-off priority levels. Users are expected to set priorities 76 * SYS_OFF_PRIO_PLATFORM: Use this for platform-level handlers. 86 #define SYS_OFF_PRIO_PLATFORM -256 87 #define SYS_OFF_PRIO_LOW -128 104 * Handlers power-off system. Handlers are disallowed to sleep. [all …]
|
/linux-6.15/Documentation/devicetree/bindings/soc/samsung/ |
D | exynos-pmu.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/soc/samsung/exynos-pmu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 18 - google,gs101-pmu 19 - samsung,exynos3250-pmu 20 - samsung,exynos4210-pmu 21 - samsung,exynos4212-pmu 22 - samsung,exynos4412-pmu [all …]
|
/linux-6.15/Documentation/power/ |
D | basic-pm-debugging.rst | 10 To check if hibernation works, you can try to hibernate in the "reboot" mode:: 12 # echo reboot > /sys/power/disk 15 and the system should create a hibernation image, reboot, resume and get back to 20 resuming the system.] Moreover, hibernating in the "reboot" and "shutdown" 21 modes causes the PM core to skip some platform-related callbacks which on ACPI 23 fails to hibernate or resume in the "reboot" mode, you should try the 24 "platform" mode:: 29 which is the default and recommended mode of hibernation. 31 Unfortunately, the "platform" mode of hibernation does not work on some systems 32 with broken BIOSes. In such cases the "shutdown" mode of hibernation might [all …]
|