/openbmc/linux/Documentation/watchdog/ |
H A D | mlx-wdt.rst | 17 e.g. timeout 20 sec will be rounded up to 32768 msec. 18 The maximum timeout period is 32 sec (32768 msec.), 19 Get time-left isn't supported 22 Actual HW timeout is defined in sec. and it's the same as 23 a user-defined timeout. 24 Maximum timeout is 255 sec. 25 Get time-left is supported. 29 Maximum timeout is 65535 sec. 44 system reset, start fans on full speed and increase register counter. 45 The last 2 actions are performed without a system reset. [all …]
|
/openbmc/linux/arch/mips/dec/ |
H A D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * This file contains the time handling details for PC-style clocks as 15 #include <asm/cpu-features.h> 17 #include <asm/time.h> 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 30 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock64() 37 * The PROM will reset the year to either '72 or '73. in read_persistent_clock64() 42 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock64() 47 sec = bcd2bin(sec); in read_persistent_clock64() 55 year += real_year - 72 + 2000; in read_persistent_clock64() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/watchdog/ |
H A D | atmel,at91sam9-wdt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/watchdog/atmel,at91sam9-wdt.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Eugen Hristev <eugen.hristev@microchip.com> 15 const: atmel,at91sam9260-wdt 26 atmel,max-heartbeat-sec: 32 atmel,min-heartbeat-sec: 35 must be smaller than the max-heartbeat-sec value. It is used to 39 atmel,watchdog-type: [all …]
|
H A D | st_lpc_wdt.txt | 1 STMicroelectronics Low Power Controller (LPC) - Watchdog 4 LPC currently supports Watchdog OR Real Time Clock OR Clocksource 7 [See: ../rtc/rtc-st-lpc.txt for RTC options] 8 [See: ../timer/st,stih407-lpc for Clocksource options] 12 - compatible : Should be: "st,stih407-lpc" 13 - reg : LPC registers base address + size 14 - interrupts : LPC interrupt line number and associated flags 15 - clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt) 16 - st,lpc-mode : The LPC can run either one of three modes: 24 - st,syscfg : Phandle to syscfg node used to enable watchdog and configure [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | mc146818-time.h | 13 #include <linux/time.h> 42 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); /* stop and reset prescaler */ in mc146818_set_rtc_mmss() 52 * messing with unknown time zones but requires your in mc146818_set_rtc_mmss() 57 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in mc146818_set_rtc_mmss() 58 real_minutes += 30; /* correct for half hour time zone */ in mc146818_set_rtc_mmss() 61 if (abs(real_minutes - cmos_minutes) < 30) { in mc146818_set_rtc_mmss() 72 retval = -1; in mc146818_set_rtc_mmss() 77 * battery and quartz) will not reset the oscillator and will not in mc146818_set_rtc_mmss() 80 * sheets anyway ... -- Markus Kuhn in mc146818_set_rtc_mmss() 91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | input.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 21 $ref: /schemas/types.yaml#/definitions/uint32-array 34 linux,input-type: 37 - 1 # EV_KEY 38 - 2 # EV_REL 39 - 3 # EV_ABS 40 - 5 # EV_SW [all …]
|
/openbmc/u-boot/cmd/ |
H A D | date.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * RTC, Date & Time support: get and set date & time 23 #define RELOC(a) ((typeof(a))((unsigned long)(a) + gd->reloc_off)) 56 case 2: /* set date & time */ in do_date() 57 if (strcmp(argv[1],"reset") == 0) { in do_date() 58 puts ("Reset RTC...\n"); in do_date() 68 puts("## Failed to set date after RTC reset\n"); in do_date() 70 /* initialize tm with current time */ in do_date() 77 /* insert new date & time */ in do_date() 97 case 1: /* get date & time */ in do_date() [all …]
|
/openbmc/u-boot/drivers/rtc/ |
H A D | pt7c4338.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * This file provides Date & Time support (no alarms) for PT7C4338 chip. 14 * It is a serial real-time clock which provides 15 * 1)Low-power clock/calendar. 16 * 2)Programmable square-wave output. 45 /* RTC reset value */ 61 /* Get the current time from the RTC */ 65 u8 sec, min, hour, mday, wday, mon, year, ctl_stat; in rtc_get() local 68 sec = rtc_read(RTC_SEC_REG_ADDR); in rtc_get() 76 "hr: %02x min: %02x sec: %02x control_status: %02x\n", in rtc_get() [all …]
|
H A D | pcf8563.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Date & Time support for Philips PCF8563 RTC 21 /* ------------------------------------------------------------------------- */ 26 uchar sec, min, hour, mday, wday, mon_cent, year; in rtc_get() local 28 sec = rtc_read (0x02); in rtc_get() 37 "hr: %02x min: %02x sec: %02x\n", in rtc_get() 39 hour, min, sec ); in rtc_get() 46 if (sec & 0x80) { in rtc_get() 47 puts ("### Warning: RTC Low Voltage - date/time not reliable\n"); in rtc_get() 48 rel = -1; in rtc_get() [all …]
|
H A D | ds3231.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Date & Time support (no alarms) for Dallas Semiconductor (now Maxim) 9 * Extremly Accurate DS3231 Real Time Clock (RTC). 58 * Get the current time from the RTC 63 uchar sec, min, hour, mday, wday, mon_cent, year, control, status; in rtc_get() local 67 sec = rtc_read (RTC_SEC_REG_ADDR); in rtc_get() 76 "hr: %02x min: %02x sec: %02x control: %02x status: %02x\n", in rtc_get() 77 year, mon_cent, mday, wday, hour, min, sec, control, status); in rtc_get() 84 rel = -1; in rtc_get() 87 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() [all …]
|
H A D | ds1307.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Steven Scholz, steven.scholz@imc-berlin.de 10 * Date & Time support (no alarms) for Dallas Semiconductor (now Maxim) 11 * DS1307 and DS1338/9 Real Time Clock (RTC). 48 /* MCP7941X-specific bits */ 54 /*---------------------------------------------------------------------*/ 62 /*---------------------------------------------------------------------*/ 76 * Get the current time from the RTC 81 uchar sec, min, hour, mday, wday, mon, year; in rtc_get() local 86 sec = rtc_read (RTC_SEC_REG_ADDR); in rtc_get() [all …]
|
H A D | mvrtc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Jason Cooper <u-boot@lakedaemon.net> 8 * Date & Time support for Marvell Integrated RTC 23 u32 time; in __mv_rtc_get() local 26 /* read the time register */ in __mv_rtc_get() 27 time = readl(®s->time); in __mv_rtc_get() 30 date = readl(®s->date); in __mv_rtc_get() 33 if (time & MVRTC_HRFMT_MSK) { in __mv_rtc_get() 35 return -1; in __mv_rtc_get() 38 /* time */ in __mv_rtc_get() [all …]
|
H A D | ds1306.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2004, Li-Pro.Net <www.li-pro.net> 6 * Stephan Linz <linz@li-pro.net> 10 * Date & Time support for DS1306 RTC using SPI: 12 * - SXNI855T: it uses its own soft SPI here in this file 13 * - all other: use the external spi_xfer() function 53 /*----------------------------------------------------------------------- 62 /* ------------------------------------------------------------------------- */ 64 /* read clock time from DS1306 and return it in *tmp */ 73 immap->im_cpm.cp_pbdat |= PB_SPI_CE; in rtc_get() [all …]
|
H A D | ds1337.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2001-2008 9 * Date & Time support (no alarms) for Dallas Semiconductor (now Maxim) 10 * DS1337 Real Time Clock (RTC). 67 * Get the current time from the RTC 72 uchar sec, min, hour, mday, wday, mon_cent, year, control, status; in rtc_get() local 76 sec = rtc_read (RTC_SEC_REG_ADDR); in rtc_get() 90 "hr: %02x min: %02x sec: %02x control: %02x status: %02x\n", in rtc_get() 91 year, mon_cent, mday, wday, hour, min, sec, control, status); in rtc_get() 98 rel = -1; in rtc_get() [all …]
|
H A D | mc146818.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Date & Time support for the MC146818 (PIXX4) RTC 58 reg -= 128; in mc146818_read8() 75 reg -= 128; in mc146818_write8() 84 uchar sec, min, hour, mday, wday __attribute__((unused)),mon, year; in mc146818_get() local 90 sec = mc146818_read8(RTC_SECONDS); in mc146818_get() 98 printf("Get RTC year: %02x mon/cent: %02x mday: %02x wday: %02x hr: %02x min: %02x sec: %02x\n", in mc146818_get() 99 year, mon, mday, wday, hour, min, sec); in mc146818_get() 100 printf("Alarms: mday: %02x hour: %02x min: %02x sec: %02x\n", in mc146818_get() 106 tmp->tm_sec = bcd2bin(sec & 0x7f); in mc146818_get() [all …]
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copied and modified from arch/i386/kernel/time.c 17 #include <linux/time.h> 29 #include <asm/time.h> 49 rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); in chrp_time_init() 84 * Set the hardware clock. -- Cort 97 save_freq_select = chrp_cmos_clock_read(RTC_FREQ_SELECT); /* stop and reset prescaler */ in chrp_set_rtc_time() 118 * battery and quartz) will not reset the oscillator and will not in chrp_set_rtc_time() 121 * sheets anyway ... -- Markus Kuhn in chrp_set_rtc_time() 132 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local [all …]
|
/openbmc/linux/drivers/scsi/fnic/ |
H A D | fnic_trace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/time.h> 34 * fnic_trace_get_buf - Give buffer pointer to user to fill up trace information 81 * fnic_get_trace_data - Copy trace buffer to a memory file 117 sprint_symbol(str, tbp->fnaddr.low); in fnic_get_trace_data() 118 jiffies_to_timespec64(tbp->timestamp.low, &val); in fnic_get_trace_data() 120 sprint_symbol(str, tbp->fnaddr.val); in fnic_get_trace_data() 121 jiffies_to_timespec64(tbp->timestamp.val, &val); in fnic_get_trace_data() 127 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data() 128 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data() [all …]
|
/openbmc/openbmc-test-automation/extended/ |
H A D | test_bmc_reset_loop.robot | 3 ... becomes unavailable during AC-Cycle stress test. 22 ${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start|Found ordering cycle 37 Run Multiple BMC Reset Via Redfish 44 Repeat Keyword ${LOOP_COUNT} times BMC Redfish Reset Cycle 47 Run Multiple BMC Reset Via Reboot 57 Run Multiple BMC Reset When Host Is Booted Via Redfish 64 Repeat Keyword ${LOOP_COUNT} times BMC Redfish Reset Runtime Cycle 72 Check If BMC Is Up 5 min 10 sec 74 Wait Until Keyword Succeeds 10 min 10 sec Is BMC Ready 75 Verify BMC RTC And UTC Time Drift [all …]
|
/openbmc/linux/arch/powerpc/platforms/maple/ |
H A D | time.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/time.h> 27 #include <asm/time.h> 54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time() 55 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time() 56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time() 57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time() 58 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time() 59 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time() 60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stpmic1.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - pascal Paillet <p.paillet@foss.st.com> 24 "#interrupt-cells": 27 interrupt-controller: true 36 const: st,stpmic1-onkey 40 - description: onkey-falling, happens when onkey is pressed. IT_PONKEY_F of pmic 41 - description: onkey-rising, happens when onkey is released. IT_PONKEY_R of pmic 43 interrupt-names: [all …]
|
/openbmc/openbmc-test-automation/redfish/managers/ |
H A D | test_managers_bmc.robot | 21 ${REBOOT_REGEX} ^\-- Boot | Startup finished 49 # "UUID": "xxxxxxxx-xxx-xxx-xxx-xxxxxxxxxxxx" 68 # 'channel_info': {'medium_type': 'lan-802.3', 69 # 'protocol_type': 'ipmb-1.0', 70 # 'session_supported': 'multi-session', 111 # "#Manager.Reset": { 116 # "target": "/redfish/v1/Managers/${MANAGER_ID}/Actions/Manager.Reset" 124 Redfish BMC Reset Operation reset_type=GracefulRestart 128 ${stdout} ${stderr} ${rc}= BMC Execute Command test ! -f ${test_file_path} print_out=1 129 Verify BMC RTC And UTC Time Drift [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_tsn.c | 1 // SPDX-License-Identifier: GPL-2.0 12 for (i = 0; i < adapter->num_tx_queues; i++) { in is_any_launchtime() 13 struct igc_ring *ring = adapter->tx_ring[i]; in is_any_launchtime() 15 if (ring->launchtime_enable) in is_any_launchtime() 26 for (i = 0; i < adapter->num_tx_queues; i++) { in is_cbs_enabled() 27 struct igc_ring *ring = adapter->tx_ring[i]; in is_cbs_enabled() 29 if (ring->cbs_enable) in is_cbs_enabled() 38 unsigned int new_flags = adapter->flags & ~IGC_FLAG_TSN_ANY_ENABLED; in igc_tsn_new_flags() 40 if (adapter->taprio_offload_enable) in igc_tsn_new_flags() 54 struct igc_hw *hw = &adapter->hw; in igc_tsn_is_tx_mode_in_tsn() [all …]
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_cold_reset.robot | 2 Documentation This suite tests IPMI Cold Reset in OpenBMC. 4 ... The Cold reset command directs the Responder to perform 5 ... a 'Cold Reset' action, which causes default setting of 10 ... - Cold_Reset_Via_IPMI 11 ... - Cold_Reset_With_Invalid_Data_Request_Via_IPMI 12 ... - Verify_Cold_Reset_Impact_On_Sensor_Threshold_Via_IPMI 14 ... The script verifies command execution for cold reset, 15 ... invalid data request verification of cold reset and 16 ... impact on sensor threshold value change with cold reset. 19 ... executes cold reset IPMI command, [all …]
|
/openbmc/openbmc-test-automation/redfish/extended/ |
H A D | test_power_restore.robot | 5 ... https://github.com/openbmc/docs/blob/master/rest-api.md 34 ... After BMC reset, system should reach this 61 ... After BMC reset, system should reach this 89 ... After BMC reset, system should reach this 111 [Documentation] Set given policy, reset BMC and expect specified end 129 ... 10 min 20 sec Valid Boot States ${nextState} 183 ... ${interval}=10 sec 186 # max_timeout Maximum time to wait. 187 # This should be expressed in Robot Framework's time format 190 # This should be expressed in Robot Framework's time format
|
/openbmc/openbmc-test-automation/lib/ |
H A D | bmc_redfish_utils.robot | 20 # "#ComputerSystem.Reset": { 22 # "target": "/redfish/v1/Systems/${SYSTEM_ID}/Actions/ComputerSystem.Reset" 30 # "Name": "Reset Action Info", 49 ${target}= Wait Until Keyword Succeeds 1 min 20 sec 50 ... redfish_utils.Get Target Actions /redfish/v1/Systems/${SYSTEM_ID}/ ComputerSystem.Reset 56 Redfish BMC Reset Operation 57 [Documentation] Do Redfish BMC reset operation. 62 # "#Manager.Reset": { 64 # "target": "/redfish/v1/Managers/${MANAGER_ID}/Actions/Manager.Reset" 79 # "Name": "Reset Action Info", [all …]
|