| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra124/ |
| H A D | cpu.c | 5 * SPDX-License-Identifier: GPL-2.0+ 15 #include <asm/arch-tegra/clk_rst.h> 16 #include <asm/arch-tegra/pmc.h> 17 #include <asm/arch-tegra/ap.h> 20 /* Tegra124-specific CPU init code */ 28 /* un-tristate PWR_I2C SCL/SDA, rest of the defaults are correct */ in enable_cpu_power_rail() 35 * Set CPUPWRGOOD_TIMER - APB clock is 1/2 of SCLK (102MHz), in enable_cpu_power_rail() 38 writel(0x7C830, &pmc->pmc_cpupwrgood_timer); in enable_cpu_power_rail() 41 clrbits_le32(&pmc->pmc_cntrl, CPUPWRREQ_POL); in enable_cpu_power_rail() 42 setbits_le32(&pmc->pmc_cntrl, CPUPWRREQ_OE); in enable_cpu_power_rail() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/tegra/ |
| H A D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/arm/tegra/nvidia,tegra20-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra20-pmc 17 - nvidia,tegra20-pmc 18 - nvidia,tegra30-pmc 19 - nvidia,tegra114-pmc [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra/ |
| H A D | clock.h | 4 * SPDX-License-Identifier: GPL-2.0+ 12 /* Set of oscillator frequencies supported in the internal API. */ 30 * register. As such, the U-Boot clock driver is currently a bit lazy, and 40 #include <asm/arch/clock-tables.h> 44 /* return the current oscillator clock frequency */ 60 * @returns monotonic time in us that the PLL will be stable 72 * @return 0 if ok, -1 on error (invalid clock id or no suitable divider) 78 * Read low-level parameters of a PLL. 87 * @returns 0 if ok, -1 on error (invalid clock id) 119 * @param us_delay time to delay in microseconds [all …]
|
| /OK3568_Linux_fs/kernel/kernel/time/ |
| H A D | ntp.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * This code was mainly moved from kernel/timer.c and kernel/time.c 16 #include <linux/time.h> 49 * phase-lock loop variables 62 /* time adjustment (nsecs): */ 65 /* pll time constant: */ 77 /* time at last adjustment (secs): */ 82 /* constant (boot-param configurable) NTP tick adjustment (upscaled) */ 91 * The following variables are used when a pulse-per-second (PPS) signal 123 * Otherwise, reduce the offset by a fixed factor times the time constant. [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/ |
| H A D | clock.c | 2 * Copyright (c) 2010-2015, NVIDIA CORPORATION. All rights reserved. 4 * SPDX-License-Identifier: GPL-2.0 16 #include <asm/arch-tegra/ap.h> 17 #include <asm/arch-tegra/clk_rst.h> 18 #include <asm/arch-tegra/pmc.h> 19 #include <asm/arch-tegra/timer.h> 29 * The oscillator frequency is fixed to one of four set values. Based on this 67 reg = readl(&clkrst->crc_osc_ctrl); in clock_get_osc_bypass() 82 return &clkrst->crc_pll[clkid]; in get_pll() 101 return -1; in clock_ll_read_pll() [all …]
|
| H A D | cpu.c | 2 * Copyright (c) 2010-2015, NVIDIA CORPORATION. All rights reserved. 4 * SPDX-License-Identifier: GPL-2.0 13 #include <asm/arch-tegra/clk_rst.h> 14 #include <asm/arch-tegra/pmc.h> 15 #include <asm/arch-tegra/scu.h> 25 rev = (readl(&gp->hidrev) & HIDREV_CHIPID_MASK) >> HIDREV_CHIPID_SHIFT; in get_num_cpus() 42 * Timing tables for each SOC for all four oscillator options. 49 * ------------------------------ 67 * ------------------------------ 85 * ------------------------------ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/admin-guide/media/ |
| H A D | bttv.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ---------------------- 12 ./scripts/config -e PCI 13 ./scripts/config -m I2C 14 ./scripts/config -m INPUT 15 ./scripts/config -m MEDIA_SUPPORT 16 ./scripts/config -e MEDIA_PCI_SUPPORT 17 ./scripts/config -e MEDIA_ANALOG_TV_SUPPORT 18 ./scripts/config -e MEDIA_DIGITAL_TV_SUPPORT 19 ./scripts/config -e MEDIA_RADIO_SUPPORT [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/dsa/ |
| H A D | sja1105.rst | 10 - SJA1105E: First generation, no TTEthernet 11 - SJA1105T: First generation, TTEthernet 12 - SJA1105P: Second generation, no TTEthernet, no SGMII 13 - SJA1105Q: Second generation, TTEthernet, no SGMII 14 - SJA1105R: Second generation, no TTEthernet, SGMII 15 - SJA1105S: Second generation, TTEthernet, SGMII 17 These are SPI-managed automotive switches, with all ports being gigabit 21 set-and-forget use, with minimal dynamic interaction at runtime. They 56 Also the configuration is write-only (software cannot read it back from the 59 The driver creates a static configuration at probe time, and keeps it at [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/cardreader/ |
| H A D | rtsx_pcr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Driver for Realtek PCI-Express card reader 4 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 13 #include <linux/dma-mapping.h> 62 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm() 89 if (pcr->aspm_enabled == enable) in rtsx_comm_set_aspm() 92 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rtsx_comm_set_aspm() 94 enable ? pcr->aspm_en : 0); in rtsx_comm_set_aspm() 96 pcr->aspm_enabled = enable; in rtsx_comm_set_aspm() 101 if (pcr->ops->set_aspm) in rtsx_disable_aspm() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ehci-tegra.c | 3 * Copyright (c) 2009-2015 NVIDIA Corporation 6 * SPDX-License-Identifier: GPL-2.0+ 13 #include <asm-generic/gpio.h> 15 #include <asm/arch-tegra/usb.h> 16 #include <asm/arch-tegra/clk_rst.h> 44 PARAM_ENABLE_DELAY_COUNT, /* PLL-U Enable Delay Count */ 45 PARAM_STABLE_COUNT, /* PLL-U STABLE count */ 46 PARAM_ACTIVE_DELAY_COUNT, /* PLL-U Active delay count */ 47 PARAM_XTAL_FREQ_COUNT, /* PLL-U XTAL frequency count */ 88 * This table has USB timing parameters for each Oscillator frequency we [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/dec/tulip/ |
| H A D | de4x5.h | 16 #define DE4X5_BMR iobase+(0x000 << lp->bus) /* Bus Mode Register */ 17 #define DE4X5_TPD iobase+(0x008 << lp->bus) /* Transmit Poll Demand Reg */ 18 #define DE4X5_RPD iobase+(0x010 << lp->bus) /* Receive Poll Demand Reg */ 19 #define DE4X5_RRBA iobase+(0x018 << lp->bus) /* RX Ring Base Address Reg */ 20 #define DE4X5_TRBA iobase+(0x020 << lp->bus) /* TX Ring Base Address Reg */ 21 #define DE4X5_STS iobase+(0x028 << lp->bus) /* Status Register */ 22 #define DE4X5_OMR iobase+(0x030 << lp->bus) /* Operation Mode Register */ 23 #define DE4X5_IMR iobase+(0x038 << lp->bus) /* Interrupt Mask Register */ 24 #define DE4X5_MFC iobase+(0x040 << lp->bus) /* Missed Frame Counter */ 25 #define DE4X5_APROM iobase+(0x048 << lp->bus) /* Ethernet Address PROM */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/tegra/ |
| H A D | clk-pll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/clk-provider.h> 31 #define PLL_MISC_CPCON_MASK ((1 << PLL_MISC_CPCON_WIDTH) - 1) 34 #define PLL_MISC_LFCON_MASK ((1 << PLL_MISC_LFCON_WIDTH) - 1) 37 #define PLL_MISC_VCOCON_MASK ((1 << PLL_MISC_VCOCON_WIDTH) - 1) 230 #define pll_readl(offset, p) readl_relaxed(p->clk_base + offset) 231 #define pll_readl_base(p) pll_readl(p->params->base_reg, p) 232 #define pll_readl_misc(p) pll_readl(p->params->misc_reg, p) 233 #define pll_override_readl(offset, p) readl_relaxed(p->pmc + offset) 234 #define pll_readl_sdm_din(p) pll_readl(p->params->sdm_din_reg, p) [all …]
|
| H A D | clk-dfll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * clk-dfll.c - Tegra DFLL clock source common code 5 * Copyright (C) 2012-2019 NVIDIA Corporation. All rights reserved. 12 * "CL-DVFS". To try to avoid confusion, this code refers to them 18 * DFLL can be operated in either open-loop mode or closed-loop mode. 19 * In open-loop mode, the DFLL generates an output clock appropriate 20 * to the supply voltage. In closed-loop mode, when configured with a 26 * CPU cycle time will vary. This has implications for 27 * performance-measurement code and any code that relies on the CPU 28 * cycle time to delay for a certain length of time. [all …]
|
| H A D | clk-tegra210.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2014 NVIDIA CORPORATION. All rights reserved. 8 #include <linux/clk-provider.h> 17 #include <dt-bindings/clock/tegra210-car.h> 18 #include <dt-bindings/reset/tegra210-car.h> 23 #include "clk-id.h" 264 * SDM fractional divisor is 16-bit 2's complement signed number within 265 * (-2^12 ... 2^12-1) range. Represented in PLL data structure as unsigned 266 * 16-bit value, with "0" divisor mapped to 0xFFFF. Data "0" is used to 275 #define sdin_get_n_eff(cfg) ((cfg)->n * PLL_SDM_COEFF + ((cfg)->sdm_data ? \ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/drx39xyj/ |
| H A D | drx_driver.h | 2 Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc. 60 /*------------------------------------------------------------------------------ 62 ------------------------------------------------------------------------------*/ 69 * \retval -EIO Initialization failed. 78 * \retval -EIO Termination failed. 98 * \retval -EIO Failure. 99 * \retval -EINVAL Parameter 'wcount' is not zero but parameter 133 #define TUNER_MODE_SUB0 0x0001 /* for sub-mode (e.g. RF-AGC setting) */ 134 #define TUNER_MODE_SUB1 0x0002 /* for sub-mode (e.g. RF-AGC setting) */ 135 #define TUNER_MODE_SUB2 0x0004 /* for sub-mode (e.g. RF-AGC setting) */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2800.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 196 * Ring oscillator configuration 283 * AUX_CTRL: Aux/PCI-E related configuration 573 * HOST-MCU shared memory 773 * 0: 1-BSSID mode (BSS index = 0) 774 * 1: 2-BSSID mode (BSS index: Byte5, bit 0) 775 * 2: 4-BSSID mode (BSS index: byte5, bit 0 - 1) 776 * 3: 8-BSSID mode (BSS index: byte5, bit 0 - 2) 852 * ON_PERIOD: LED active time (ms) during TX (only used for LED mode 1) [all …]
|
| H A D | rt2800lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/crc-ccitt.h> 46 * between each attampt. When the busy bit is still set at that time, 86 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_bbp_write() 103 mutex_unlock(&rt2x00dev->csr_mutex); in rt2800_bbp_write() 111 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_bbp_read() 117 * returns the correct value, if at any time the register in rt2800_bbp_read() 118 * doesn't become available in time, reg will be 0xffffffff in rt2800_bbp_read() 135 mutex_unlock(&rt2x00dev->csr_mutex); in rt2800_bbp_read() 145 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_rfcsr_write() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/power/power_delivery/ |
| H A D | tcpm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2015-2017 Google, Inc 12 #include <irq-generic.h> 187 VDM_STATE_ERR_BUSY = -3, 188 VDM_STATE_ERR_SEND = -2, 189 VDM_STATE_ERR_TMOUT = -1, 217 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 372 * whether to wait for the Type-C device to send the DR_SWAP Message flag 373 * For Type-C device with Dual-Role Power and Dual-Role Data, the port side 374 * is used as sink + ufp, then the tcpm framework needs to wait for Type-C [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | sbchipc.h | 25 * <<Broadcom-WL-IPTag/Dual:>> 40 #define BCM_MASK32(msb, lsb) ((~0u >> (32u - (msb) - 1u)) & (~0u << (lsb))) 50 * be assigned their respective chipc-specific address space and connected to the Always On 133 uint32 PAD[3]; /* 0x754-0x75C */ 136 uint32 PAD[2]; /* 0x768-0x76C */ 137 uint32 extwakereqmask[2]; /* 0x770-0x774 */ 138 uint32 PAD[2]; /* 0x778-0x77C */ 254 /* gpio - cleared only by power-on-reset */ 482 uint32 PAD[2]; /* 0x768-0x76C */ 483 uint32 extwakereqmask[2]; /* 0x770-0x774 */ [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | sbchipc.h | 25 * <<Broadcom-WL-IPTag/Dual:>> 40 #define BCM_MASK32(msb, lsb) ((~0u >> (32u - (msb) - 1u)) & (~0u << (lsb))) 50 * be assigned their respective chipc-specific address space and connected to the Always On 133 uint32 PAD[3]; /* 0x754-0x75C */ 136 uint32 PAD[2]; /* 0x768-0x76C */ 137 uint32 extwakereqmask[2]; /* 0x770-0x774 */ 138 uint32 PAD[2]; /* 0x778-0x77C */ 254 /* gpio - cleared only by power-on-reset */ 482 uint32 PAD[2]; /* 0x768-0x76C */ 483 uint32 extwakereqmask[2]; /* 0x770-0x774 */ [all …]
|