| /OK3568_Linux_fs/kernel/drivers/base/ |
| H A D | platform-msi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MSI framework for platform devices 17 #define MAX_DEV_MSIS (1 << (32 - DEV_ID_SHIFT)) 20 * Internal data structure containing a (made up, but unique) devid 36 * Convert an msi_desc to a globaly unique identifier (per-device 43 devid = desc->platform.msi_priv_data->devid; in platform_msi_calc_hwirq() 45 return (devid << (32 - DEV_ID_SHIFT)) | desc->platform.msi_index; in platform_msi_calc_hwirq() 50 arg->desc = desc; in platform_msi_set_desc() 51 arg->hwirq = platform_msi_calc_hwirq(desc); in platform_msi_set_desc() 60 info->chip, info->chip_data); in platform_msi_init() [all …]
|
| H A D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * platform.c - platform 'pseudo' bus for legacy devices 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 8 * Please see Documentation/driver-api/driver-model/platform.rst for more 18 #include <linux/dma-mapping.h> 26 #include <linux/clk/clk-conf.h> 39 .init_name = "platform", 44 * platform_get_resource - get a resource for a device 45 * @dev: platform device [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/mtk-vpu/ |
| H A D | mtk_vpu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Author: Andrew-CT Chen <andrew-ct.chen@mediatek.com> 18 typedef void (*ipi_handler_t) (const void *data, 23 * enum ipi_id - the id of inter-processor interrupt 49 * handle MDP (Media Data Path) job, and vice versa. 65 * enum rst_id - reset id to register reset function for VPU watchdog timeout 69 * @VPU_RST_MDP: MDP (Media Data Path) reset id 80 * vpu_ipi_register - register an ipi function 82 * @pdev: VPU platform device 86 * @priv: private data for IPI handler [all …]
|
| /OK3568_Linux_fs/kernel/drivers/fpga/ |
| H A D | dfl-fme-pr.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2017-2018 Intel Corporation, Inc. 24 * struct dfl_fme_region - FME fpga region data structure 26 * @region: platform device of the FPGA region. 37 * struct dfl_fme_region_pdata - platform data for FME region platform device. 39 * @mgr: platform device of the FPGA manager. 40 * @br: platform device of the FPGA bridge. 50 * struct dfl_fme_bridge - FME fpga bridge data structure 52 * @br: platform device of the FPGA bridge. 61 * struct dfl_fme_bridge_pdata - platform data for FME bridge platform device. [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-s3c/ |
| H A D | sdhci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * S3C Platform - SDHCI (HSMMC) platform data definitions 17 #include <linux/platform_data/mmc-sdhci-s3c.h> 20 /* s3c_sdhci_set_platdata() - common helper for setting SDHCI platform data 21 * @pd: The default platform data for this device. 22 * @set: Pointer to the platform data to fill in. 28 * s3c_sdhci0_set_platdata - Set platform data for S3C SDHCI device. 29 * @pd: Platform data to register to device. 31 * Register the given platform data for use withe S3C SDHCI device. 32 * The call will copy the platform data, so the board definitions can [all …]
|
| H A D | keypad.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Samsung Platform - Keypad platform data definitions 12 #include <linux/input/samsung-keypad.h> 15 * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device. 16 * @pd: Platform data to register to device. 18 * Register the given platform data for use with Samsung Keypad device. 19 * The call will copy the platform data, so the board definitions can
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | platform_device.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * platform_device.h - generic, centralized driver model 5 * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> 7 * See Documentation/driver-api/driver-model/ for more information. 16 #define PLATFORM_DEVID_NONE (-1) 17 #define PLATFORM_DEVID_AUTO (-2) 46 #define platform_get_device_id(pdev) ((pdev)->id_entry) 48 #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type) 96 const void *data; member 108 * platform_device_register_resndata - add a platform-level device with [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/device_drivers/ethernet/davicom/ |
| H A D | dm9000.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 Ben Dooks <ben@simtec.co.uk> <ben-linux@fluff.org> 13 ------------ 15 This file describes how to use the DM9000 platform-device based network driver 24 Defining the platform device 25 ---------------------------- 27 The minimum set of resources attached to the platform device are as follows: 30 2) The physical address of the data register 35 and then data). 37 An example from arch/arm/mach-s3c2410/mach-bast.c is:: [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-hdmi-qp-i2s-audio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * dw-hdmi-qp-i2s-audio.c 6 * Author: Sugar Zhang <sugar.zhang@rock-chips.com> 9 #include <linux/dma-mapping.h> 15 #include <sound/hdmi-codec.h> 17 #include "dw-hdmi-qp.h" 18 #include "dw-hdmi-qp-audio.h" 20 #define DRIVER_NAME "dw-hdmi-qp-i2s-audio" 25 struct dw_hdmi_qp *hdmi = audio->hdmi; in hdmi_write() 27 audio->write(hdmi, val, offset); in hdmi_write() [all …]
|
| H A D | dw-hdmi-i2s-audio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * dw-hdmi-i2s-audio.c 9 #include <linux/dma-mapping.h> 15 #include <sound/hdmi-codec.h> 17 #include "dw-hdmi.h" 18 #include "dw-hdmi-audio.h" 20 #define DRIVER_NAME "dw-hdmi-i2s-audio" 25 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_write() 27 audio->write(hdmi, val, offset); in hdmi_write() 32 struct dw_hdmi *hdmi = audio->hdmi; in hdmi_read() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/platform_data/ |
| H A D | brcmfmac.h | 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 27 * Platform specific driver functions and data. Through the platform specific 28 * device data functions and data can be provided to help the brcmfmac driver to 29 * operate with the device in combination with the used platform. 34 * Note: the brcmfmac can be loaded as module or be statically built-in into 35 * the kernel. If built-in then do note that it uses module_init (and 37 * create a module with the platform specific data for the brcmfmac and have 38 * it built-in to the kernel then use a higher initcall then device_initcall 40 * but will not pickup the platform data. 42 * When the driver does not "detect" platform driver data then it will continue [all …]
|
| H A D | i2c-s3c2410.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright 2004-2009 Simtec Electronics 6 * S3C - I2C Controller platform_device info 17 * struct s3c2410_platform_i2c - Platform data for s3c I2C. 39 * s3c_i2c0_set_platdata - set platform data for i2c0 device 40 * @i2c: The platform data to set, or NULL for default data. 42 * Register the given platform data for use with the i2c0 device. This 43 * call copies the platform data, so the caller can use __initdata for 46 * This call will set cfg_gpio if is null to the default platform 50 * NULL to ensure that the device is given the default platform data
|
| H A D | hwmon-s3c.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * S3C - HWMon interface for ADC 14 * s3c_hwmon_chcfg - channel configuration 29 * s3c_hwmon_pdata - HWMON platform data 37 * s3c_hwmon_set_platdata - Set platform data for S3C HWMON device 38 * @pd: Platform data to register to device. 40 * Register the given platform data for use with the S3C HWMON device. 41 * The call will copy the platform data, so the board definitions can
|
| /OK3568_Linux_fs/u-boot/doc/driver-model/ |
| H A D | of-plat.txt | 1 Driver Model Compiled-in Device Tree / Platform Data 6 ------------ 8 Device tree is the standard configuration method in U-Boot. It is used to 12 The overhead of adding device tree access to U-Boot is fairly modest, 16 However there are some very constrained environments where U-Boot needs to 21 It is possible to create platform data manually by defining C structures 22 for it, and reference that data in a U_BOOT_DEVICE() declaration. This 26 As an alternative, a new 'of-platdata' feature is provided. This converts the 29 to more efficient storage of the data. 37 ------- [all …]
|
| H A D | README.txt | 4 This README contains high-level information about driver model, a unified 5 way of declaring and accessing drivers in U-Boot. The original work was done 20 ----------- 22 Uclass - a group of devices which operate in the same way. A uclass provides 28 Driver - some code which talks to a peripheral and presents a higher-level 31 Device - an instance of a driver, tied to a particular port or peripheral. 35 ------------- 37 Build U-Boot sandbox and run it: 41 ./u-boot -d u-boot.dtb 43 (type 'reset' to exit U-Boot) [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/backlight/ |
| H A D | lp855x-driver.rst | 15 ----------- 36 Platform data for lp855x 37 ------------------------ 39 For supporting platform specific data, the lp855x platform data can be used. 48 Platform specific PWM period value. unit is nano. 58 1) lp8552 platform data: i2c register mode with new eeprom data:: 68 .name = "lcd-bl", 75 2) lp8556 platform data: pwm input mode with default rom data::
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H A D | pmac_pfunc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 * Arguments to a platform function call. 41 * returns an instance data to be passed around subsequent calls, and 43 * locking policy or per-function instance data. 81 int (*write_i2c)(PMF_STD_ARGS, u32 len, const u8 *data); 86 int (*write_cfg)(PMF_STD_ARGS, u32 offset, u32 len, const u8 *data); 91 int (*write_i2c_sub)(PMF_STD_ARGS, u8 subaddr, u32 len, const u8 *data); 116 * Drivers who expose platform functions register at init time, this 117 * causes the platform functions for that device node to be parsed in 118 * advance and associated with the device. The data structures are [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/platform/rk/ |
| H A D | mali_kbase_config_rk.c | 30 #include <linux/nvmem-consumer.h> 48 * 依赖 platform 部分, 49 * 源码在 <mdd_src_dir>/platform/<platform_name>/ 59 /*---------------------------------------------------------------------------*/ 90 /*---------------------------------------------------------------------------*/ 94 struct rk_context *platform = in rk_pm_power_off_delay_work() local 96 struct kbase_device *kbdev = platform->kbdev; in rk_pm_power_off_delay_work() 98 mutex_lock(&platform->lock); in rk_pm_power_off_delay_work() 100 if (!platform->is_powered) { in rk_pm_power_off_delay_work() 102 mutex_unlock(&platform->lock); in rk_pm_power_off_delay_work() [all …]
|
| /OK3568_Linux_fs/u-boot/dts/ |
| H A D | Kconfig | 26 bool "Run-time configuration via Device Tree" 29 This feature provides for run-time configuration of U-Boot 33 bool "Board-specific manipulation of Device Tree" 36 U-Boot's device tree (e.g. to delete device from it). This option 37 make the Device Tree writeable and provides a board-specific 38 "board_fix_fdt" callback (called during pre-relocation time), which 40 modified copy is subsequently used by U-Boot after relocation. 43 bool "Enable run-time configuration via Device Tree in SPL" 46 Some boards use device tree in U-Boot but only have 4KB of SRAM 48 allow such boards to be supported by U-Boot SPL. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/powerpc/ |
| H A D | bootwrapper.rst | 17 others. U-Boot is typically found on embedded PowerPC hardware, but there 28 U-Boot (for versions that don't understand the device 31 are all embedded inside the U-Boot uImage file format 32 with boot wrapper code that extracts data from the old 33 bd_info structure and loads the data into the device 37 bd_info structure used in the old U-Boot interfaces, 38 cuImages are platform specific. Each specific 39 U-Boot platform has a different platform init file 40 which populates the embedded device tree with data 41 from the platform specific bd_info file. The platform [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/usb/ |
| H A D | writing_musb_glue_layer.rst | 15 Instead, these embedded UDC rely on the USB On-the-Go (OTG) 18 Dual-Role Controller (MUSB HDRC) found in the Mentor Graphics Inventra™ 21 As a self-taught exercise I have written an MUSB glue layer for the 28 .. _musb-basics: 33 To get started on the topic, please read USB On-the-Go Basics (see 46 ------------------------ 47 | | <------- drivers/usb/gadget 48 | Linux USB Core Stack | <------- drivers/usb/host 49 | | <------- drivers/usb/core 50 ------------------------ [all …]
|
| /OK3568_Linux_fs/kernel/security/integrity/platform_certs/ |
| H A D | platform_keyring.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Platform keyring for firmware/platform keys 18 * add_to_platform_keyring - Add to platform keyring without validation. 20 * @data: The blob holding the key 21 * @len: The length of the data blob 23 * Add a key to the platform keyring without checking its trust chain. This 26 void __init add_to_platform_keyring(const char *source, const void *data, in add_to_platform_keyring() argument 34 rc = integrity_load_cert(INTEGRITY_KEYRING_PLATFORM, source, data, len, in add_to_platform_keyring() 37 pr_info("Error adding keys to platform keyring %s\n", source); in add_to_platform_keyring() 51 pr_notice("Platform Keyring initialized\n"); in platform_keyring_init()
|
| /OK3568_Linux_fs/kernel/drivers/usb/renesas_usbhs/ |
| H A D | common.c | 1 // SPDX-License-Identifier: GPL-1.0+ 33 * +-------+ +-----------+ 34 * | pipe0 |------>| fifo pio | 35 * +------------+ +-------+ +-----------+ 36 * | mod_gadget |=====> | pipe1 |--+ 37 * +------------+ +-------+ | +-----------+ 38 * | pipe2 | | +-| fifo dma0 | 39 * +------------+ +-------+ | | +-----------+ 40 * | mod_host | | pipe3 |<-|--+ 41 * +------------+ +-------+ | +-----------+ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | musb_io.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (C) 2005-2006 by Texas Instruments 7 * Copyright (C) 2006-2007 Nokia Corporation 15 #define musb_ep_select(_mbase, _epnum) musb->io.ep_select((_mbase), (_epnum)) 18 * struct musb_io - IO functions for MUSB 19 * @ep_offset: platform specific function to get end point offset 20 * @ep_select: platform specific function to select end point 21 * @fifo_offset: platform specific function to get fifo offset 22 * @read_fifo: platform specific function to read fifo 23 * @write_fifo: platform specific function to write fifo [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-driver-ufs | 3 Contact: linux-scsi@vger.kernel.org 5 This file contains the auto-hibernate idle timer setting of a 6 UFS host controller. A value of '0' means auto-hibernate is not 11 10-bit values with a power-of-ten multiplier which allows a 15 What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_type 24 What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_class 33 What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/device_sub_class 42 What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/protocol 52 What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_luns 61 What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/number_of_wluns [all …]
|