/openbmc/linux/drivers/power/reset/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/reset/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/openbmc-test-automation/redfish/systems/ |
H A D | test_boot_devices.robot | 29 &{redfish_ipmi_target_map} Hdd=Force Boot from default Hard-Drive 31 ... Diags=Force Boot from default Hard-Drive, request Safe-Mode 45 Verify BMC Redfish Boot Source Override with Enabled Mode As Once 46 [Documentation] Verify BMC Redfish Boot Source Override with Enabled Mode As Once. 65 Verify BMC Redfish Boot Source Override with Enabled Mode As Continuous 66 [Documentation] Verify BMC Redfish Boot Source Override with Enabled Mode As Continuous. 85 Verify BMC Redfish Boot Source Override with Enabled Mode As Disabled 86 [Documentation] Verify BMC Redfish Boot Source Override with Enabled Mode As Disabled. 105 Verify Boot Source Override Policy Persistency With Enabled Mode As Once After BMC Reboot 106 …tation] Verify Boot Source Override Policy Persistency with Enabled Mode As Once After BMC Reboot. [all …]
|
/openbmc/qemu/docs/devel/migration/ |
H A D | CPR.rst | 8 cpr-reboot is the only available mode. 18 cpr-reboot mode 19 --------------- 21 In this mode, QEMU stops the VM, and writes VM state to the migration 23 resumes by running QEMU with the ``-incoming`` option. Because the 34 then the user may reboot to a new host kernel before restarting QEMU. 36 This mode supports VFIO devices provided the user first puts the 38 ``guest-suspend-ram`` command to the QEMU guest agent. The agent 39 must be pre-installed in the guest, and the guest must support 48 memory, such as ``memory-backend-file,share=on``, and that the [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/reboot-mode/ |
H A D | reboot-mode_git.bb | 1 SUMMARY = "Reboot the device to a specific mode." 3 LICENSE = "GPL-3.0-or-later" 6 SRC_URI = "git://gitlab.com/postmarketOS/reboot-mode.git;protocol=http;branch=master" 15 ${CC} ${CFLAGS} ${LDFLAGS} ${S}/reboot-mode.c -o ${B}/reboot-mode 19 install -D -m 0755 ${B}/reboot-mode ${D}${bindir}/reboot-mode
|
/openbmc/linux/Documentation/ABI/testing/ |
H A 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 …]
|
/openbmc/linux/kernel/ |
H A 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 …]
|
/openbmc/linux/tools/power/pm-graph/ |
H A 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 …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A 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()
|
H A 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 * 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()
|
H A 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
|
H A 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
|
/openbmc/phosphor-power/tools/power-utils/ |
H A D | aei_updater.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 27 #include <phosphor-logging/lg2.hpp> 41 constexpr int REBOOT_DELAY = 8000; // Delay for reboot (8s) 62 constexpr uint8_t CMD_BOOT_ISP = 0x02; // Boot the In-System Programming System. 67 constexpr uint8_t B_ISP_MODE = 0x40; // ISP mode 68 constexpr uint8_t B_ISP_MODE_CHKSUM_GOOD = 0x41; // ISP mode & good checksum. 69 constexpr uint8_t SUCCESSFUL_ISP_REBOOT_STATUS = 0x0; // Successful ISP reboot 106 if (retryProcessTwo == (MAX_RETRIES - 1)) in doUpdate() 115 // Set ISP mode in doUpdate() 118 // Write ISP Mode failed MAX_RETRIES times in doUpdate() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/u-boot/board/lg/sniper/ |
H A D | sniper.c | 1 // SPDX-License-Identifier: GPL-2.0+ 54 .mode = MUSB_PERIPHERAL, 69 timings->mcfg = HYNIX_V_MCFG_200(256 << 20); in get_board_mem_timings() 70 timings->ctrla = HYNIX_V_ACTIMA_200; in get_board_mem_timings() 71 timings->ctrlb = HYNIX_V_ACTIMB_200; in get_board_mem_timings() 72 timings->rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_200MHz; in get_board_mem_timings() 73 timings->mr = MICRON_V_MR_165; in get_board_mem_timings() 83 gd->bd->bi_arch_number = 3000; in board_init() 86 gd->bd->bi_boot_params = OMAP34XX_SDRC_CS0 + 0x100; in board_init() 111 /* Reboot mode */ in misc_init_r() [all …]
|
/openbmc/u-boot/include/configs/ |
H A D | sniper.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 47 #define CONFIG_SYS_INIT_SP_ADDR (NON_SECURE_SRAM_END - \ 68 #define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - \ 77 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" 87 #define CONFIG_SYS_NS16550_REG_SIZE (-4) 116 "fdtfile=omap3-sniper.dtb\0" \ 138 "if test reboot-${reboot-mode} = reboot-r; then " \ 140 "if test reboot-${reboot-mode} = reboot-b; then " \
|
H A D | kc1.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 45 #define CONFIG_SYS_INIT_SP_ADDR (NON_SECURE_SRAM_END - \ 74 #define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - \ 92 #define CONFIG_SYS_NS16550_REG_SIZE (-4) 123 "fdtfile=omap4-kc1.dtb\0" \ 145 "if test reboot-${reboot-mode} = reboot-r; then " \ 147 "if test reboot-${reboot-mode} = reboot-b; then " \
|