Home
last modified time | relevance | path

Searched +full:libfdt +full:- +full:dev (Results 1 – 25 of 150) sorted by relevance

123456

/openbmc/qemu/
H A D.travis.yml5 - gcc
9 # - OS name (currently only linux)
10 # - OS distribution (e.g. "jammy" for Linux)
11 # - Names and values of visible environment variables set in .travis.yml or Settings panel
19 # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
23- secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1K…
30 - SRC_DIR=".."
31 - BUILD_DIR="build"
32 - BASE_CONFIG="--disable-docs --disable-tools"
33 - TEST_BUILD_CMD=""
[all …]
/openbmc/u-boot/doc/driver-model/
H A Dof-plat.txt1 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
26 As an alternative, a new 'of-platdata' feature is provided. This converts the
37 -------
42 - Device tree does not describe data types. But the C code must define a
44 are wrong in several fairly common cases. For example an 8-byte value
45 is considered to be a 2-item integer array, and is byte-swapped. A
[all …]
H A Dlivetree.txt6 ------------
8 Traditionally U-Boot has used a 'flat' device tree. This means that it
13 This document describes U-Boot's support for a 'live' device tree, meaning
14 that the tree is loaded into a hierarchical data structure within U-Boot.
18 ----------
22 - it is the format produced by the device tree compiler, so no translation
25 - it is fairly compact (e.g. there is no need for pointers)
27 - it is accessed by the libfdt library, which is well tested and stable
38 Driver model scans the entire device tree sequentially on start-up which
40 modified at run-time, a live tree is much faster. Even if no modification
[all …]
/openbmc/u-boot/tools/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2000-2006
6 # Enable all the config-independent tools
18 subdir-$(HOST_TOOLS_ALL) += easylogo
19 subdir-$(HOST_TOOLS_ALL) += gdb
22 ENVCRC-$(CONFIG_ENV_IS_EMBEDDED) = y
23 ENVCRC-$(CONFIG_ENV_IS_IN_EEPROM) = y
24 ENVCRC-$(CONFIG_ENV_IS_IN_FLASH) = y
25 ENVCRC-$(CONFIG_ENV_IS_IN_ONENAND) = y
26 ENVCRC-$(CONFIG_ENV_IS_IN_NAND) = y
[all …]
/openbmc/u-boot/drivers/pci/
H A Dpci-emul-uclass.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/libfdt.h>
21 struct udevice *dev; in sandbox_pci_get_emul() local
25 ret = pci_bus_find_devfn(bus, PCI_MASK_BUS(find_devfn), &dev); in sandbox_pci_get_emul()
27 debug("%s: Could not find emulator for dev %x\n", __func__, in sandbox_pci_get_emul()
31 *containerp = dev; in sandbox_pci_get_emul()
33 if (device_get_uclass_id(dev) == UCLASS_PCI_GENERIC) { in sandbox_pci_get_emul()
34 ret = device_find_first_child(dev, emulp); in sandbox_pci_get_emul()
38 *emulp = dev; in sandbox_pci_get_emul()
41 return *emulp ? 0 : -ENODEV; in sandbox_pci_get_emul()
[all …]
/openbmc/u-boot/drivers/power/pmic/
H A Drn5t567.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <linux/libfdt.h>
15 static int rn5t567_reg_count(struct udevice *dev) in rn5t567_reg_count() argument
20 static int rn5t567_write(struct udevice *dev, uint reg, const uint8_t *buff, in rn5t567_write() argument
25 ret = dm_i2c_write(dev, reg, buff, len); in rn5t567_write()
27 debug("write error to device: %p register: %#x!\n", dev, reg); in rn5t567_write()
34 static int rn5t567_read(struct udevice *dev, uint reg, uint8_t *buff, int len) in rn5t567_read() argument
38 ret = dm_i2c_read(dev, reg, buff, len); in rn5t567_read()
40 debug("read error from device: %p register: %#x!\n", dev, reg); in rn5t567_read()
H A Dact8846.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <linux/libfdt.h>
20 static int act8846_reg_count(struct udevice *dev) in act8846_reg_count() argument
25 static int act8846_write(struct udevice *dev, uint reg, const uint8_t *buff, in act8846_write() argument
28 if (dm_i2c_write(dev, reg, buff, len)) { in act8846_write()
29 debug("write error to device: %p register: %#x!\n", dev, reg); in act8846_write()
30 return -EIO; in act8846_write()
36 static int act8846_read(struct udevice *dev, uint reg, uint8_t *buff, int len) in act8846_read() argument
38 if (dm_i2c_read(dev, reg, buff, len)) { in act8846_read()
39 debug("read error from device: %p register: %#x!\n", dev, reg); in act8846_read()
[all …]
/openbmc/qemu/scripts/ci/setup/ubuntu/
H A Dubuntu-2204-aarch64.yaml1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool variables --host-arch aarch64 ubuntu-2204 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
8 - bash
9 - bc
10 - bison
11 - bsdextrautils
12 - bzip2
13 - ca-certificates
14 - ccache
[all …]
H A Dubuntu-2204-s390x.yaml1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool variables --host-arch s390x ubuntu-2204 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
8 - bash
9 - bc
10 - bison
11 - bsdextrautils
12 - bzip2
13 - ca-certificates
14 - ccache
[all …]
H A Dubuntu-2204-armhf-cross.yml1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool variables --cross-arch armv7l ubuntu-2204 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
8 - bash
9 - bc
10 - bison
11 - bsdextrautils
12 - bzip2
13 - ca-certificates
14 - ccache
[all …]
/openbmc/u-boot/common/
H A Dlcd_simplefb.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/libfdt.h>
27 struct udevice *dev; in lcd_dt_simplefb_configure_node() local
30 ret = uclass_first_device_err(UCLASS_VIDEO, &dev); in lcd_dt_simplefb_configure_node()
33 uc_priv = dev_get_uclass_priv(dev); in lcd_dt_simplefb_configure_node()
34 plat = dev_get_uclass_platdata(dev); in lcd_dt_simplefb_configure_node()
35 xsize = uc_priv->xsize; in lcd_dt_simplefb_configure_node()
36 ysize = uc_priv->ysize; in lcd_dt_simplefb_configure_node()
37 bpix = uc_priv->bpix; in lcd_dt_simplefb_configure_node()
38 fb_base = plat->base; in lcd_dt_simplefb_configure_node()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Drockchip_sdhci.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <dt-structs.h>
11 #include <linux/libfdt.h>
33 static int arasan_sdhci_probe(struct udevice *dev) in arasan_sdhci_probe() argument
35 struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev); in arasan_sdhci_probe()
36 struct rockchip_sdhc_plat *plat = dev_get_platdata(dev); in arasan_sdhci_probe()
37 struct rockchip_sdhc *prv = dev_get_priv(dev); in arasan_sdhci_probe()
38 struct sdhci_host *host = &prv->host; in arasan_sdhci_probe()
43 struct dtd_rockchip_rk3399_sdhci_5_1 *dtplat = &plat->dtplat; in arasan_sdhci_probe()
45 host->name = dev->name; in arasan_sdhci_probe()
[all …]
H A Daspeed_sdhci.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <dt-structs.h>
11 #include <linux/libfdt.h>
31 static int aspeed_sdhci_probe(struct udevice *dev) in aspeed_sdhci_probe() argument
33 struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev); in aspeed_sdhci_probe()
34 struct aspeed_sdhci_plat *plat = dev_get_platdata(dev); in aspeed_sdhci_probe()
35 struct aspeed_sdhci_priv *prv = dev_get_priv(dev); in aspeed_sdhci_probe()
36 struct sdhci_host *host = prv->host; in aspeed_sdhci_probe()
42 int node = dev_of_offset(dev); in aspeed_sdhci_probe()
45 ret = clk_get_by_index(dev, 0, &clk); in aspeed_sdhci_probe()
[all …]
/openbmc/qemu/tests/docker/dockerfiles/
H A Dubuntu2204.docker1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all ubuntu-2204 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
10 apt-get update && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
19 ca-certificates \
25 exuberant-ctags \
33 libaio-dev \
[all …]
H A Ddebian.docker1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all debian-12 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:12-slim
10 apt-get update && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
20 ca-certificates \
26 exuberant-ctags \
[all …]
H A Ddebian-riscv64-cross.docker1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all --cross-arch riscv64 debian-sid qemu-minimal
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:sid-slim
10 apt-get update && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
17 ca-certificates \
23 libglib2.0-dev \
[all …]
/openbmc/qemu/pc-bios/
HDu-boot.e500 ... --------------------- ...
/openbmc/qemu/tests/vm/
H A Dubuntu.aarch6412 # the COPYING file in the top-level directory.
21 'cpu' : "cortex-a57",
22 'machine' : "virt,gic-version=3",
23 'install_cmds' : "apt-get update,"\
24 "apt-get build-dep -y --arch-only qemu,"\
25 "apt-get install -y libfdt-dev pkg-config language-pack-en ninja-build",
39 image_name = "focal-server-cloudimg-arm64.img"
40 image_link = "https://cloud-images.ubuntu.com/focal/20220615/" + image_name
43 set -e;
44 cd $(mktemp -d);
[all …]
/openbmc/u-boot/drivers/usb/phy/
H A Drockchip_usb2_phy.c1 // SPDX-License-Identifier: GPL-2.0+
8 #include <linux/libfdt.h>
25 * struct rockchip_usb2_phy_cfg: usb-phy port configuration
26 * @port_reset: usb otg per-port reset register
48 { .compatible = "rockchip,rk3288-usb-phy", .data = &rk3288_pdata },
57 tmp = en ? reg->enable : reg->disable; in property_enable()
58 mask = GENMASK(reg->bitend, reg->bitstart); in property_enable()
59 val = (tmp << reg->bitstart) | (mask << BIT_WRITEABLE_SHIFT); in property_enable()
61 writel(val, pdata->regs_phy + reg->offset); in property_enable()
65 void otg_phy_init(struct dwc2_udc *dev) in otg_phy_init() argument
[all …]
/openbmc/qemu/tests/lcitool/projects/
H A Dqemu.yml1 ---
3 - alsa
4 - bash
5 - bc
6 - bindgen
7 - bison
8 - brlapi
9 - bzip2
10 - bzip2-libs
11 - capstone
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dsgmii_riser.c18 #include <linux/libfdt.h>
33 struct eth_device *dev; in fsl_sgmii_riser_fdt_fixup() local
36 int i = -1; in fsl_sgmii_riser_fdt_fixup()
43 while ((dev = eth_get_dev_by_index(++i)) != NULL) { in fsl_sgmii_riser_fdt_fixup()
54 if (!strstr(dev->name, "eTSEC")) in fsl_sgmii_riser_fdt_fixup()
57 priv = dev->priv; in fsl_sgmii_riser_fdt_fixup()
58 if (!(priv->flags & TSEC_SGMII)) { in fsl_sgmii_riser_fdt_fixup()
63 mdio_node = fdt_node_offset_by_compatible(fdt, -1, in fsl_sgmii_riser_fdt_fixup()
64 "fsl,gianfar-mdio"); in fsl_sgmii_riser_fdt_fixup()
68 sprintf(sgmii_phy, "sgmii-phy@%d", etsec_num); in fsl_sgmii_riser_fdt_fixup()
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dehci-msm.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <linux/libfdt.h>
16 #include <usb/ehci-ci.h>
31 static int msm_init_after_reset(struct ehci_ctrl *dev) in msm_init_after_reset() argument
33 struct msm_ehci_priv *p = container_of(dev, struct msm_ehci_priv, ctrl); in msm_init_after_reset()
34 struct usb_ehci *ehci = p->ehci; in msm_init_after_reset()
36 generic_phy_reset(&p->phy); in msm_init_after_reset()
39 writel(CM_HOST, &ehci->usbmode); in msm_init_after_reset()
48 static int ehci_usb_probe(struct udevice *dev) in ehci_usb_probe() argument
50 struct msm_ehci_priv *p = dev_get_priv(dev); in ehci_usb_probe()
[all …]
/openbmc/u-boot/drivers/pinctrl/
H A Dpinctrl-single.c1 // SPDX-License-Identifier: GPL-2.0+
9 #include <linux/libfdt.h>
17 u32 mask; /* configuration-value mask bits */
27 * single_configure_pins() - Configure pins based on FDT data
29 * @dev: Pointer to single pin configuration device which is the parent of
34 * This pointer points to a 'pinctrl-single,pins' property in the
35 * device-tree.
40 static int single_configure_pins(struct udevice *dev, in single_configure_pins() argument
44 struct single_pdata *pdata = dev->platdata; in single_configure_pins()
50 reg = fdt32_to_cpu(pins->reg); in single_configure_pins()
[all …]
/openbmc/u-boot/drivers/firmware/
H A Dpsci.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/libfdt.h>
14 #include <linux/arm-smccc.h>
47 static int psci_bind(struct udevice *dev) in psci_bind() argument
50 if (device_is_compatible(dev, "arm,psci-0.2") || in psci_bind()
51 device_is_compatible(dev, "arm,psci-1.0")) { in psci_bind()
54 /* bind psci-sysreset optionally */ in psci_bind()
55 ret = device_bind_driver(dev, "psci-sysreset", "psci-sysreset", in psci_bind()
64 static int psci_probe(struct udevice *dev) in psci_probe() argument
69 method = fdt_stringlist_get(gd->fdt_blob, dev_of_offset(dev), "method", in psci_probe()
[all …]
/openbmc/u-boot/board/xes/xpedite537x/
H A Dxpedite537x.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <linux/libfdt.h>
25 * Print boot dev and swap flash flash chip selects if booted from 2nd in flash_cs_fixup()
51 * Remap NOR flash region to caching-inhibited in board_early_init_r()
55 /* Flush d-cache and invalidate i-cache of any FLASH data */ in board_early_init_r()

123456