/openbmc/linux/arch/x86/realmode/rm/ |
H A D | wakeup.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Definitions for the wakeup data structure at the head of the 4 * wakeup code. 13 /* This must match data at wakeup.S */ 15 u16 video_mode; /* Video mode number */ 16 u32 pmode_entry; /* Protected mode resume point, 32-bit only */ 18 u32 pmode_cr0; /* Protected mode cr0 */ 19 u32 pmode_cr3; /* Protected mode cr3 */ 20 u32 pmode_cr4; /* Protected mode cr4 */ 21 u32 pmode_efer_low; /* Protected mode EFER */ [all …]
|
H A D | wakeup_asm.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * ACPI wakeup real mode startup stub 7 #include <asm/msr-index.h> 10 #include <asm/processor-flags.h> 12 #include "wakeup.h" 16 /* This should match the structure in wakeup.h */ 21 video_mode: .short 0 /* Video mode number */ 30 pmode_behavior: .long 0 /* Wakeup behavior flags */ 95 /* Restore MISC_ENABLE before entering protected mode, in case 134 /* -> jmp *%eax in trampoline_32.S */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | broadcom-bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/broadcom-bluetooth.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 This binding describes Broadcom UART-attached bluetooth chips. 18 - brcm,bcm20702a1 19 - brcm,bcm4329-bt 20 - brcm,bcm4330-bt 21 - brcm,bcm4334-bt [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | mediatek,mtu3.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Chunfeng Yun <chunfeng.yun@mediatek.com> 14 - $ref: usb-drd.yaml 23 - enum: 24 - mediatek,mt2712-mtu3 25 - mediatek,mt8173-mtu3 26 - mediatek,mt8183-mtu3 27 - mediatek,mt8186-mtu3 [all …]
|
H A D | mediatek,mtk-xhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/usb/mediatek,mtk-xhci.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Chunfeng Yun <chunfeng.yun@mediatek.com> 14 - $ref: usb-xhci.yaml 19 case 2: supports dual-role mode, and the host is based on xHCI driver. 25 - enum: 26 - mediatek,mt2701-xhci 27 - mediatek,mt2712-xhci [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | atmel,at91sam9260-shdwc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Claudiu Beznea <claudiu.beznea@microchip.com> 14 and VDDCORE and the wake-up detection on debounced input lines. 19 - atmel,at91sam9260-shdwc 20 - atmel,at91sam9rl-shdwc 21 - atmel,at91sam9x5-shdwc 29 atmel,wakeup-mode: [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | wait.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 spin_lock_init(&wq_head->lock); in __init_waitqueue_head() 11 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head() 12 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head() 21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue() 22 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue() 24 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue() 32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive() 33 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive() 35 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive() [all …]
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy-am335x.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <linux/dma-mapping.h> 13 #include "phy-am335x-control.h" 14 #include "phy-generic.h" 25 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); in am335x_init() 27 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_init() 33 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); in am335x_shutdown() 35 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_shutdown() 41 struct device *dev = &pdev->dev; in am335x_phy_probe() 46 return -ENOMEM; in am335x_phy_probe() [all …]
|
/openbmc/linux/drivers/usb/fotg210/ |
H A D | fotg210-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 23 #define FOTG210_RR_ID BIT(21) /* 1 = B-device, 0 = A-device */ 27 * Gemini-specific initialization function, only executed on the 30 * The gemini USB blocks are connected to either Mini-A (host mode) or 31 * Mini-B (peripheral mode) plugs. There is no role switch support on the 32 * Gemini SoC, just either-or. 43 enum usb_dr_mode mode) in fotg210_gemini_init() argument 45 struct device *dev = fotg->dev; in fotg210_gemini_init() 46 struct device_node *np = dev->of_node; in fotg210_gemini_init() 48 bool wakeup; in fotg210_gemini_init() local [all …]
|
/openbmc/linux/drivers/power/reset/ |
H A D | at91-poweroff.c | 5 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 27 #define AT91_SHDW_MR 0x04 /* Shut Down Mode Register */ 28 #define AT91_SHDW_WKMODE0 GENMASK(2, 0) /* Wake-up 0 Mode Selection */ 32 #define AT91_SHDW_RTTWKEN BIT(16) /* Real Time Timer Wake-up Enable */ 33 #define AT91_SHDW_RTCWKEN BIT(17) /* Real Time Clock Wake-up Enable */ 36 #define AT91_SHDW_WAKEUP0 BIT(0) /* Wake-up 0 Status */ 37 #define AT91_SHDW_RTTWK BIT(16) /* Real-time Timer Wake-up */ 38 #define AT91_SHDW_RTCWK BIT(17) /* Real-time Clock Wake-up [SAM9RL] */ 65 /* Simple power-on, just bail out */ in at91_wakeup_status() 76 dev_info(&pdev->dev, "Wake-Up source: %s\n", reason); in at91_wakeup_status() [all …]
|
H A D | atc260x-poweroff.c | 1 // SPDX-License-Identifier: GPL-2.0+ 31 /* S4-Deep Sleep Mode is NOT available for WALL/USB power */ in atc2603c_do_poweroff() 34 dev_info(pwrc->dev, "Enabling S4-Deep Sleep Mode"); in atc2603c_do_poweroff() 37 /* Update wakeup sources */ in atc2603c_do_poweroff() 42 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL0, in atc2603c_do_poweroff() 45 dev_warn(pwrc->dev, "failed to write SYS_CTL0: %d\n", ret); in atc2603c_do_poweroff() 47 /* Update power mode */ in atc2603c_do_poweroff() 50 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL3, reg_mask, in atc2603c_do_poweroff() 53 dev_err(pwrc->dev, "failed to write SYS_CTL3: %d\n", ret); in atc2603c_do_poweroff() 62 ret = regmap_update_bits(pwrc->regmap, in atc2603c_do_poweroff() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-power | 15 labels, which may be "mem" (suspend), "standby" (power-on 16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation). 21 See Documentation/admin-guide/pm/sleep-states.rst for more 28 The /sys/power/mem_sleep file controls the operating mode of 31 supported). The mode that will be used on subsequent attempts 35 Writing one of the above strings to this file causes the mode 39 See Documentation/admin-guide/pm/sleep-states.rst for more 46 The /sys/power/disk file controls the operating mode of the 47 suspend-to-disk mechanism. Reading from this file returns 51 'firmware' - means that the memory image will be saved to disk [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | clockdomain.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2011 Texas Instruments, Inc. 6 * Copyright (C) 2008-2011 Nokia Corporation 22 #include <linux/clk-provider.h> 37 /* array of clockdomain deps to be added/removed when clkdm in hwsup mode */ 56 if (!strcmp(name, temp_clkdm->name)) { in _clkdm_lookup() 66 * _clkdm_register - register a clockdomain 70 * Returns -EINVAL if given a null pointer, -EEXIST if a clockdomain is 77 if (!clkdm || !clkdm->name) in _clkdm_register() 78 return -EINVAL; in _clkdm_register() [all …]
|
H A D | clockdomain.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 6 * Copyright (C) 2008-2011 Nokia Corporation 33 * hardware-supervised idle mode, the PRCM may transition the 38 * force-sleep mode, then the HW_AUTO mode will be used to put the 40 * the force-wakeup mode, then it will be used whenever a clock or 42 * HW_AUTO mode. 57 * struct clkdm_autodep - clkdm deps to add when entering/exiting hwsup mode 58 * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only 61 * clockdomain should stay active in hwsup mode; and conversely, 63 * hwsup mode. [all …]
|
/openbmc/linux/arch/arm/boot/dts/intel/pxa/ |
H A D | pxa300-raumfeld-controller.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "pxa300-raumfeld-common.dtsi" 9 compatible = "raumfeld,raumfeld-controller-pxa303", "marvell,pxa300"; 11 reg_vbatt: regulator-vbatt { 12 compatible = "regulator-fixed"; 13 regulator-name = "vbatt-fixed-supply"; 14 regulator-min-microvolt = <3700000>; 15 regulator-max-microvolt = <3700000>; 16 regulator-always-on; [all …]
|
/openbmc/linux/arch/mips/loongson2ef/common/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * loongson-specific suspend support 57 * Setup the board-specific events for waking up loongson from wait mode 64 * Check wakeup events 72 * If the events are really what we want to wakeup the CPU, wake it up 96 /* setup wakeup events via enabling the IRQs */ in loongson_suspend_enter() 103 /* Put CPU into wait mode */ in loongson_suspend_enter() 106 /* wait for the given events to wakeup cpu from wait mode */ in loongson_suspend_enter()
|
/openbmc/linux/drivers/soc/fsl/ |
H A D | rcpm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rcpm.c - Freescale QorIQ RCPM driver 5 // Copyright 2019-2020 NXP 34 np = of_find_compatible_node(NULL, NULL, "fsl,ls1021a-scfg"); in copy_ippdexpcr1_setting() 50 * rcpm_pm_prepare - performs device-level tasks associated with power 51 * management, such as programming related to the wakeup source control. 61 struct device_node *np = dev->of_node; in rcpm_pm_prepare() 67 return -EINVAL; in rcpm_pm_prepare() 69 base = rcpm->ippdexpcr_base; in rcpm_pm_prepare() 72 /* Begin with first registered wakeup source */ in rcpm_pm_prepare() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | idle_book3s.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * SRR1 wakeup reason return value. 10 * The platform / CPU caller must ensure SPRs and any other non-GPR 15 #include <asm/asm-offsets.h> 16 #include <asm/ppc-opcode.h> 24 * No state will be lost regardless of wakeup mechanism (interrupt or NIA). 26 * An EC=0 type wakeup will return with a value of 0. SRESET wakeup (which can 40 * GPRs may be lost, so they are saved here. Wakeup is by interrupt only. 41 * The SRESET wakeup returns to this function's caller by calling 44 * A wakeup without GPR loss may alteratively be handled as in [all …]
|
/openbmc/linux/drivers/gnss/ |
H A D | sirf.c | 1 // SPDX-License-Identifier: GPL-2.0 45 struct gpio_desc *wakeup; member 62 mutex_lock(&data->serdev_mutex); in sirf_serdev_open() 63 if (++data->serdev_count == 1) { in sirf_serdev_open() 64 ret = serdev_device_open(data->serdev); in sirf_serdev_open() 66 data->serdev_count--; in sirf_serdev_open() 70 serdev_device_set_baudrate(data->serdev, data->speed); in sirf_serdev_open() 71 serdev_device_set_flow_control(data->serdev, false); in sirf_serdev_open() 75 mutex_unlock(&data->serdev_mutex); in sirf_serdev_open() 82 mutex_lock(&data->serdev_mutex); in sirf_serdev_close() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | rtc-fsl-ftm-alarm.txt | 4 - compatible : Should be "fsl,<chip>-ftm-alarm", the 6 "fsl,ls1012a-ftm-alarm" 7 "fsl,ls1021a-ftm-alarm" 8 "fsl,ls1028a-ftm-alarm" 9 "fsl,ls1043a-ftm-alarm" 10 "fsl,ls1046a-ftm-alarm" 11 "fsl,ls1088a-ftm-alarm" 12 "fsl,ls208xa-ftm-alarm" 13 "fsl,lx2160a-ftm-alarm" 14 - reg : Specifies base physical address and size of the register sets for the [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | at91sam9261ek.dts | 2 * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board 4 * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com> 8 /dts-v1/; 17 stdout-path = "serial0:115200n8"; 26 clock-frequency = <32768>; 30 clock-frequency = <18432000>; 41 atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>; 45 bits-per-pixel = <16>; 46 atmel,lcdcon-backlight; 49 atmel,guard-time = <1>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | ste,nomadik.txt | 4 - compatible: "stericsson,db8500-pinctrl", "stericsson,db8540-pinctrl", 5 "stericsson,stn8815-pinctrl" 6 - nomadik-gpio-chips: array of phandles to the corresponding GPIO chips 8 - prcm: phandle to the PRCMU managing the back end of this pin controller 10 Please refer to pinctrl-bindings.txt in this directory for details of the 23 (see pinctrl-bindings.txt): 26 - function: A string containing the name of the function to mux to the 28 - groups : An array of strings. Each string contains the name of a pin 30 set-up. 33 - pins: A string array describing the pins affected by the configuration [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | btmrvl.rst | 14 bit 8:0 -- Gap 15 bit 16:8 -- GPIO 18 It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface 19 wakeup will be used instead). 21 where Gap is the gap in milli seconds between wakeup signal and 22 wakeup event, or 0xff for special host sleep setting. 35 These commands are used to enable/disable auto sleep mode 39 1 -- Enable auto sleep mode 40 0 -- Disable auto sleep mode 44 # Enable auto sleep mode [all …]
|
/openbmc/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's. 25 * enum pincfg_type - possible pin configuration types supported. 30 * @PINCFG_TYPE_CON_PDN: Pin function in power down mode. 31 * @PINCFG_TYPE_PUD_PDN: Pull up/down configuration in power down mode. 46 * packed together into a 16-bits. The upper 8-bits represent the configuration 47 * type and the lower 8-bits hold the value of the configuration type. 65 * enum eint_type - possible external interrupt types. 68 * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts 69 * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts [all …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | at91sam9261ek.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board 5 * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com> 7 /dts-v1/; 16 stdout-path = "serial0:115200n8"; 25 clock-frequency = <32768>; 29 clock-frequency = <18432000>; 40 atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>; 44 bits-per-pixel = <16>; 45 atmel,lcdcon-backlight; [all …]
|