/openbmc/qemu/hw/block/ |
H A D | pflash_cfi01.c | 22 * For now, this code can emulate flashes of 1, 2 or 4 bytes width. 24 * - flash read 25 * - flash write 26 * - flash ID read 27 * - sector erase 28 * - CFI queries 42 #include "hw/qdev-properties.h" 43 #include "hw/qdev-properties-system.h" 44 #include "sysemu/block-backend.h" 46 #include "qemu/error-report.h" [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/mtd/ |
H A D | mtd-physmap.txt | 1 CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 6 - compatible : should contain the specific model of mtd chip(s) 7 used, if known, followed by either "cfi-flash", "jedec-flash", 8 "mtd-ram" or "mtd-rom". 9 - reg : Address range(s) of the mtd chip(s) 11 non-identical chips can be described in one node. 12 - bank-width : Width (in bytes) of the bank. Equal to the 13 device width times the number of interleaved chips. 14 - device-width : (optional) Width of a single mtd chip. If 15 omitted, assumed to be equal to 'bank-width'. [all …]
|
/openbmc/linux/include/linux/ |
H A D | clk-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2010-2011 Jeremy Kerr <jeremy.kerr@canonical.com> 4 * Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org> 14 * top-level framework. custom flags for dealing with hardware specifics 20 #define CLK_SET_PARENT_GATE BIT(1) /* must be gated across re-parent */ 26 #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ 31 /* parents need enable during gate/ungate, set rate and re-parent */ 42 * struct clk_rate_request - Structure encoding the clk constraints that 77 * struct clk_duty - Structure encoding the duty cycle ratio of a clock 88 * struct clk_ops - Callback operations for hardware clocks; these are to [all …]
|
/openbmc/linux/drivers/media/platform/st/sti/hva/ |
H A D | hva-v4l2.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <media/v4l2-event.h> 13 #include <media/v4l2-ioctl.h> 14 #include <media/videobuf2-dma-contig.h> 17 #include "hva-hw.h" 86 * of a stream is estimated to ((width x height x 3 / 2) / 2) in estimated_stream_size() 93 struct hva_frameinfo *frameinfo = &ctx->frameinfo; in set_default_params() 94 struct hva_streaminfo *streaminfo = &ctx->streaminfo; in set_default_params() 96 frameinfo->pixelformat = V4L2_PIX_FMT_NV12; in set_default_params() 97 frameinfo->width = HVA_DEFAULT_WIDTH; in set_default_params() [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/spi/ |
H A D | spi-bus.txt | 3 SPI busses can be described with a node for the SPI master device 10 - #address-cells - number of cells required to define a chip select 12 - #size-cells - should be zero. 13 - compatible - name of SPI bus controller following generic names 15 - cs-gpios - (optional) gpios chip select. 17 that a driver for an SPI bus device will understand that it is an SPI bus. 20 flexible and non-standardized, it is left out of this binding with the 26 - num-cs : total number of chipselects 28 If cs-gpios is used the number of chip select will automatically increased 29 with max(cs-gpios > hw cs) [all …]
|
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2010 - 2012 Samsung Electronics Co., Ltd. 21 #include <media/media-entity.h> 22 #include <media/videobuf2-v4l2.h> 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-mem2mem.h> 26 #include <media/v4l2-mediabus.h> 27 #include <media/drv-intf/exynos-fimc.h> 35 #define FIMC_DRIVER_NAME "exynos4-fimc" [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/exynos/ |
H A D | dwmmc.txt | 4 . Embedded Multimedia Cards (EMMC-version 4.5) 5 . Secure Digital memory (SD mem-version 2.0) 6 . Secure Digital I/O (SDIO-version 3.0) 7 . Consumer Electronics Advanced Transport Architecture (CE-ATA-version 1.1) 14 - compatible: should be 15 - samsung,exynos-dwmmc: for exynos platforms 17 - reg: physical base address of the controller and length of memory mapped 20 - interrupts: The interrupt number to the cpu. 24 - #address-cells: should be 1. 25 - #size-cells: should be 0. [all …]
|
/openbmc/obmc-ikvm/ |
H A D | ikvm_video.cpp | 16 #include <phosphor-logging/elog-errors.hpp> 17 #include <phosphor-logging/elog.hpp> 18 #include <phosphor-logging/log.hpp> 19 #include <xyz/openbmc_project/Common/Device/error.hpp> 31 using namespace sdbusplus::xyz::openbmc_project::Common::Device::Error; 34 resizeAfterOpen(false), timingsError(false), fd(-1), frameRate(fr), in Video() 35 lastFrameIndex(-1), height(600), width(800), subSampling(sub), input(input), in Video() 77 // Switch to non-blocking in order to safely dequeue all buffers; if the in getFrame() 79 // wait forever if signal is not re-acquired in getFrame() 171 if (timings.bt.width != width || timings.bt.height != height) in needsResize() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | ti-aemif.txt | 1 * Device tree bindings for Texas instruments AEMIF controller 4 provide a glue-less interface to a variety of asynchronous memory devices like 11 Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf 12 OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf 13 Kestone - http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf 17 - compatible: "ti,davinci-aemif" 18 "ti,keystone-aemif" 19 "ti,da850-aemif" 21 - reg: contains offset/length value for AEMIF control registers 24 - #address-cells: Must be 2. The partition number has to be encoded in the [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2008 - 2013 Xilinx, Inc. 45 * struct xgpio_instance - Stores information about GPIO device 54 * @irq: IRQ used by GPIO device 79 return bitmap_bitremap(bit, chip->hw_map, chip->sw_map, 64); in xgpio_from_bit() 84 return bitmap_bitremap(gpio, chip->sw_map, chip->hw_map, 64); in xgpio_to_bit() 112 return -EINVAL; in xgpio_regoffset() 118 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_read_ch() 125 void __iomem *addr = chip->regs + reg + xgpio_regoffset(chip, bit / 32); in xgpio_write_ch() 132 int bit, lastbit = xgpio_to_bit(chip, chip->gc.ngpio - 1); in xgpio_read_ch_all() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/ |
H A D | mtd-physmap.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mtd/mtd-physmap.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 10 - Rob Herring <robh@kernel.org> 17 - $ref: mtd.yaml# 18 - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 23 - items: 24 - enum: [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | fsldma.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved. 12 #include <linux/device.h> 108 u32 mr; /* 0x00 - Mode Register */ 109 u32 sr; /* 0x04 - Status Register */ 110 u64 cdar; /* 0x08 - Current descriptor address register */ 111 u64 sar; /* 0x10 - Source Address Register */ 112 u64 dar; /* 0x18 - Destination Address Register */ 113 u32 bcr; /* 0x20 - Byte Count Register */ 114 u64 ndar; /* 0x24 - Next Descriptor Address Register */ [all …]
|
/openbmc/linux/drivers/clk/ |
H A D | clk-divider.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org> 10 #include <linux/clk-provider.h> 11 #include <linux/device.h> 23 * prepare - clk_prepare only ensures that parents are prepared 24 * enable - clk_enable only ensures that parents are enabled 25 * rate - rate is adjustable. clk->rate = ceiling(parent->rate / divisor) 26 * parent - fixed parent. No clk_set_parent support 31 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_readl() 32 return ioread32be(divider->reg); in clk_div_readl() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ddr/ |
H A D | jedec,lpddr2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM compliant to JEDEC JESD209-2 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: jedec,lpddr-props.yaml# 18 - items: 19 - enum: 20 - elpida,ECB240ABACN [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | crop.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 6 Image Cropping, Insertion and Scaling -- the CROP API 12 <selection-api>`. The new API should be preferred in most cases, 15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a 34 device the source is the video signal, and the cropping ioctls determine 40 On a video output device the source are the images passed in by the 47 Source and target rectangles are defined even if the device does not 62 .. _crop-scale: 64 .. kernel-figure:: crop.svg 74 For capture devices the coordinates of the top left corner, width and [all …]
|
/openbmc/linux/drivers/media/usb/stk1160/ |
H A D | stk1160-v4l.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * <elezegarcia--a.t--gmail.com> 10 * <rmthomas--a.t--sciolus.org> 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-common.h> 21 #include <media/v4l2-ioctl.h> 22 #include <media/v4l2-fh.h> 23 #include <media/v4l2-event.h> 24 #include <media/videobuf2-vmalloc.h> 29 #include "stk1160-reg.h" [all …]
|
/openbmc/linux/samples/vfio-mdev/ |
H A D | mdpy-fb.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Framebuffer driver for mdpy (mediated virtual pci display device). 5 * See mdpy-defs.h for device specs 26 #include "mdpy-defs.h" 29 .id = "mdpy-fb", 36 .height = -1, 37 .width = -1, 61 u32 *pal = info->pseudo_palette; in mdpy_fb_setcolreg() 62 u32 cr = red >> (16 - info->var.red.length); in mdpy_fb_setcolreg() 63 u32 cg = green >> (16 - info->var.green.length); in mdpy_fb_setcolreg() [all …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 internal low-level v4l2 drivers. 18 #include <media/v4l2-dev.h> 20 /* Common printk constructs for v4l-i2c drivers. These macros create a unique 24 printk(level "%s %d-%04x: " fmt, name, i2c_adapter_id(adapter), addr , ## arg) 27 v4l_printk(level, (client)->dev.driver->name, (client)->adapter, \ 28 (client)->addr, fmt , ## arg) 54 /* ------------------------------------------------------------------------- */ 58 printk(level "%s: " fmt, (dev)->name , ## arg) 78 * v4l2_ctrl_query_fill- Fill in a struct v4l2_queryctrl [all …]
|
/openbmc/linux/drivers/accessibility/braille/ |
H A D | braille_console.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Minimalistic braille device kernel support. 5 * By default, shows console messages on the braille device. 8 * Copyright (C) Samuel Thibault <samuel.thibault@ens-lyon.org> 25 MODULE_AUTHOR("samuel.thibault@ens-lyon.org"); 26 MODULE_DESCRIPTION("braille device"); 29 * Braille device support part. 44 #define WIDTH 40 macro 46 static u16 console_buf[WIDTH]; 56 static int lastVC = -1; [all …]
|
/openbmc/linux/drivers/media/platform/nxp/ |
H A D | imx8mq-mipi-csi2.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * NXP i.MX8MQ SoC series MIPI-CSI2 receiver driver 9 #include <linux/clk-provider.h> 27 #include <media/v4l2-common.h> 28 #include <media/v4l2-device.h> 29 #include <media/v4l2-fwnode.h> 30 #include <media/v4l2-mc.h> 31 #include <media/v4l2-subdev.h> 33 #define MIPI_CSI2_DRIVER_NAME "imx8mq-mipi-csi2" 45 /* i.MX8MQ CSI-2 controller CSR */ [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_gop.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 * struct efi_gop_obj - graphical output protocol object 48 *size_of_info = sizeof(gopobj->info); in gop_query_mode() 49 *info = &gopobj->info; in gop_query_mode() 80 return (u16)(blt->red >> 3) << 11 | in efi_blt_col_to_vid16() 81 (u16)(blt->green >> 2) << 5 | in efi_blt_col_to_vid16() 82 (u16)(blt->blue >> 3); in efi_blt_col_to_vid16() 90 efi_uintn_t width, in gop_blt_int() argument 97 u32 *fb32 = gopobj->fb; in gop_blt_int() 98 u16 *fb16 = gopobj->fb; in gop_blt_int() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/misc/ |
H A D | xlnx,sd-fec.txt | 4 which provides high-throughput LDPC and Turbo Code implementations. 6 customer specified Quasi-cyclic (QC) codes. The Turbo decode functionality 12 - compatible: Must be "xlnx,sd-fec-1.1" 13 - clock-names : List of input clock names from the following: 14 - "core_clk", Main processing clock for processing core (required) 15 - "s_axi_aclk", AXI4-Lite memory-mapped slave interface clock (required) 16 - "s_axis_din_aclk", DIN AXI4-Stream Slave interface clock (optional) 17 - "s_axis_din_words-aclk", DIN_WORDS AXI4-Stream Slave interface clock (optional) 18 - "s_axis_ctrl_aclk", Control input AXI4-Stream Slave interface clock (optional) 19 - "m_axis_dout_aclk", DOUT AXI4-Stream Master interface clock (optional) [all …]
|
/openbmc/linux/drivers/media/platform/qcom/camss/ |
H A D | camss-vfe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * camss-vfe.c 5 * Qualcomm MSM Camera Subsystem - VFE (Video Front End) Module 7 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. 8 * Copyright (C) 2015-2018 Linaro Ltd. 20 #include <media/media-entity.h> 21 #include <media/v4l2-device.h> 22 #include <media/v4l2-subdev.h> 24 #include "camss-vfe.h" 127 * vfe_get_bpp - map media bus format to bits per pixel [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/ata/ |
H A D | cavium-compact-flash.txt | 3 The Cavium Compact Flash device is connected to the Octeon Boot Bus, 4 and is thus a child of the Boot Bus device. It can read and write 8 - compatible: "cavium,ebt3000-compact-flash"; 12 - reg: The base address of the CF chip select banks. Depending on 13 the device configuration, there may be one or two banks. 15 - cavium,bus-width: The width of the connection to the CF devices. Valid 18 - cavium,true-ide: Optional, if present the CF connection is in True IDE mode. 20 - cavium,dma-engine-handle: Optional, a phandle for the DMA Engine connected 21 to this device. 24 compact-flash@5,0 { [all …]
|
/openbmc/linux/arch/arm/include/asm/mach/ |
H A D | flash.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 * name: flash device name (eg, as used with mtdparts=) 16 * width: width of mapped device 17 * init: method called at driver/device initialisation 18 * exit: method called at driver/device removal 27 unsigned int width; member
|