Home
last modified time | relevance | path

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

12345678910>>...41

/kernel/linux/linux-5.10/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"
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 …]
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_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 …]
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 …]
/kernel/linux/linux-4.19/drivers/power/reset/
Dreboot-mode.c15 #include <linux/reboot.h>
16 #include <linux/reboot-mode.h>
18 #define PREFIX "mode-"
21 const char *mode; member
26 static unsigned int get_reboot_mode_magic(struct reboot_mode_driver *reboot, in get_reboot_mode_magic() argument
36 list_for_each_entry(info, &reboot->head, list) { in get_reboot_mode_magic()
37 if (!strcmp(info->mode, cmd)) { in get_reboot_mode_magic()
38 magic = info->magic; in get_reboot_mode_magic()
47 unsigned long mode, void *cmd) in reboot_mode_notify() argument
49 struct reboot_mode_driver *reboot; in reboot_mode_notify() local
[all …]
Dsyscon-reboot-mode.c15 #include <linux/reboot.h>
18 #include <linux/reboot-mode.h>
22 struct reboot_mode_driver reboot; member
27 static int syscon_reboot_mode_write(struct reboot_mode_driver *reboot, in syscon_reboot_mode_write() argument
33 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write()
35 ret = regmap_update_bits(syscon_rbm->map, syscon_rbm->offset, in syscon_reboot_mode_write()
36 syscon_rbm->mask, magic); in syscon_reboot_mode_write()
38 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write()
48 syscon_rbm = devm_kzalloc(&pdev->dev, sizeof(*syscon_rbm), GFP_KERNEL); in syscon_reboot_mode_probe()
50 return -ENOMEM; in syscon_reboot_mode_probe()
[all …]
DKconfig12 bool "ams AS3722 power-off driver"
15 This driver supports turning off board via a ams AS3722 power-off.
34 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
56 Say Y here if you have a Broadcom Kona-based board and you wish
71 bool "Cortina Gemini power-off driver"
80 bool "GPIO power-off driver"
96 bool "Hisilicon power-off driver"
99 Reboot support for Hisilicon boards.
102 bool "Qualcomm MSM power-off driver"
108 tristate "Qualcomm power-on 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_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 …]
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>
24 static int pm8916_reboot_mode_write(struct reboot_mode_driver *reboot, in pm8916_reboot_mode_write() argument
28 (reboot, struct pm8916_pon, reboot_mode); in pm8916_reboot_mode_write()
31 ret = regmap_update_bits(pon->regmap, in pm8916_reboot_mode_write()
32 pon->baseaddr + PON_SOFT_RB_SPARE, in pm8916_reboot_mode_write()
35 dev_err(pon->dev, "update reboot mode bits failed\n"); in pm8916_reboot_mode_write()
45 pon = devm_kzalloc(&pdev->dev, sizeof(*pon), GFP_KERNEL); in pm8916_pon_probe()
[all …]
/kernel/linux/linux-5.10/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 …]
Dqcom,pon.txt4 and resin along with the Android reboot-mode.
9 -compatible: Must be one of:
10 "qcom,pm8916-pon"
11 "qcom,pms405-pon"
12 "qcom,pm8998-pon"
14 -reg: Specifies the physical address of the pon register
17 -pwrkey: Specifies the subnode pwrkey and should follow the
18 qcom,pm8941-pwrkey.txt description.
19 -resin: Specifies the subnode resin and should follow the
20 qcom,pm8xxx-pwrkey.txt description.
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/power/reset/
Dsyscon-reboot-mode.txt1 SYSCON reboot mode driver
3 This driver gets reboot mode magic value form reboot-mode driver
8 This DT node should be represented as a sub-node of a "syscon", "simple-mfd"
12 - compatible: should be "syscon-reboot-mode"
13 - offset: offset in the register map for the storage register (in bytes)
16 - mask: bits mask of the bits in the register to store the reboot mode magic value,
19 The rest of the properties should follow the generic reboot-mode description
20 found in reboot-mode.txt
24 compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd";
27 reboot-mode {
[all …]
Dreboot-mode.txt1 Generic reboot mode core map driver
3 This driver get reboot mode arguments and call the write
8 All mode properties are vendor specific, it is a indication to tell
10 as mode-xxx = <magic> (xxx is mode name, magic should be a none-zero value).
13 - mode-normal: Normal reboot mode, system reboot with command "reboot".
14 - mode-recovery: Android Recovery mode, it is a mode to format the device or update a new image.
15 - mode-bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based d…
16 - mode-loader: A bootloader mode, it's a mode used to download image on Rockchip platform,
20 reboot-mode {
21 mode-normal = <BOOT_NORMAL>;
[all …]
Dqcom,pon.txt4 and resin along with the Android reboot-mode.
9 -compatible: "qcom,pm8916-pon"
10 -reg: Specifies the physical address of the pon register
13 -pwrkey: Specifies the subnode pwrkey and should follow the
14 qcom,pm8941-pwrkey.txt description.
15 -resin: Specifies the subnode resin and should follow the
16 qcom,pm8xxx-pwrkey.txt description.
18 The rest of the properties should follow the generic reboot-mode description
19 found in reboot-mode.txt
24 compatible = "qcom,pm8916-pon";
[all …]
/kernel/linux/linux-5.10/kernel/
Dreboot.c1 // 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-4.19/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-4.19/arch/arm/mach-omap2/
Domap4-restart.c2 * omap4-restart.c - Common to OMAP4 and OMAP5
11 #include <linux/reboot.h>
16 * omap44xx_restart - trigger a software restart of the SoC
17 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
20 * Resets the SoC. For @cmd, see the 'reboot' syscall in
23 void omap44xx_restart(enum reboot_mode mode, const char *cmd) in omap44xx_restart() argument
25 /* XXX Should save 'cmd' into scratchpad for use after reboot */ in omap44xx_restart()
Dam33xx-restart.c2 * am33xx-restart.c - Code common to all AM33xx machines.
9 #include <linux/reboot.h>
15 * am3xx_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
22 void am33xx_restart(enum reboot_mode mode, const char *cmd) in am33xx_restart() argument
24 /* TODO: Handle mode and cmd if necessary */ in am33xx_restart()

12345678910>>...41