| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | boot_mode.c | 4 * SPDX-License-Identifier: GPL-2.0+ 27 int cnt, recovery = 0; in misc_require_recovery() local 40 cnt = DIV_ROUND_UP(sizeof(struct bootloader_message), dev_desc->blksz); in misc_require_recovery() 41 bmsg = memalign(ARCH_DMA_MINALIGN, cnt * dev_desc->blksz); in misc_require_recovery() 43 recovery = 0; in misc_require_recovery() 45 recovery = !strcmp(bmsg->command, "boot-recovery"); in misc_require_recovery() 47 if (!strcmp(bmsg->recovery, "recovery\n--rk_fwupdate\n")) in misc_require_recovery() 49 else if (!strcmp(bmsg->recovery, "recovery\n--factory_mode=whole") || in misc_require_recovery() 50 !strcmp(bmsg->recovery, "recovery\n--factory_mode=small")) in misc_require_recovery() 57 return recovery; in misc_require_recovery() [all …]
|
| H A D | spl_boot_mode.c | 4 * SPDX-License-Identifier: GPL-2.0+ 17 int cnt, recovery; in misc_require_recovery() local 27 cnt = DIV_ROUND_UP(sizeof(struct bootloader_message), dev_desc->blksz); in misc_require_recovery() 28 bmsg = memalign(ARCH_DMA_MINALIGN, cnt * dev_desc->blksz); in misc_require_recovery() 35 recovery = !strcmp(bmsg->command, "boot-recovery"); in misc_require_recovery() 38 return recovery; in misc_require_recovery() 47 * Boot mode priority in rockchip_get_boot_mode() 49 * Anyway, we should set download boot mode as the highest priority, so: in rockchip_get_boot_mode() 50 * reboot loader/bootloader/fastboot > misc partition "recovery" > reboot xxx. in rockchip_get_boot_mode() 54 printf("boot mode: loader\n"); in rockchip_get_boot_mode() [all …]
|
| H A D | boot_rkimg.c | 4 * SPDX-License-Identifier: GPL-2.0+ 37 #include <u-boot/sha1.h> 38 #include <u-boot/sha256.h> 39 #include <linux/usb/phy-rockchip-usb2.h> 52 return run_command_list(devtype_num_set, -1, 0); in rk_board_scan_bootdev() 59 mmc_initialize(gd->bd); in bootdev_init() 65 return -ENODEV; in bootdev_init() 71 return -ENODEV; in bootdev_init() 76 return -ENODEV; in bootdev_init() 121 mmc_initialize(gd->bd); in boot_devtype_init() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/ |
| H A D | st,sta32x.txt | 7 - compatible: "st,sta32x" 8 - reg: the I2C address of the device for I2C 9 - reset-gpios: a GPIO spec for the reset pin. If specified, it will be 12 - power-down-gpios: a GPIO spec for the power down pin. If specified, 16 - Vdda-supply: regulator spec, providing 3.3V 17 - Vdd3-supply: regulator spec, providing 3.3V 18 - Vcc-supply: regulator spec, providing 5V - 26V 22 - clocks, clock-names: Clock specifier for XTI input clock. 24 and disabled when it is removed. The 'clock-names' must be set to 'xti'. 26 - st,output-conf: number, Selects the output configuration: [all …]
|
| H A D | st,sta350.txt | 7 - compatible: "st,sta350" 8 - reg: the I2C address of the device for I2C 9 - reset-gpios: a GPIO spec for the reset pin. If specified, it will be 12 - power-down-gpios: a GPIO spec for the power down pin. If specified, 16 - vdd-dig-supply: regulator spec, providing 3.3V 17 - vdd-pll-supply: regulator spec, providing 3.3V 18 - vcc-supply: regulator spec, providing 5V - 26V 22 - st,output-conf: number, Selects the output configuration: 23 0: 2-channel (full-bridge) power, 2-channel data-out 24 1: 2 (half-bridge). 1 (full-bridge) on-board power [all …]
|
| /OK3568_Linux_fs/kernel/fs/gfs2/ |
| H A D | lock_dlm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright 2004-2011 Red Hat, Inc. 20 #include "recovery.h" 26 * gfs2_update_stats - Update time based stats 49 s64 delta = sample - s->stats[index]; in gfs2_update_stats() 50 s->stats[index] += (delta >> 3); in gfs2_update_stats() 52 s->stats[index] += (s64)(abs(delta) - s->stats[index]) >> 2; in gfs2_update_stats() 56 * gfs2_update_reply_times - Update locking statistics 59 * This assumes that gl->gl_dstamp has been set earlier. [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | android_bootloader.h | 4 * SPDX-License-Identifier: BSD-2-Clause 15 /* "recovery" mode is triggered by the "reboot recovery" command or 17 * "boot-recovery" in the BCB message. This mode should boot the 18 * recovery kernel. 22 /* "bootloader" mode is triggered by the "reboot bootloader" command or 24 * "bootonce-bootloader" in the BCB message. This mode should boot into 30 /** android_bootloader_boot_flow - Execute the Android Bootloader Flow. 32 * image (normal kernel, recovery kernel or "bootloader" mode) and booting it. 33 * The boot mode is determined by the contents of the Android Bootloader 44 /** android_avb_boot_flow - Execute the Android Bootloader Flow. [all …]
|
| H A D | boot_rkimg.h | 4 * SPDX-License-Identifier: GPL-2.0+ 14 BOOT_MODE_BOOTLOADER, /* Android: Fastboot mode */ 15 BOOT_MODE_LOADER, /* Rockchip: Rockusb download mode */ 29 char recovery[768]; member 31 * The 'recovery' field used to be 1024 bytes. It has only ever 32 * been used to store the recovery command line, so 768 bytes 60 #define PART_RECOVERY "recovery"
|
| H A D | ddr_spd.h | 2 * Copyright 2008-2014 Freescale Semiconductor, Inc. 4 * SPDX-License-Identifier: GPL-2.0 11 * Format from "JEDEC Standard No. 21-C, 35 unsigned char write_lat; /* 20 Write Latency (aka Write Recovery) */ 38 unsigned char clk_cycle2; /* 23 Min SDRAM Cycle time @ CL=X-0.5 */ 40 Clk @ CL=X-0.5 (tAC) */ 41 unsigned char clk_cycle3; /* 25 Min SDRAM Cycle time @ CL=X-1 */ 42 unsigned char clk_access3; /* 26 Max Access from Clk @ CL=X-1 (tAC) */ 52 unsigned char res_36_40[5];/* 36-40 reserved for VCSDRAM */ 60 unsigned char res_48_61[14]; /* 48-61 Reserved */ [all …]
|
| /OK3568_Linux_fs/external/recovery/update_engine/ |
| H A D | main.c | 8 * http://www.apache.org/licenses/LICENSE-2.0 60 int slot = -1; in MiscUpdate() 64 return -1; in MiscUpdate() 69 if (slot == -1) { in MiscUpdate() 70 // recovery mdoe in MiscUpdate() 71 // u-boot/trust/boot/recovery/boot/rootfs/oem in MiscUpdate() 91 // If it's recovery mode, upgrade recovery in normal system. in MiscUpdate() 92 if (slot == -1 && !is_sdboot && !is_usbboot) { in MiscUpdate() 94 LOGI("update recovery in normal system.\n"); in MiscUpdate() 100 return -1; in MiscUpdate() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/reset/ |
| 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 …]
|
| /OK3568_Linux_fs/external/recovery/ |
| H A D | recovery.c | 8 * http://www.apache.org/licenses/LICENSE-2.0 64 static const char *COMMAND_FILE = "/userdata/recovery/command"; 65 static const char *INTENT_FILE = "/userdata/recovery/intent"; 66 static const char *LOG_FILE = "/userdata/recovery/log"; 67 static const char *LAST_LOG_FILE = "/userdata/recovery/last_log"; 73 static const char *TEMPORARY_LOG_FILE = "/tmp/recovery.log"; 82 * The recovery tool communicates with the main system through /cache files. 83 * /cache/recovery/command - INPUT - command line for tool, one arg per line 84 * /cache/recovery/log - OUTPUT - combined log file from recovery run(s) 85 * /cache/recovery/intent - OUTPUT - intent that was passed in [all …]
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | android_bootloader.c | 4 * SPDX-License-Identifier: BSD-2-Clause 19 #include <image-android-dt.h> 41 part_info->blksz; in android_bootloader_message_load() 42 if (message_blocks > part_info->size) { in android_bootloader_message_load() 44 return -1; in android_bootloader_message_load() 47 if (blk_dread(dev_desc, part_info->start + android_bcb_msg_sector_offset(), in android_bootloader_message_load() 51 return -1; in android_bootloader_message_load() 63 part_info->blksz + android_bcb_msg_sector_offset(); in android_bootloader_message_write() 65 if (message_blocks > part_info->size) { in android_bootloader_message_write() 67 return -1; in android_bootloader_message_write() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ocfs2/dlm/ |
| H A D | dlmlock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* -*- mode: c; c-basic-offset: 8; -*- 59 return -ENOMEM; in dlm_init_lock_cache() 70 * caller needs: res->spinlock 80 list_for_each_entry(tmplock, &res->granted, list) { in dlm_can_grant_new_lock() 81 if (!dlm_lock_compatible(tmplock->ml.type, lock->ml.type)) in dlm_can_grant_new_lock() 85 list_for_each_entry(tmplock, &res->converting, list) { in dlm_can_grant_new_lock() 86 if (!dlm_lock_compatible(tmplock->ml.type, lock->ml.type)) in dlm_can_grant_new_lock() 88 if (!dlm_lock_compatible(tmplock->ml.convert_type, in dlm_can_grant_new_lock() 89 lock->ml.type)) in dlm_can_grant_new_lock() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * i2c.h - definitions for the Linux i2c bus interface 4 * Copyright (C) 1995-2000 Simon G. Vogl 5 * Copyright (C) 2013-2019 Wolfram Sang <wsa@kernel.org> 28 /* --- General options ------------------------------------------------ */ 65 * i2c_master_recv - issue a single I2C message in master receive mode 79 * i2c_master_recv_dmasafe - issue a single I2C message in master receive mode 95 * i2c_master_send - issue a single I2C message in master transmit mode 109 * i2c_master_send_dmasafe - issue a single I2C message in master transmit mode 189 * struct i2c_device_identity - i2c client device identification [all …]
|
| H A D | dlm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 6 ** Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. 23 * recover_prep: called before the dlm begins lock recovery. 27 * recover_done: called after the dlm completes lock recovery. 48 * is not used. When set, dlm_new_lockspace() returns -EBADR if cluster 63 * dlm_new_lockspace() should return -EEXIST if the lockspace exists. 69 * ops: callbacks that indicate lockspace recovery points so the 70 * caller can coordinate its recovery and know lockspace members. 77 * be used or not. 0: will be used, -EXXX will not be used. [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/marvell/ |
| H A D | armada-3720-uDPU.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 * Based on Marvell Armada 3720 development board (DB-88F3720-DDR3) 12 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 15 #include "armada-372x.dtsi" 22 stdout-path = "serial0:115200n8"; 31 pinctrl-names = "default"; 32 compatible = "gpio-leds"; 65 sfp_eth0: sfp-eth0 { 67 i2c-bus = <&i2c0>; [all …]
|
| /OK3568_Linux_fs/kernel/fs/dlm/ |
| H A D | dlm_internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 6 ** Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. 64 printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args) 70 (ls)->ls_name, ##args); \ 73 (ls)->ls_name , ##args); \ 80 (ls)->ls_name , ##args); \ 87 (ls)->ls_name , ##args); \ 130 * Save and manage recovery state for a lockspace. 148 void (*bastfn) (void *astparam, int mode); [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/vm/ |
| H A D | hwpoison.rst | 11 (``MCA recovery``). This requires the OS to declare a page "poisoned", 43 The code consists of a the high level handler in mm/memory-failure.c, 48 of applications. KVM support requires a recent qemu-kvm release. 56 Failure recovery modes 59 There are two (actually three) modes memory failure recovery can be in: 62 All memory failures cause a panic. Do not attempt recovery. 71 This is the mode used by KVM qemu. 85 Enable early kill mode globally 88 Set early/late kill mode/revert to system default 93 arg2 defines thread specific mode [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/unisys/Documentation/ABI/ |
| H A D | sysfs-platform-visorchipset | 8 s-Par's automatic installation progress screen when an error 10 if not in installation mode. 17 Description: used to set the value of the progress bar on the s-Par automatic 19 installation mode. 27 s-Par's automatic installation progress screen. Setting this 28 field when not in installation mode (boottotool was set on 36 Description: The boottotool flag controls s-Par behavior on the next boot of 47 Description: This field is used to tell s-Par which type of recovery tool 48 action to perform on the next guest boot-up. The meaning of the 59 responsible for enabling and disabling SR-IOV devices when the [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wimax/i2400m/ |
| H A D | driver.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com> 7 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 21 * i240m->bus_reset() 29 * i2400m->bus_setup() 37 * i2400m->bus_dev_start() 45 * i2400m->bus_dev_stop() 47 * i2400m->bus_release() 60 #include "debug-levels.h" 67 "String of space-separated NAME:VALUE pairs, where NAMEs " [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ide/ |
| H A D | ht6560b.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1995-2000 Linus Torvalds & author (see below) 7 * HT-6560B EIDE-controller support 9 * Use hdparm utility to enable PIO mode support. 11 * Author: Mikko Ala-Fossi <maf@iki.fi> 35 * The special i/o-port that HT-6560B uses to configuration: 40 * The special i/o-port that HT-6560A uses to configuration: 43 * bit2 (0x04): "0" enables multi-master system (?) 54 * FIFO + PREFETCH (both a/b-model) 75 * gives. [see cmd640.c for an extreme example of this. -ml] [all …]
|
| H A D | tc86c001.c | 3 * Copyright (C) 2005-2006 MontaVista Software, Inc. <source@mvista.com> 19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode() 20 u16 mode, scr = inw(scr_port); in tc86c001_set_mode() local 21 const u8 speed = drive->dma_mode; in tc86c001_set_mode() 24 case XFER_UDMA_4: mode = 0x00c0; break; in tc86c001_set_mode() 25 case XFER_UDMA_3: mode = 0x00b0; break; in tc86c001_set_mode() 26 case XFER_UDMA_2: mode = 0x00a0; break; in tc86c001_set_mode() 27 case XFER_UDMA_1: mode = 0x0090; break; in tc86c001_set_mode() 28 case XFER_UDMA_0: mode = 0x0080; break; in tc86c001_set_mode() 29 case XFER_MW_DMA_2: mode = 0x0070; break; in tc86c001_set_mode() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ata/ |
| H A D | pata_cs5520.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * PIO mode and smarter silicon. 11 * drive for the right PIO mode. We must also ignore all the blacklists 40 int recovery; member 52 * cs5520_set_timings - program PIO timings 56 * Program the PIO mode timings for the controller according to the pio 62 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in cs5520_set_timings() 63 int slave = adev->devno; in cs5520_set_timings() 65 pio -= XFER_PIO_0; in cs5520_set_timings() 68 pci_write_config_byte(pdev, 0x62 + ap->port_no, in cs5520_set_timings() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-raid.c | 2 * Copyright (C) 2010-2011 Neil Brown 3 * Copyright (C) 2010-2018 Red Hat, Inc. All rights reserved. 15 #include "md-bitmap.h" 17 #include <linux/device-mapper.h> 20 #define MAX_RAID_DEVICES 253 /* md-raid kernel limit */ 35 * The following flags are used by dm-raid.c to set up the array state. 44 * ti->len and give more flexibility in altering size and 50 * |--------- Physical Device ---------| 51 * |- meta_dev -|------ data_dev ------| 59 * Bits for establishing rs->ctr_flags [all …]
|