| /kernel/linux/linux-6.6/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 79 bool "Cortina Gemini power-off driver" 88 bool "GPIO power-off driver" 104 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_GEMINI_POWEROFF) += gemini-poweroff.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 …]
|
| /kernel/linux/linux-5.10/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" 57 Say Y here if you have a Broadcom Kona-based board and you wish 72 bool "Cortina Gemini power-off driver" 81 bool "GPIO power-off driver" 97 bool "Hisilicon power-off driver" 100 Reboot support for Hisilicon boards. 103 tristate "Buffalo LinkStation 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_AXXIA) += axxia-reset.o 7 obj-$(CONFIG_POWER_RESET_BRCMKONA) += brcm-kona-reset.o 8 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o 9 obj-$(CONFIG_POWER_RESET_GEMINI_POWEROFF) += gemini-poweroff.o 10 obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.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> 28 static int pm8916_reboot_mode_write(struct reboot_mode_driver *reboot, in pm8916_reboot_mode_write() argument 32 (reboot, struct pm8916_pon, reboot_mode); in pm8916_reboot_mode_write() 35 ret = regmap_update_bits(pon->regmap, in pm8916_reboot_mode_write() 36 pon->baseaddr + PON_SOFT_RB_SPARE, in pm8916_reboot_mode_write() 37 GENMASK(7, pon->reason_shift), in pm8916_reboot_mode_write() 38 magic << pon->reason_shift); in pm8916_reboot_mode_write() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/ |
| D | nvmem-reboot-mode.txt | 1 NVMEM reboot mode driver 3 This driver gets reboot mode magic value from reboot-mode driver 4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader 9 - compatible: should be "nvmem-reboot-mode". 10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 11 - nvmem-cell-names: Should be "reboot-mode". 13 The rest of the properties should follow the generic reboot-mode description 14 found in reboot-mode.txt 17 reboot-mode { 18 compatible = "nvmem-reboot-mode"; [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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/kernel/ |
| D | reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/kernel/reboot.c 8 #define pr_fmt(fmt) "reboot: " fmt 15 #include <linux/reboot.h> 22 * this indicates whether you can reboot with ctrl-alt-del: the default is yes 39 * reboot_type is still set to its default value (i.e., reboot= hasn't 41 * suppress DMI scanning for reboot quirks. Without it, it's 42 * impossible to override a faulty reboot quirk without recompiling. 57 * emergency_restart - reboot the system 60 * reboot the system. This is called when we know we are in [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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 41 * reboot_type is still set to its default value (i.e., reboot= hasn't 43 * suppress DMI scanning for reboot quirks. Without it, it's 44 * impossible to override a faulty reboot quirk without recompiling. 55 enum sys_off_mode mode; member 67 * emergency_restart - reboot the system [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-6.6/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()
|