/linux/drivers/power/reset/ |
H A D | macsmc-reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Apple SMC Reboot/Poweroff Handler 12 #include <linux/nvmem-consumer.h> 14 #include <linux/reboot.h> 39 struct apple_smc *smc; member 61 return -EINVAL; in nvmem_cell_get_u8() 75 * SMC 'MBSE' key actions: 77 * 'offw' - shutdown warning 78 * 'slpw' - sleep warning 79 * 'rest' - restart warning [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 90 bool "Cortina Gemini power-off driver" 99 bool "GPIO power-off driver" 115 bool "Hisilicon power-off driver" [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | apple,smc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/apple,smc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sven Peter <sven@kernel.org> 14 such as GPIO, RTC, power, reboot. 19 - enum: 20 - apple,t6000-smc 21 - apple,t8103-smc 22 - apple,t8112-smc [all …]
|
/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | apple,smc-reboot.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/apple,smc-reboot.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Apple SMC Reboot Controller 10 The Apple System Management Controller (SMC) provides reboot functionality 15 - Sven Peter <sven@kernel.org> 19 const: apple,smc-reboot 21 nvmem-cells: 23 - description: Flag indicating shutdown (as opposed to reboot) [all …]
|
/linux/drivers/mfd/ |
H A D | macsmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Apple SMC (System Management Controller) MFD driver 48 MFD_CELL_OF("macsmc-gpio", NULL, NULL, 0, 0, "apple,smc-gpio"), 49 MFD_CELL_OF("macsmc-reboot", NULL, NULL, 0, 0, "apple,smc-reboot"), 52 static int apple_smc_cmd_locked(struct apple_smc *smc, u64 cmd, u64 arg, in apple_smc_cmd_locked() argument 59 lockdep_assert_held(&smc->mutex); in apple_smc_cmd_locked() 61 if (smc->boot_stage != APPLE_SMC_INITIALIZED) in apple_smc_cmd_locked() 62 return -EIO; in apple_smc_cmd_locked() 63 if (smc->atomic_mode) in apple_smc_cmd_locked() 64 return -EIO; in apple_smc_cmd_locked() [all …]
|
/linux/include/linux/mfd/ |
H A D | macsmc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 3 * Apple SMC (System Management Controller) core definitions 14 * typedef smc_key - Alias for u32 to be used for SMC keys 16 * SMC keys are 32bit integers containing packed ASCII characters in natural 18 * The SMC driver is designed with this assumption and ensures the right 20 * from the actual SMC firmware (which can be done in either shared memory or 22 * Internally, SMC stores these keys in a table sorted lexicographically and 23 * allows resolving an index into this table to the corresponding SMC key. 26 * by SMC firmware. 28 * This simple type alias is introduced to allow easy recognition of SMC key [all …]
|
/linux/drivers/soc/samsung/ |
H A D | exynos-pmu.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (c) 2011-2014 Samsung Electronics Co., Ltd. 6 // Exynos - CPU PMU(Power Management Unit) support 9 #include <linux/arm-smccc.h> 20 #include <linux/soc/samsung/exynos-regs-pmu.h> 21 #include <linux/soc/samsung/exynos-pmu.h> 23 #include "exynos-pmu.h" 51 * Note: This SMC interface is known to be implemented on gs101 and derivative 65 /* returns -EINVAL if access isn't allowed or 0 */ in tensor_sec_reg_write() 67 pr_warn("%s(): SMC failed: %d\n", __func__, (int)res.a0); in tensor_sec_reg_write() [all …]
|
/linux/include/linux/firmware/intel/ |
H A D | stratix10-smc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2017-2018, Intel Corporation 9 #include <linux/arm-smccc.h> 13 * This file defines the Secure Monitor Call (SMC) message protocol used for 19 * An ARM SMC instruction takes a function identifier and up to 6 64-bit 20 * register values as arguments, and can return up to 4 64-bit register 27 * Functions specified by ARM SMC Calling convention: 31 * STD call starts a operation which can be preempted by a non-secure 88 * a2-7: not used. 92 * a1-3: not used. [all …]
|
H A D | stratix10-svc-client.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2017-2018, Intel Corporation 77 * enum stratix10_svc_command_code - supported service commands 79 * @COMMAND_NOOP: do 'dummy' request for integration/debug/trouble-shooting 84 * @COMMAND_RECONFIG_DATA_SUBMIT: submit buffer(s) of bit-stream data for the 96 * @COMMAND_RSU_UPDATE: set the offset of the bitstream to boot after reboot, 118 * @COMMAND_SMC_SVC_VERSION: Non-mailbox SMC SVC API Version, 172 /* Non-mailbox SMC Call */ 177 * struct stratix10_svc_client_msg - message sent by client to service 195 * struct stratix10_svc_command_config_type - config type [all …]
|
/linux/drivers/platform/x86/lenovo/ |
H A D | think-lmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright(C) 2019-2021 Lenovo 7 * Original code from Thinkpad-wmi project https://github.com/iksaif/thinkpad-wmi 9 * Distributed under the GPL-2.0 license 24 #include "think-lmi.h" 37 #define LENOVO_BIOS_SETTING_GUID "51F5230E-9677-46CD-A1CF-C0B23EE34DB7" 44 * After making changes to the BIOS settings, you must reboot the computer 50 #define LENOVO_SET_BIOS_SETTINGS_GUID "98479A64-33F5-4E33-A707-8E251EBBC3A1" 59 #define LENOVO_SAVE_BIOS_SETTINGS_GUID "6A4B54EF-A5ED-4D33-9455-B0D9B48DF4B3" 68 #define LENOVO_BIOS_PASSWORD_SETTINGS_GUID "8ADB159E-1E32-455C-BC93-308A7ED98246" [all …]
|
/linux/drivers/net/ethernet/8390/ |
H A D | smc-ultra.c | 1 // SPDX-License-Identifier: GPL-1.0+ 2 /* smc-ultra.c: A SMC Ultra ethernet driver for linux. */ 4 This is a driver for the SMC Ultra and SMC EtherEZ ISA ethercards. 6 Written 1993-1998 by Donald Becker. 16 This driver uses the cards in the 8390-compatible mode. 17 Most of the run-time complexity is handled by the generic code in 24 ultra_open() The card-specific details of starting, stopping 37 This driver now supports the programmed-I/O (PIO) data transfer mode of 38 the EtherEZ. It does not use the non-8390-compatible "Altego" mode. 39 That support (if available) is in smc-ez.c. [all …]
|
H A D | wd.c | 1 // SPDX-License-Identifier: GPL-1.0+ 4 Written 1993-94 by Donald Becker. 21 for non-standard memory sizes. 46 /* A zero-terminated list of I/O addresses to be probed. */ 71 #define WD_CMDREG5 5 /* Offset to 16-bit-only ASIC register 5. */ 90 int base_addr = dev->base_addr; in do_wd_probe() 91 int irq = dev->irq; in do_wd_probe() 92 int mem_start = dev->mem_start; in do_wd_probe() 93 int mem_end = dev->mem_end; in do_wd_probe() 96 r = request_region(base_addr, WD_IO_EXTENT, "wd-probe"); in do_wd_probe() [all …]
|
/linux/Documentation/networking/ |
H A D | arcnet.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 See also arcnet-hardware.txt in this directory for jumper-setting 25 ARCnet 0.32 ALPHA first made it into the Linux kernel 1.1.80 - this was 36 If you don't e-mail me about your success/failure soon, I may be forced to 40 If you think so, why not flame me in a quick little e-mail? Please also 44 My e-mail address is: apenwarr@worldvisions.ca 55 The previous release resulted from many months of on-and-off effort from me 58 ARCnet 2.10 ALPHA, Tomasz's all-new-and-improved RFC1051 support has been 63 --------------------------------- 66 Subscribe by sending a message with the BODY "subscribe linux-arcnet YOUR [all …]
|
/linux/drivers/tee/optee/ |
H A D | smc_abi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2015-2021, 2023 Linaro Limited 9 #include <linux/arm-smccc.h> 38 * This file implement the SMC ABI used when communicating with secure world 39 * OP-TEE OS via raw SMCs. 50 * A typical OP-TEE private shm allocation is 224 bytes (argument struct 59 /* SMC ABI considers at most a single TEE firmware */ 90 p->attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT + in from_msg_param_tmp_mem() 91 attr - OPTEE_MSG_ATTR_TYPE_TMEM_INPUT; in from_msg_param_tmp_mem() 92 p->u.memref.size = mp->u.tmem.size; in from_msg_param_tmp_mem() [all …]
|
/linux/arch/arm64/boot/dts/hisilicon/ |
H A D | hi6220-hikey.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include "hikey-pinctrl.dtsi" 12 #include <dt-bindings/gpio/gpio.h> 16 compatible = "hisilicon,hi6220-hikey", "hisilicon,hi6220"; 26 stdout-path = "serial3:115200n8"; 32 * 0x05e0,0000 - 0x05ef,ffff: MCU firmware runtime using 33 * 0x05f0,1000 - 0x05f0,1fff: Reboot reason 34 * 0x06df,f000 - 0x06df,ffff: Mailbox message data 35 * 0x0740,f000 - 0x0740,ffff: MCU firmware section [all …]
|
H A D | hi3660-hikey960.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 12 #include "hikey960-pinctrl.dtsi" 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include <dt-bindings/usb/pd.h> 20 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660"; 35 stdout-path = "serial6:115200n8"; 44 reserved-memory { [all …]
|
/linux/net/smc/ |
H A D | smc_core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 17 #include <linux/reboot.h> 20 #include <linux/smc.h> 26 #include "smc.h" 62 if (lgr->is_smcd) { in smc_lgr_list_head() 63 *lgr_lock = &lgr->smcd->lgr_lock; in smc_lgr_list_head() 64 return &lgr->smcd->lgr_list; in smc_lgr_list_head() 73 atomic_inc(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_inc() 78 atomic_dec(&lnk->smcibdev->lnk_cnt_by_port[lnk->ibport - 1]); in smc_ibdev_cnt_dec() [all …]
|
/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos2200.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 8 #include <dt-bindings/clock/samsung,exynos2200-cmu.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #address-cells = <2>; 14 #size-cells = <2>; 16 interrupt-parent = <&gic>; 30 xtcxo: clock-1 { 31 compatible = "fixed-clock"; 32 #clock-cells = <0>; 33 clock-output-names = "oscclk"; [all …]
|
H A D | exynos7870.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <dt-bindings/clock/samsung,exynos7870-cmu.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 14 #address-cells = <2>; 15 #size-cells = <1>; 17 interrupt-parent = <&gic>; 31 #address-cells = <1>; 32 #size-cells = <0>; 34 cpu-map { 68 compatible = "arm,cortex-a53"; [all …]
|
/linux/drivers/watchdog/ |
H A D | keembay_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Watchdog driver for Intel Keem Bay non-secure watchdog. 8 #include <linux/arm-smccc.h> 17 #include <linux/reboot.h> 20 /* Non-secure watchdog register offsets */ 61 return readl(wdt->base + offset); in keembay_wdt_readl() 66 writel(WDT_UNLOCK, wdt->base + TIM_SAFE); in keembay_wdt_writel() 67 writel(val, wdt->base + offset); in keembay_wdt_writel() 74 keembay_wdt_writel(wdt, TIM_WATCHDOG, wdog->timeout * wdt->rate); in keembay_wdt_set_timeout_reg() 82 if (wdog->pretimeout) in keembay_wdt_set_pretimeout_reg() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 16 on-line as fast as possible after a lock-up. There's both a watchdog 18 reboot the machine) and a driver for hardware watchdog boards, which 21 <file:Documentation/watchdog/watchdog-api.rst> in the kernel source. 26 can also monitor NFS connections and can reboot the machine when the 51 bool "Update boot-enabled watchdog until userspace takes over" 59 enough your device will reboot. 77 bool "Enable watchdog hrtimer-based pretimeouts" 138 a watchdog feeder is dead and reboot is unavoidable. 156 A software monitoring watchdog. This will fail to reboot your system [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1012a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1012A family SoC. 6 * Copyright 2019-2020 NXP 10 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; 23 rtic-a = &rtic_a; [all …]
|
H A D | fsl-ls1088a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1088A family SoC. 5 * Copyright 2017-2020 NXP 10 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; 26 #address-cells = <1>; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3562.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/rockchip,rk3562-cru.h> 7 #include <dt-bindings/interrupt-controller/arm-gic.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/phy/phy.h> 10 #include <dt-bindings/power/rockchip,rk3562-power.h> 11 #include <dt-bindings/pinctrl/rockchip.h> 12 #include <dt-bindings/reset/rockchip,rk3562-cru.h> 13 #include <dt-bindings/soc/rockchip,boot-mode.h> 14 #include <dt-bindings/thermal/thermal.h> [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | smu_v11_0.c | 26 #include <linux/reboot.h> 84 struct amdgpu_device *adev = smu->adev; in smu_v11_0_poll_baco_exit() 95 struct amdgpu_device *adev = smu->adev; in smu_v11_0_init_microcode() 108 err = amdgpu_ucode_request(adev, &adev->pm.fw, AMDGPU_UCODE_REQUIRED, in smu_v11_0_init_microcode() 113 hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data; in smu_v11_0_init_microcode() 114 amdgpu_ucode_print_smc_hdr(&hdr->header); in smu_v11_0_init_microcode() 115 adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version); in smu_v11_0_init_microcode() 117 if (adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) { in smu_v11_0_init_microcode() 118 ucode = &adev->firmware.ucode[AMDGPU_UCODE_ID_SMC]; in smu_v11_0_init_microcode() 119 ucode->ucode_id = AMDGPU_UCODE_ID_SMC; in smu_v11_0_init_microcode() [all …]
|