Home
last modified time | relevance | path

Searched +full:reboot +full:- +full:mode (Results 1 – 25 of 557) sorted by relevance

12345678910>>...23

/Linux-v6.1/drivers/power/reset/
Dreboot-mode.c1 // 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 …]
Dnvmem-reboot-mode.c1 // 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 …]
Dsyscon-reboot-mode.c1 // 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 …]
DKconfig1 # 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 …]
DMakefile1 # 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 …]
Dqcom-pon.c1 // 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 …]
Dxgene-reboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * AppliedMicro X-Gene SoC Reboot Driver
9 * This driver provides system reboot functionality for APM X-Gene SoC.
11 * implements GPIO shutdown, use the gpio-poweroff.c driver.
19 #include <linux/reboot.h>
31 unsigned long mode, void *cmd) in xgene_restart_handler() argument
37 /* Issue the reboot */ in xgene_restart_handler()
38 writel(ctx->mask, ctx->csr); in xgene_restart_handler()
42 dev_emerg(ctx->dev, "Unable to restart system\n"); in xgene_restart_handler()
50 struct device *dev = &pdev->dev; in xgene_reboot_probe()
[all …]
Dhisi-reboot.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/reboot.h>
19 #include <asm/proc-fns.h>
25 unsigned long mode, void *cmd) in hisi_restart_handler() argument
42 struct device_node *np = pdev->dev.of_node; in hisi_reboot_probe()
48 return -ENODEV; in hisi_reboot_probe()
51 if (of_property_read_u32(np, "reboot-offset", &reboot_offset) < 0) { in hisi_reboot_probe()
52 pr_err("failed to find reboot-offset property\n"); in hisi_reboot_probe()
54 return -EINVAL; in hisi_reboot_probe()
59 dev_err(&pdev->dev, "cannot register restart handler (err=%d)\n", in hisi_reboot_probe()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/power/reset/
Dnvmem-reboot-mode.txt1 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 …]
Dsyscon-reboot-mode.yaml1 # 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 …]
Dreboot-mode.yaml1 # 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 …]
Dsyscon-reboot.yaml1 # 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-v6.1/Documentation/ABI/testing/
Dsysfs-kernel-reboot1 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 …]
Dsysfs-driver-toshiba_acpi5 Description: This file controls the keyboard backlight operation mode, valid
8 * 0x1 -> FN-Z
9 * 0x2 -> AUTO (also called TIMER)
10 * 0x8 -> ON
11 * 0x10 -> OFF
14 parameters, kernel 3.15 only accepts the first two (FN-Z and
17 a reboot for changes to take effect.
25 whenever the operation mode is set to AUTO (or TIMER),
26 valid values range from 0-60.
29 type and the range accepted for type 2 is 1-60.
[all …]
/Linux-v6.1/kernel/
Dreboot.c1 // 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 …]
/Linux-v6.1/tools/power/pm-graph/
Dbootgraph.83 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-v6.1/arch/arm/mach-omap2/
Domap4-restart.c1 // 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()
Dam33xx-restart.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * am33xx-restart.c - Code common to all AM33xx machines.
6 #include <linux/reboot.h>
12 * am3xx_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
21 /* TODO: Handle mode and cmd if necessary */ in am33xx_restart()
Dti81xx-restart.c1 // 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
Domap2-restart.c1 // 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 …]
Domap3-restart.c1 // 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-v6.1/Documentation/devicetree/bindings/soc/samsung/
Dexynos-pmu.yaml1 # 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 - samsung,exynos3250-pmu
19 - samsung,exynos4210-pmu
20 - samsung,exynos4412-pmu
21 - samsung,exynos5250-pmu
22 - samsung,exynos5260-pmu
[all …]
/Linux-v6.1/Documentation/power/
Dbasic-pm-debugging.rst10 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 …]
/Linux-v6.1/arch/x86/kernel/
Dreboot.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/reboot.h>
15 #include <acpi/reboot.h>
23 #include <asm/reboot.h>
53 * Reboot options and system auto-detection code provided by
54 * Dell Inc. so their systems "just work". :-)
58 * Some machines require the "reboot=a" commandline options
64 pr_info("%s series board detected. Selecting %s-method for reboots.\n", in set_acpi_reboot()
65 d->ident, "ACPI"); in set_acpi_reboot()
71 * Some machines require the "reboot=b" or "reboot=k" commandline options,
[all …]
/Linux-v6.1/drivers/cpufreq/
Ds3c2416-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/reboot.h>
47 /* pseudo-frequency for dvs mode */
50 /* frequency to sleep and reboot in
52 * regulator on reboot
61 /* S3C2416 only supports changing the voltage in the dvs-mode.
94 /* return our pseudo-frequency when in dvs mode */ in s3c2416_cpufreq_get_speed()
95 if (s3c_freq->is_dvs) in s3c2416_cpufreq_get_speed()
98 return clk_get_rate(s3c_freq->armclk) / 1000; in s3c2416_cpufreq_get_speed()
106 if (clk_get_rate(s3c_freq->armdiv) / 1000 != freq) { in s3c2416_cpufreq_set_armdiv()
[all …]

12345678910>>...23