/openbmc/linux/drivers/base/ |
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 20 #include <linux/dma-mapping.h> 28 #include <linux/clk/clk-conf.h> 34 #include <linux/dma-map-ops.h> 43 .init_name = "platform", 48 * platform_get_resource - get a resource for a device [all …]
|
/openbmc/linux/arch/sh/drivers/ |
H A D | platform_early.c | 1 // SPDX--License-Identifier: GPL-2.0 14 while (id->name[0]) { in platform_match_id() 15 if (strcmp(pdev->name, id->name) == 0) { in platform_match_id() 16 pdev->id_entry = id; in platform_match_id() 30 if (pdev->driver_override) in platform_match() 31 return !strcmp(pdev->driver_override, drv->name); in platform_match() 34 if (pdrv->id_table) in platform_match() 35 return platform_match_id(pdrv->id_table, pdev) != NULL; in platform_match() 37 /* fall-back to driver name match */ in platform_match() 38 return (strcmp(pdev->name, drv->name) == 0); in platform_match() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | kbl_da7219_max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #define KBL_DIALOG_CODEC_DAI "da7219-hifi" 24 #define MAX98927_CODEC_DAI "max98927-aif1" 25 #define MAX98927_DEV0_NAME "i2c-MX98927:00" 26 #define MAX98927_DEV1_NAME "i2c-MX98927:01" 28 #define MAX98373_CODEC_DAI "max98373-aif1" 29 #define MAX98373_DEV0_NAME "i2c-MX98373:00" 30 #define MAX98373_DEV1_NAME "i2c-MX98373:01" 66 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 67 struct snd_soc_card *card = dapm->card; in platform_clock_control() [all …]
|
H A D | sof_da7219_max98373.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <sound/soc-acpi.h> 19 #define DIALOG_CODEC_DAI "da7219-hifi" 20 #define MAX98373_CODEC_DAI "max98373-aif1" 21 #define MAXIM_DEV0_NAME "i2c-MX98373:00" 22 #define MAXIM_DEV1_NAME "i2c-MX98373:01" 39 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 40 struct snd_soc_card *card = dapm->card; in platform_clock_control() 46 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control() 47 return -EIO; in platform_clock_control() [all …]
|
H A D | kbl_rt5663_max98927.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <sound/soc-acpi.h> 24 #include <linux/clk-provider.h> 27 #define KBL_REALTEK_CODEC_DAI "rt5663-aif" 28 #define KBL_MAXIM_CODEC_DAI "max98927-aif1" 29 #define DMIC_CH(p) p->list[p->count-1] 30 #define MAXIM_DEV0_NAME "i2c-MX98927:00" 31 #define MAXIM_DEV1_NAME "i2c-MX98927:01" 72 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 73 struct snd_soc_card *card = dapm->card; in platform_clock_control() [all …]
|
H A D | bxt_rt298.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Intel Broxton-P I2S Machine Driver 5 * Copyright (C) 2014-2016, Intel Corporation. All rights reserved. 16 #include <sound/soc-acpi.h> 81 /* HP jack connectors - unknown if we have jack detect */ 91 {"HDMI1", NULL, "hif5-0 Output"}, 92 {"HDMI2", NULL, "hif6-0 Output"}, 93 {"HDMI2", NULL, "hif7-0 Output"}, 119 /* HP jack connectors - unknown if we have jack detect */ 129 {"HDMI1", NULL, "hif5-0 Output"}, [all …]
|
H A D | bxt_da7219_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Intel Broxton-P I2S Machine Driver 19 #include <sound/soc-acpi.h> 22 #include "../common/soc-intel-quirks.h" 25 #define BXT_DIALOG_CODEC_DAI "da7219-hifi" 27 #define MAX98390_DEV0_NAME "i2c-MX98390:00" 28 #define MAX98390_DEV1_NAME "i2c-MX98390:01" 65 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 66 struct snd_soc_card *card = dapm->card; in platform_clock_control() 71 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control() [all …]
|
H A D | glk_rt5682_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <sound/soc-acpi.h> 25 /* The platform clock outputs 19.2Mhz clock to codec as I2S MCLK */ 28 #define RT5682_DAI_NAME "rt5682-aif1" 29 #define RT5682S_DAI_NAME "rt5682s-aif1" 31 #define RT5682_DEV0_NAME "i2c-10EC5682:00" 32 #define RT5682S_DEV0_NAME "i2c-RTL5682:00" 93 /* HP jack connectors - unknown if we have jack detection */ 116 { "HDMI1", NULL, "hif5-0 Output" }, 117 { "HDMI2", NULL, "hif6-0 Output" }, [all …]
|
H A D | kbl_da7219_max98357a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright(c) 2017-18 Intel Corporation. 23 #define KBL_DIALOG_CODEC_DAI "da7219-hifi" 56 struct snd_soc_dapm_context *dapm = w->dapm; in platform_clock_control() 57 struct snd_soc_card *card = dapm->card; in platform_clock_control() 63 dev_err(card->dev, "Codec dai not found; Unable to set/unset codec pll\n"); in platform_clock_control() 64 return -EIO; in platform_clock_control() 71 dev_err(card->dev, "failed to stop PLL: %d\n", ret); in platform_clock_control() 76 dev_err(card->dev, "failed to start PLL: %d\n", ret); in platform_clock_control() 98 SND_SOC_DAPM_SUPPLY("Platform Clock", SND_SOC_NOPM, 0, 0, [all …]
|
H A D | skl_rt286.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2014-2015, Intel Corporation. All rights reserved. 81 /* HP jack connectors - unknown if we have jack deteck */ 115 struct snd_soc_component *component = asoc_rtd_to_cpu(rtd, 0)->component; in skylake_rt286_fe_init() 125 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component; in skylake_rt286_codec_init() 128 ret = snd_soc_card_jack_new_pins(rtd->card, "Headset", in skylake_rt286_codec_init() 138 snd_soc_dapm_ignore_suspend(&rtd->card->dapm, "SoC DMIC"); in skylake_rt286_codec_init() 145 struct skl_rt286_private *ctx = snd_soc_card_get_drvdata(rtd->card); in skylake_hdmi_init() 149 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi_init() 151 return -ENOMEM; in skylake_hdmi_init() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-platform | 1 What: /sys/bus/platform/devices/.../driver_override 6 will override standard OF, ACPI, ID table, and name matching. 7 When specified, only a driver with a name matching the value 10 to the driver_override file (echo vfio-platform > \ 16 driver with a matching name is currently loaded in the kernel, 18 devices to opt-out of driver binding using a driver_override 19 name such as "none". Only a single driver may be specified in 22 What: /sys/bus/platform/devices/.../numa_node 26 This file contains the NUMA node to which the platform device 32 What: /sys/bus/platform/devices/.../msi_irqs/ [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/swift/ |
H A D | config.yaml | 1 - name: fan0 4 - type: gpio 6 …physpath: /sys/devices/platform/ahb/1e780000.apb/1e780000.apb:bus@1e78a000/1e78a100.i2c/i2c-3/3-00… 7 devpath: /dev/input/by-path/platform-gpio-keys-polled-event 8 - type: tach 10 - fan0_0 14 - name: fan1 17 - type: gpio 19 …physpath: /sys/devices/platform/ahb/1e780000.apb/1e780000.apb:bus@1e78a000/1e78a100.i2c/i2c-3/3-00… 20 devpath: /dev/input/by-path/platform-gpio-keys-polled-event [all …]
|
/openbmc/linux/Documentation/driver-api/driver-model/ |
H A D | platform.rst | 2 Platform Devices and Drivers 6 platform bus: platform_device, and platform_driver. This pseudo-bus 8 like those used to integrate peripherals on many system-on-chip 13 Platform devices 15 Platform devices are devices that typically appear as autonomous 16 entities in the system. This includes legacy port-based devices and 18 into system-on-chip platforms. What they usually have in common 23 Platform devices are given a name, used in driver binding, and a 27 const char *name; 35 Platform drivers [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/ |
H A D | 0012-Platform-CS1000-Increase-BL2-partition-size.patch | 4 Subject: [PATCH] Platform: CS1000: Increase BL2 partition size 8 on Corstone-1000. The TF-M partition size has to be decreased for this. 12 Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> 13 Signed-off-by: Bence Balogh <bence.balogh@arm.com> 14 Upstream-Status: Backport [https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/30406] 15 --- 16 .../ext/target/arm/corstone1000/CMakeLists.txt | 9 ++++++--- 17 .../target/arm/corstone1000/create-flash-image.sh | 14 ++++++++------ 18 .../arm/corstone1000/partition/flash_layout.h | 4 ++-- 19 3 files changed, 16 insertions(+), 11 deletions(-) [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-m/ |
H A D | trusted-firmware-m-corstone1000.inc | 11 EXTRA_OECMAKE += "-DPLATFORM_IS_FVP=${TFM_PLATFORM_IS_FVP}" 12 EXTRA_OECMAKE += "-DCC312_LEGACY_DRIVER_API_ENABLED=OFF" 13 EXTRA_OECMAKE:append:corstone1000-fvp = " -DENABLE_MULTICORE=${@bb.utils.contains('MACHINE_FEATURES… 14 …RA_OECMAKE:append:corstone1000-mps3 = " -DPLATFORM_PSA_ADAC_SECURE_DEBUG=${@bb.utils.contains('MAC… 15 …:append:corstone1000-mps3 = " -DPLATFORM_PSA_ADAC_SOURCE_PATH=${S}/../tfm-psa-adac -DPLATFORM_PSA_… 18 file://0001-arm-trusted-firmware-m-disable-address-warnings-into.patch \ 23 file://0001-Platform-Corstone1000-Align-capsule-UEFI-structs.patch \ 24 file://0002-Platform-Corstone1000-Fix-NV-counter-writing.patch \ 25 file://0003-Platform-Corstone1000-Enable-firewall-in-FVP.patch \ 26 file://0004-Platform-CS1000-Increase-ITS-max-asset-size.patch \ [all …]
|
/openbmc/bmcweb/redfish-core/schema/oem/openbmc/csdl/ |
H A D | OpenBMCComputerSystem_v1.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0"> 3 …<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabular… 19 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OpenBMCComputerSystem"> 28 … <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OpenBMCComputerSystem.v1_0_0"> 29 <ComplexType Name="Oem" BaseType="Resource.OemObject"> 33 <Property Name="OpenBmc" Type="OpenBMCComputerSystem.OpenBmc"/> 35 <ComplexType Name="OpenBmc" BaseType="Resource.OemObject"> 42 <PropertyValue Property="Pattern" String="[A-Za-z0-9_.:]+"/> 48 <ComplexType Name="FirmwareProvisioning" BaseType="Resource.OemObject"> [all …]
|
/openbmc/linux/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. 15 #define PLATFORM_DEVID_NONE (-1) 16 #define PLATFORM_DEVID_AUTO (-2) 24 const char *name; member 35 * Driver name to force a match. Do not set directly, because core 47 #define platform_get_device_id(pdev) ((pdev)->id_entry) 49 #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type) [all …]
|
/openbmc/linux/sound/soc/amd/acp/ |
H A D | acp-legacy-mach.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 17 #include <sound/soc-acpi.h> 18 #include <sound/soc-dapm.h> 22 #include "acp-mach.h" 62 .platform = REMBRANDT, 74 .platform = REMBRANDT, 81 struct device *dev = &pdev->dev; in acp_asoc_probe() 86 if (!pdev->id_entry) in acp_asoc_probe() 87 return -EINVAL; in acp_asoc_probe() 91 return -ENOMEM; in acp_asoc_probe() [all …]
|
H A D | acp-sof-mach.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 17 #include <sound/soc-acpi.h> 18 #include <sound/soc-dapm.h> 22 #include "acp-mach.h" 100 struct device *dev = &pdev->dev; in acp_sof_probe() 105 if (!pdev->id_entry) in acp_sof_probe() 106 return -EINVAL; in acp_sof_probe() 110 return -ENOMEM; in acp_sof_probe() 112 card->dev = dev; in acp_sof_probe() 113 card->owner = THIS_MODULE; in acp_sof_probe() [all …]
|
/openbmc/linux/sound/soc/qcom/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/input-event-codes.h> 20 struct device_node *platform = NULL; in qcom_snd_parse_of() local 22 struct device *dev = card->dev; in qcom_snd_parse_of() 29 if (ret == 0 && !card->name) in qcom_snd_parse_of() 33 dev_err(dev, "Error parsing card name: %d\n", ret); in qcom_snd_parse_of() 37 if (of_property_read_bool(dev->of_node, "widgets")) { in qcom_snd_parse_of() 44 if (of_property_read_bool(dev->of_node, "audio-routing")) { in qcom_snd_parse_of() 45 ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); in qcom_snd_parse_of() 50 if (of_property_read_bool(dev->of_node, "qcom,audio-routing")) { in qcom_snd_parse_of() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | device_callouts_test.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 17 #include "extensions/openpower-pels/device_callouts.hpp" 18 #include "extensions/openpower-pels/paths.hpp" 38 // "FSI-I2C": 44 // "FSI-SPI": 59 "Name": "/chassis/motherboard/cpu0", 60 "LocationCode": "P1-C19", 64 "Dest": "proc-0 target" 70 "Name": "/chassis/motherboard/cpu0", 71 "LocationCode": "P1-C19", [all …]
|
/openbmc/linux/drivers/firmware/ |
H A D | sysfb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com> 8 * Simple-Framebuffer support 9 * Create a platform-device for any available boot framebuffer. The 10 * simple-framebuffer platform device is already available on DT systems, so 12 * platform device compatible with the "simple-framebuffer" DT object. If 14 * "vesa-framebuffer", "efi-framebuffer" or "platform-framebuffer" device and 16 * to pick these devices up without messing with simple-framebuffer drivers. 19 * If CONFIG_SYSFB_SIMPLEFB is not selected, never register "simple-framebuffer" 20 * platform devices, but only use legacy framebuffer devices for [all …]
|
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier2U/ |
H A D | config.json | 3 "name": "fan0", string 9 "physpath": "/sys/bus/i2c/devices/7-0061", 10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" 22 "name": "fan1", string 28 "physpath": "/sys/bus/i2c/devices/7-0061", 29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" 41 "name": "fan2", string 47 "physpath": "/sys/bus/i2c/devices/7-0061", 48 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" 60 "name": "fan3", string [all …]
|
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier4U/ |
H A D | config.json | 3 "name": "fan0", string 9 "physpath": "/sys/bus/i2c/devices/7-0061", 10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" 22 "name": "fan1", string 28 "physpath": "/sys/bus/i2c/devices/7-0061", 29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" 41 "name": "fan2", string 47 "physpath": "/sys/bus/i2c/devices/7-0061", 48 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" 60 "name": "fan3", string [all …]
|