| /openbmc/u-boot/arch/arm/dts/ |
| H A D | mt7623n-bananapi-bpi-r2.dts | 5 * SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 /dts-v1/; 12 model = "Bananapi BPI-R2"; 13 compatible = "bananapi,bpi-r2", "mediatek,mt7623"; 16 stdout-path = &uart2; 17 tick-timer = &timer0; 20 reg_1p8v: regulator-1p8v { 21 compatible = "regulator-fixed"; 22 regulator-name = "fixed-1.8V"; 23 regulator-min-microvolt = <1800000>; [all …]
|
| H A D | kirkwood-ns2max.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/leds/leds-ns2.h> 5 #include "kirkwood-ns2-common.dtsi" 9 compatible = "lacie,netspace_max_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 18 pinctrl-0 = <&pmx_ns2_sata0 &pmx_ns2_sata1>; 19 pinctrl-names = "default"; 21 nr-ports = <2>; 26 compatible = "gpio-fan"; 27 gpios = <&gpio0 22 GPIO_ACTIVE_LOW [all …]
|
| H A D | kirkwood-ns2mini.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/leds/leds-ns2.h> 5 #include "kirkwood-ns2-common.dtsi" 10 compatible = "lacie,netspace_mini_v2", "marvell,kirkwood-88f6192", "marvell,kirkwood"; 19 pinctrl-0 = <&pmx_ns2_sata0>; 20 pinctrl-names = "default"; 22 nr-ports = <1>; 27 compatible = "gpio-fan"; 28 gpios = <&gpio0 22 GPIO_ACTIVE_LOW [all …]
|
| H A D | meson-gxl-s905x-libretech-cc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 12 #include "meson-gxl-s905x.dtsi" 15 compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl"; 16 model = "Libre Computer Board AML-S905X-CC"; 24 stdout-path = "serial0:115200n8"; 27 cvbs-connector { 28 compatible = "composite-video-connector"; 32 remote-endpoint = <&cvbs_vdac_out>; [all …]
|
| H A D | meson-gxbb-nanopi-k2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-gxbb.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 12 compatible = "friendlyarm,nanopi-k2", "amlogic,meson-gxbb"; 20 stdout-path = "serial0:115200n8"; 29 compatible = "gpio-leds"; 32 label = "nanopi-k2:blue:stat"; 33 gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>; 34 default-state = "on"; [all …]
|
| H A D | meson-gxbb-odroidc2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "meson-gxbb.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 14 compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb"; 15 model = "Hardkernel ODROID-C2"; 23 stdout-path = "serial0:115200n8"; 31 usb_otg_pwr: regulator-usb-pwrs { 32 compatible = "regulator-fixed"; 34 regulator-name = "USB_OTG_PWR"; [all …]
|
| H A D | kirkwood-d2net.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include <dt-bindings/leds/leds-ns2.h> 12 #include "kirkwood-netxbig.dtsi" 16 compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 23 ns2-leds { 24 compatible = "lacie,ns2-leds"; 26 blue-sata { 28 slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>; 29 cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>; [all …]
|
| H A D | am57xx-sbc-am57x.dts | 2 * Support for CompuLab SBC-AM57x single board computer 4 * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/ 12 #include "am57xx-cl-som-am57x.dts" 13 #include "compulab-sb-som.dtsi" 16 model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x"; 17 …compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", … 27 pinctrl-single,pins = < 34 pinctrl-single,pins = < 36 DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */ 47 pinctrl-single,pins = < [all …]
|
| H A D | armada-388-clearfog.dts | 11 * This file is dual-licensed: you can use it either under the terms 49 /dts-v1/; 50 #include <dt-bindings/input/input.h> 51 #include <dt-bindings/gpio/gpio.h> 52 #include "armada-388.dtsi" 53 #include "armada-38x-solidrun-microsom.dtsi" 57 compatible = "solidrun,clearfog-a1", "marvell,armada388", 61 /* So that mvebu u-boot can update the MAC addresses */ 71 stdout-path = "serial0:115200n8"; 74 reg_3p3v: regulator-3p3v { [all …]
|
| H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/input/input.h> 10 #include "meson-gxl-s905x-p212.dtsi" 13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; 16 adc-keys { 17 compatible = "adc-keys"; 18 io-channels = <&saradc 0>; 19 io-channel-names = "buttons"; 20 keyup-threshold-microvolt = <1710000>; [all …]
|
| H A D | rk3288-veyron.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/clock/rockchip,rk808.h> 9 #include <dt-bindings/input/input.h> 18 stdout-path = &uart2; 22 u-boot,dm-pre-reloc; 23 u-boot,boot0 = &spi_flash; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&fw_wp_ap>; 30 write-protect-gpio = <&gpio7 6 GPIO_ACTIVE_LOW>; 35 compatible = "pwm-backlight"; [all …]
|
| H A D | exynos4210-universal_c210.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 9 /dts-v1/; 21 soft-spi { 22 compatible = "spi-gpio"; 23 cs-gpios = <&gpy4 3 0>; 24 gpio-sck = <&gpy3 1 0>; 25 gpio-mosi = <&gpy3 3 0>; 26 gpio-miso = <&gpy3 0 0>; 27 spi-delay-us = <1>; 33 compatible = "samsung,exynos-fimd"; [all …]
|
| H A D | exynos4210-trats.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 9 /dts-v1/; 17 samsung,dsim-device-name = "s6e8ax0"; 27 compatible = "samsung,exynos-fimd"; 30 samsung,vl-freq = <60>; 31 samsung,vl-col = <720>; 32 samsung,vl-row = <1280>; 33 samsung,vl-width = <720>; 34 samsung,vl-height = <1280>; 36 samsung,vl-clkp = <0>; [all …]
|
| H A D | exynos5800-peach-pi.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * SAMSUNG/GOOGLE Peach-Pit board device tree source 9 /dts-v1/; 14 cpu-model = "Exynos5800"; 16 compatible = "google,pit-rev#", "google,pit", 20 google,bad-wake-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>; 21 hwid = "PIT TEST A-A 7848"; 22 lazy-init = <1>; 33 compatible = "pwm-backlight"; 35 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; [all …]
|
| /openbmc/u-boot/drivers/mmc/ |
| H A D | tegra_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Portions Copyright 2011-2016 NVIDIA Corporation 16 #include <asm/arch-tegra/tegra_mmc.h> 40 if (power != (unsigned short)-1) { in tegra_mmc_set_power() 58 writeb(pwr, &priv->reg->pwrcon); in tegra_mmc_set_power() 64 writeb(pwr, &priv->reg->pwrcon); in tegra_mmc_set_power() 74 debug("buf: %p (%p), data->blocks: %u, data->blocksize: %u\n", in tegra_mmc_prepare_data() 75 bbstate->bounce_buffer, bbstate->user_buffer, data->blocks, in tegra_mmc_prepare_data() 76 data->blocksize); in tegra_mmc_prepare_data() 78 writel((u32)(unsigned long)bbstate->bounce_buffer, &priv->reg->sysad); in tegra_mmc_prepare_data() [all …]
|
| H A D | davinci_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 #include <asm-generic/gpio.h> 54 struct davinci_mmc *host = mmc->priv; 62 struct davinci_mmc_regs *regs = host->reg_base; 65 if (clock < mmc->cfg->f_min) 66 clock = mmc->cfg->f_min; 67 if (clock > mmc->cfg->f_max) 68 clock = mmc->cfg->f_max; 70 set_val(®s->mmcclk, 0); 71 sysclk2 = host->input_clk; [all …]
|
| H A D | arm_pl180_mmci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * ARM PrimeCell MultiMedia Card Interface - PL180 5 * Copyright (C) ST-Ericsson SA 2010 21 #include <asm-generic/gpio.h> 36 static int wait_for_command_end(struct mmc *dev, struct mmc_cmd *cmd) in wait_for_command_end() argument 39 struct pl180_mmc_host *host = dev->priv; in wait_for_command_end() 42 if ((cmd->resp_type & MMC_RSP_PRESENT)) in wait_for_command_end() 48 hoststatus = readl(&host->base->status) & statusmask; in wait_for_command_end() 51 writel(statusmask, &host->base->status_clear); in wait_for_command_end() 53 debug("CMD%d time out\n", cmd->cmdidx); in wait_for_command_end() [all …]
|
| H A D | mtk-sd.c | 1 // SPDX-License-Identifier: GPL-2.0 268 /* whether to use gpio detection or built-in hw detection */ 271 /* card detection / write protection GPIOs */ 290 setbits_le32(&host->base->msdc_cfg, MSDC_CFG_RST); in msdc_reset_hw() 292 readl_poll_timeout(&host->base->msdc_cfg, reg, in msdc_reset_hw() 300 setbits_le32(&host->base->msdc_fifocs, MSDC_FIFOCS_CLR); in msdc_fifo_clr() 302 readl_poll_timeout(&host->base->msdc_fifocs, reg, in msdc_fifo_clr() 308 return (readl(&host->base->msdc_fifocs) & in msdc_fifo_rx_bytes() 314 return (readl(&host->base->msdc_fifocs) & in msdc_fifo_tx_bytes() 318 static u32 msdc_cmd_find_resp(struct msdc_host *host, struct mmc_cmd *cmd) in msdc_cmd_find_resp() argument [all …]
|
| H A D | stm32_sdmmc2.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 201 data_ctrl = (__ilog2(data->blocksize) << in stm32_sdmmc2_start_data() 205 if (data->flags & MMC_DATA_READ) { in stm32_sdmmc2_start_data() 207 idmabase0 = (u32)data->dest; in stm32_sdmmc2_start_data() 209 idmabase0 = (u32)data->src; in stm32_sdmmc2_start_data() 213 writel(SDMMC_CMD_TIMEOUT, priv->base + SDMMC_DTIMER); in stm32_sdmmc2_start_data() 216 writel(ctx->data_length, priv->base + SDMMC_DLEN); in stm32_sdmmc2_start_data() 219 writel(data_ctrl, priv->base + SDMMC_DCTRL); in stm32_sdmmc2_start_data() 222 ctx->cache_start = rounddown(idmabase0, ARCH_DMA_MINALIGN); in stm32_sdmmc2_start_data() [all …]
|
| H A D | sunxi_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2007-2011 22 #include <asm-generic/gpio.h> 60 return -EINVAL; in sunxi_mmc_getcd_gpio() 73 priv->reg = (struct sunxi_mmc *)SUNXI_MMC0_BASE; in mmc_resource_init() 74 priv->mclkreg = &ccm->sd0_clk_cfg; in mmc_resource_init() 77 priv->reg = (struct sunxi_mmc *)SUNXI_MMC1_BASE; in mmc_resource_init() 78 priv->mclkreg = &ccm->sd1_clk_cfg; in mmc_resource_init() 81 priv->reg = (struct sunxi_mmc *)SUNXI_MMC2_BASE; in mmc_resource_init() 82 priv->mclkreg = &ccm->sd2_clk_cfg; in mmc_resource_init() [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/bios/ |
| H A D | spi_device.cpp | 10 #include <phosphor-logging/lg2.hpp> 94 // NOLINTNEXTLINE(clang-analyzer-core.uninitialized.Branch) in updateDevice() 131 const std::string spiAspeedSMCPath = "/sys/bus/platform/drivers/spi-aspeed-smc"; 132 const std::string spiNorPath = "/sys/bus/spi/drivers/spi-nor"; 167 error("failed to bind spi flash (spi-nor driver)"); in bindSPIFlash() 210 debug("[gpio] requesting gpios to mux SPI to BMC"); in requestMuxGPIOs() 222 error("Failed to mux GPIOs to BMC: {ERROR}", "ERROR", e.what()); in requestMuxGPIOs() 276 const std::string path = "/tmp/spi-devic in writeSPIFlash() 368 std::string cmd = "flashrom -p linux_mtd:dev=" + std::to_string(devNum); writeSPIFlashWithFlashrom() local 425 std::string cmd = std::format("flashcp -v {} {}", path, devPath.value()); writeSPIFlashWithFlashcp() local [all...] |
| /openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-sys-utility/mori-cmd/ |
| H A D | mori.sh | 5 # shellcheck source=meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/mori-lib.sh 6 source /usr/libexec/mori-fw/mori-lib.sh 10 echo " system --> reset the host" 11 echo " btn --> trigger a power button event" 12 echo " shutdown --> send out shutdown signal to CPU" 13 echo " display --> " 18 echo " on --> turn led on" 19 echo " off --> turn led off" 20 echo " toggle --> toggle led" 21 echo " status --> get status of led" [all …]
|
| /openbmc/u-boot/drivers/mtd/nand/raw/ |
| H A D | kb9202_nand.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 * hardware specific access to control-lines 33 * Board-specific function to access device control signals 35 static void kb9202_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kb9202_nand_hwcontrol() argument 40 ulong IO_ADDR_W = (ulong) this->IO_ADDR_W; in kb9202_nand_hwcontrol() 51 this->IO_ADDR_W = (void *) IO_ADDR_W; in kb9202_nand_hwcontrol() 59 if (cmd != NAND_CMD_NONE) in kb9202_nand_hwcontrol() 60 writeb(cmd, this->IO_ADDR_W); in kb9202_nand_hwcontrol() 65 * Board-specific function to access the device ready signal. 74 * Board-specific NAND init. Copied from include/linux/mtd/nand.h for reference. [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/eeprom-device/ |
| H A D | eeprom_device.cpp | 7 #include <phosphor-logging/lg2.hpp> 36 oss << bus << "-" << std::hex << std::setfill('0') << std::setw(4) in requestMuxGPIOs() 89 error("Failed to mux GPIOs to BMC: {ERROR}", "ERROR", e.what()); in requestMuxGPIOs() 240 co_return -1; in bindEEPROM() 243 "/tmp/eeprom-image-" + in bindEEPROM() 250 co_return -1; in bindEEPROM() 260 co_return -1; in bindEEPROM() 265 std::string cmd = "dd if=" + path + " of=" + eepromPath + " bs=1k"; in bindEEPROM() 267 debug("Running {CMD}", "CM in bindEEPROM() 360 std::string cmd = "dd if=" + path + " of=" + eepromPath + " bs=1k"; writeEEPROM() local [all...] |
| /openbmc/u-boot/board/qualcomm/dragonboard820c/ |
| H A D | dragonboard820c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> 8 #include <asm/arch/sysmap-apq8096.h> 9 #include <linux/arm-smccc.h> 22 gd->ram_size = PHYS_SDRAM_SIZE; in dram_init() 29 gd->bd->bi_dram[0].start = PHYS_SDRAM_1; in dram_init_banksize() 30 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; in dram_init_banksize() 32 gd->bd->bi_dram[1].start = PHYS_SDRAM_2; in dram_init_banksize() 33 gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE; in dram_init_banksize() 45 u8 mask; /* mask clk/dat/cmd control */ in sdhci_power_init() [all …]
|