| /kernel/linux/linux-5.10/drivers/power/reset/ |
| 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 19 u32 offset; 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() [all …]
|
| D | syscon-reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Generic Syscon Reboot Driver 15 #include <linux/reboot.h> 20 u32 offset; member 33 /* Issue the reboot */ in syscon_restart_handle() 34 regmap_update_bits(ctx->map, ctx->offset, ctx->mask, ctx->value); in syscon_restart_handle() 45 struct device *dev = &pdev->dev; in syscon_reboot_probe() 49 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in syscon_reboot_probe() 51 return -ENOMEM; in syscon_reboot_probe() 53 ctx->map = syscon_regmap_lookup_by_phandle(dev->of_node, "regmap"); in syscon_reboot_probe() [all …]
|
| D | hisi-reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/reboot.h> 19 #include <asm/proc-fns.h> 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() 75 .name = "hisi-reboot",
|
| D | brcmstb-reboot.c | 26 #include <linux/reboot.h> 51 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler() 63 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler() 97 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm }, 98 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm }, 105 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe() 111 return -EINVAL; in brcmstb_reboot_probe() 113 reset_masks = of_id->data; in brcmstb_reboot_probe() 118 return -EINVAL; in brcmstb_reboot_probe() 124 pr_err("can't get rst_src_en offset (%d)\n", rc); in brcmstb_reboot_probe() [all …]
|
| /kernel/linux/linux-4.19/drivers/power/reset/ |
| D | syscon-reboot-mode.c | 15 #include <linux/reboot.h> 18 #include <linux/reboot-mode.h> 22 struct reboot_mode_driver reboot; member 23 u32 offset; 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() [all …]
|
| D | syscon-reboot.c | 2 * Generic Syscon Reboot Driver 24 #include <linux/reboot.h> 29 u32 offset; member 41 /* Issue the reboot */ in syscon_restart_handle() 42 regmap_write(ctx->map, ctx->offset, ctx->mask); in syscon_restart_handle() 53 struct device *dev = &pdev->dev; in syscon_reboot_probe() 56 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in syscon_reboot_probe() 58 return -ENOMEM; in syscon_reboot_probe() 60 ctx->map = syscon_regmap_lookup_by_phandle(dev->of_node, "regmap"); in syscon_reboot_probe() 61 if (IS_ERR(ctx->map)) in syscon_reboot_probe() [all …]
|
| D | hisi-reboot.c | 20 #include <linux/reboot.h> 22 #include <asm/proc-fns.h> 45 struct device_node *np = pdev->dev.of_node; in hisi_reboot_probe() 51 return -ENODEV; in hisi_reboot_probe() 54 if (of_property_read_u32(np, "reboot-offset", &reboot_offset) < 0) { in hisi_reboot_probe() 55 pr_err("failed to find reboot-offset property\n"); in hisi_reboot_probe() 57 return -EINVAL; in hisi_reboot_probe() 62 dev_err(&pdev->dev, "cannot register restart handler (err=%d)\n", in hisi_reboot_probe() 78 .name = "hisi-reboot",
|
| D | brcmstb-reboot.c | 26 #include <linux/reboot.h> 51 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler() 63 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler() 97 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm }, 98 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm }, 105 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe() 111 return -EINVAL; in brcmstb_reboot_probe() 113 reset_masks = of_id->data; in brcmstb_reboot_probe() 118 return -EINVAL; in brcmstb_reboot_probe() 124 pr_err("can't get rst_src_en offset (%d)\n", rc); in brcmstb_reboot_probe() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/reset/ |
| D | syscon-reboot.yaml | 1 # 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> 15 defined by the SYSCON register map base plus the offset with the value and 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 [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 …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/power/reset/ |
| D | syscon-reboot-mode.txt | 1 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 …]
|
| D | syscon-reboot.txt | 5 defined by the register map pointed by syscon reference plus the offset 6 with the mask defined in the reboot node. 9 - compatible: should contain "syscon-reboot" 10 - regmap: this is phandle to the register map node 11 - offset: offset in the register map for the reboot register (in bytes) 12 - mask: the reset value written to the reboot register (32 bit access) 18 reboot { 19 compatible = "syscon-reboot"; 21 offset = <0x0>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/hisilicon/controller/ |
| D | sysctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Wei Xu <xuwei5@hisilicon.com> 14 used to assist the slave core startup, reboot the system, etc. 19 offset. In addition, the HiP01 system controller has some specific control 23 Hisilicon system controller --> hisilicon,sysctrl 24 HiP01 system controller --> hisilicon,hip01-sysctrl 25 Hi6220 system controller --> hisilicon,hi6220-sysctrl 26 Hi3519 system controller --> hisilicon,hi3519-sysctrl [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-zynq/ |
| D | slcr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2011-2013 Xilinx Inc. 9 #include <linux/reboot.h> 20 #define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */ 34 * zynq_slcr_write - Write to a register in SLCR block 37 * @offset: Register offset in SLCR block 41 static int zynq_slcr_write(u32 val, u32 offset) in zynq_slcr_write() argument 43 return regmap_write(zynq_slcr_regmap, offset, val); in zynq_slcr_write() 47 * zynq_slcr_read - Read a register in SLCR block 50 * @offset: Register offset in SLCR block [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-zynq/ |
| D | slcr.c | 4 * Copyright (c) 2011-2013 Xilinx Inc. 18 #include <linux/reboot.h> 29 #define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */ 43 * zynq_slcr_write - Write to a register in SLCR block 46 * @offset: Register offset in SLCR block 50 static int zynq_slcr_write(u32 val, u32 offset) in zynq_slcr_write() argument 52 return regmap_write(zynq_slcr_regmap, offset, val); in zynq_slcr_write() 56 * zynq_slcr_read - Read a register in SLCR block 59 * @offset: Register offset in SLCR block 63 static int zynq_slcr_read(u32 *val, u32 offset) in zynq_slcr_read() argument [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/bcm/ |
| D | brcm,bcm63138.txt | 1 Broadcom BCM63138 DSL System-on-a-Chip device tree bindings 2 ----------------------------------------------------------- 4 Boards compatible with the BCM63138 DSL System-on-a-Chip should have the 13 defined in reset/brcm,bcm63138-pmb.txt for this secondary CPU, and an 14 'enable-method' property. 17 - compatible: should be "brcm,bcm63138-bootlut" 18 - reg: register base address and length for the Boot Lookup table 21 - enable-method: should be "brcm,bcm63138" 24 - enable-method: should be "brcm,bcm63138" 25 - resets: phandle to the relevant PMB controller, one integer indicating the internal [all …]
|
| D | brcm,brcmstb.txt | 2 ----------------------------------------------- 3 Boards with Broadcom Brahma15 ARM-based BCMxxxx (generally BCM7xxx variants) 7 - compatible: "brcm,bcm<chip_id>", "brcm,brcmstb" 11 #address-cells = <2>; 12 #size-cells = <2>; 16 Further, syscon nodes that map platform-specific registers used for general 19 - compatible: "brcm,bcm<chip_id>-sun-top-ctrl", "syscon" 20 - compatible: "brcm,bcm<chip_id>-cpu-biu-ctrl", 21 "brcm,brcmstb-cpu-biu-ctrl", 23 - compatible: "brcm,bcm<chip_id>-hif-continuation", "syscon" [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/arm/bcm/ |
| D | brcm,bcm63138.txt | 1 Broadcom BCM63138 DSL System-on-a-Chip device tree bindings 2 ----------------------------------------------------------- 4 Boards compatible with the BCM63138 DSL System-on-a-Chip should have the 13 defined in reset/brcm,bcm63138-pmb.txt for this secondary CPU, and an 14 'enable-method' property. 17 - compatible: should be "brcm,bcm63138-bootlut" 18 - reg: register base address and length for the Boot Lookup table 21 - enable-method: should be "brcm,bcm63138" 24 - enable-method: should be "brcm,bcm63138" 25 - resets: phandle to the relevant PMB controller, one integer indicating the internal [all …]
|
| D | brcm,brcmstb.txt | 2 ----------------------------------------------- 3 Boards with Broadcom Brahma15 ARM-based BCMxxxx (generally BCM7xxx variants) 7 - compatible: "brcm,bcm<chip_id>", "brcm,brcmstb" 11 #address-cells = <2>; 12 #size-cells = <2>; 16 Further, syscon nodes that map platform-specific registers used for general 19 - compatible: "brcm,bcm<chip_id>-sun-top-ctrl", "syscon" 20 - compatible: "brcm,bcm<chip_id>-cpu-biu-ctrl", 21 "brcm,brcmstb-cpu-biu-ctrl", 23 - compatible: "brcm,bcm<chip_id>-hif-continuation", "syscon" [all …]
|
| /kernel/linux/linux-5.10/arch/x86/platform/ce4100/ |
| D | ce4100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/reboot.h> 20 #include <asm/emergency-restart.h> 25 * intention to reset, reboot or power off the system. This 8051 device has 36 static unsigned int mem_serial_in(struct uart_port *p, int offset) in mem_serial_in() argument 38 offset = offset << p->regshift; in mem_serial_in() 39 return readl(p->membase + offset); in mem_serial_in() 49 * errata number 9 in Errata - B step. 52 static unsigned int ce4100_mem_serial_in(struct uart_port *p, int offset) in ce4100_mem_serial_in() argument 56 if (offset == UART_IIR) { in ce4100_mem_serial_in() [all …]
|
| /kernel/linux/linux-4.19/arch/x86/platform/ce4100/ |
| D | ce4100.c | 14 #include <linux/reboot.h> 24 #include <asm/emergency-restart.h> 29 * intention to reset, reboot or power off the system. This 8051 device has 40 static unsigned int mem_serial_in(struct uart_port *p, int offset) in mem_serial_in() argument 42 offset = offset << p->regshift; in mem_serial_in() 43 return readl(p->membase + offset); in mem_serial_in() 53 * errata number 9 in Errata - B step. 56 static unsigned int ce4100_mem_serial_in(struct uart_port *p, int offset) in ce4100_mem_serial_in() argument 60 if (offset == UART_IIR) { in ce4100_mem_serial_in() 61 offset = offset << p->regshift; in ce4100_mem_serial_in() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | exynos-syscon-restart.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos SoC syscon reboot/poweroff nodes common definition. 7 poweroff: syscon-poweroff { 8 compatible = "syscon-poweroff"; 10 offset = <0x330C>; /* PS_HOLD_CONTROL */ 14 reboot: syscon-reboot { label 15 compatible = "syscon-reboot"; 17 offset = <0x0400>; /* SWRESET */
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | exynos-syscon-restart.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos SoC syscon reboot/poweroff nodes common definition. 7 poweroff: syscon-poweroff { 8 compatible = "syscon-poweroff"; 10 offset = <0x330C>; /* PS_HOLD_CONTROL */ 14 reboot: syscon-reboot { label 15 compatible = "syscon-reboot"; 17 offset = <0x0400>; /* SWRESET */
|
| /kernel/linux/linux-4.19/drivers/net/wimax/i2400m/ |
| D | fw.c | 6 * Copyright (C) 2007-2008 Intel Corporation. All rights reserved. 35 * Intel Corporation <linux-wimax@intel.com> 37 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 38 * - Initial implementation 43 * The 2400m and derived devices work in two modes: boot-mode or 48 * system, when it crashes and when you ask it to reboot. There are 49 * two submodes of the boot mode: signed and non-signed. Signed takes 50 * firmwares signed with a certain private key, non-signed takes any 58 * reboot barker (4 le32 words with the same value). We ack it by 60 * reboot ack barker (4 le32 words with value I2400M_ACK_BARKER) and [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
| D | fw.c | 6 * Copyright (C) 2007-2008 Intel Corporation. All rights reserved. 35 * Intel Corporation <linux-wimax@intel.com> 37 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 38 * - Initial implementation 43 * The 2400m and derived devices work in two modes: boot-mode or 48 * system, when it crashes and when you ask it to reboot. There are 49 * two submodes of the boot mode: signed and non-signed. Signed takes 50 * firmwares signed with a certain private key, non-signed takes any 58 * reboot barker (4 le32 words with the same value). We ack it by 60 * reboot ack barker (4 le32 words with value I2400M_ACK_BARKER) and [all …]
|