/openbmc/qemu/hw/isa/ |
H A D | lpc_ich9.c | 74 static void ich9_cc_update(ICH9LPCState *lpc) in ich9_cc_update() argument 95 ich9_cc_update_ir(lpc->irr[slot], in ich9_cc_update() 96 pci_get_word(lpc->chip_config + *offset)); in ich9_cc_update() 106 lpc->irr[30][pci_intx] = pci_intx + 4; in ich9_cc_update() 110 static void ich9_cc_init(ICH9LPCState *lpc) in ich9_cc_init() argument 126 lpc->irr[slot][intx] = (slot + intx) % 4 + 4; in ich9_cc_init() 129 ich9_cc_update(lpc); in ich9_cc_init() 132 static void ich9_cc_reset(ICH9LPCState *lpc) in ich9_cc_reset() argument 134 uint8_t *c = lpc->chip_config; in ich9_cc_reset() 136 memset(lpc->chip_config, 0, sizeof(lpc->chip_config)); in ich9_cc_reset() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_lpc.c | 239 bool pnv_lpc_opb_read(PnvLpcController *lpc, uint32_t addr, in pnv_lpc_opb_read() argument 243 return !address_space_read(&lpc->opb_as, addr, MEMTXATTRS_UNSPECIFIED, in pnv_lpc_opb_read() 247 bool pnv_lpc_opb_write(PnvLpcController *lpc, uint32_t addr, in pnv_lpc_opb_write() argument 251 return !address_space_write(&lpc->opb_as, addr, MEMTXATTRS_UNSPECIFIED, in pnv_lpc_opb_write() 265 static void pnv_lpc_do_eccb(PnvLpcController *lpc, uint64_t cmd) in pnv_lpc_do_eccb() argument 280 success = pnv_lpc_opb_read(lpc, opb_addr, data, sz); in pnv_lpc_do_eccb() 282 lpc->eccb_stat_reg = ECCB_STAT_OP_DONE | in pnv_lpc_do_eccb() 288 lpc->eccb_stat_reg = ECCB_STAT_OP_DONE | in pnv_lpc_do_eccb() 292 data[0] = lpc->eccb_data_reg >> 24; in pnv_lpc_do_eccb() 293 data[1] = lpc->eccb_data_reg >> 16; in pnv_lpc_do_eccb() [all …]
|
H A D | pnv_adu.c | 125 pnv_lpc_opb_read(adu->lpc, lpc_addr, (void *)&data, lpc_size); in pnv_adu_xscom_write() 151 pnv_lpc_opb_write(adu->lpc, lpc_addr, (void *)&data, lpc_size); in pnv_adu_xscom_write() 180 assert(adu->lpc); in pnv_adu_realize() 189 DEFINE_PROP_LINK("lpc", PnvADU, lpc, TYPE_PNV_LPC, PnvLpcController *),
|
/openbmc/linux/drivers/phy/ |
H A D | phy-lpc18xx-usb-otg.c | 29 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_init() local 33 ret = clk_set_rate(lpc->clk, 480000000); in lpc18xx_usb_otg_phy_init() 37 return clk_prepare(lpc->clk); in lpc18xx_usb_otg_phy_init() 42 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_exit() local 44 clk_unprepare(lpc->clk); in lpc18xx_usb_otg_phy_exit() 51 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_power_on() local 54 ret = clk_enable(lpc->clk); in lpc18xx_usb_otg_phy_power_on() 59 ret = regmap_update_bits(lpc->reg, LPC18XX_CREG_CREG0, in lpc18xx_usb_otg_phy_power_on() 62 clk_disable(lpc->clk); in lpc18xx_usb_otg_phy_power_on() 71 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_power_off() local [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/ipmi/ |
H A D | phosphor-ipmi-flash_git.bb | 26 # Only one type of p2a or lpc can be enabled. 27 PACKAGECONFIG[aspeed-p2a] = "-Dp2a-type=aspeed-p2a,,,,,aspeed-lpc nuvoton-lpc nuvoton-p2a-vga nuvot… 28 PACKAGECONFIG[aspeed-lpc] = "-Dlpc-type=aspeed-lpc,,,,,aspeed-p2a nuvoton-lpc nuvoton-p2a-vga nuvot… 29 PACKAGECONFIG[nuvoton-lpc] = "-Dlpc-type=nuvoton-lpc,,,,,aspeed-p2a aspeed-lpc nuvoton-p2a-vga nuvo… 30 PACKAGECONFIG[nuvoton-p2a-vga] = "-Dp2a-type=nuvoton-p2a-vga,,,,,aspeed-p2a aspeed-lpc nuvoton-lpc … 31 …voton-p2a-mbox] = "-Dp2a-type=nuvoton-p2a-mbox,,,,,aspeed-p2a aspeed-lpc nuvoton-lpc nuvoton-p2a-v…
|
/openbmc/linux/Documentation/devicetree/bindings/watchdog/ |
H A D | st_lpc_wdt.txt | 7 [See: ../rtc/rtc-st-lpc.txt for RTC options] 8 [See: ../timer/st,stih407-lpc for Clocksource options] 12 - compatible : Should be: "st,stih407-lpc" 16 - st,lpc-mode : The LPC can run either one of three modes: 33 lpc@fde05000 { 34 compatible = "st,stih407-lpc"; 39 st,lpc-mode = <ST_LPC_MODE_WDT>;
|
/openbmc/linux/Documentation/devicetree/bindings/timer/ |
H A D | st,stih407-lpc | 8 [See: ../rtc/rtc-st-lpc.txt for RTC options] 12 - compatible : Must be: "st,stih407-lpc" 16 - st,lpc-mode : The LPC can run either one of three modes: 23 lpc@fde05000 { 24 compatible = "st,stih407-lpc"; 27 st,lpc-mode = <ST_LPC_MODE_CLKSRC>;
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | rtc-st-lpc.txt | 8 [See: ../timer/st,stih407-lpc for Clocksource options] 12 - compatible : Must be: "st,stih407-lpc" 16 - st,lpc-mode : The LPC can run either one of three modes: 23 lpc@fde05000 { 24 compatible = "st,stih407-lpc"; 27 st,lpc-mode = <ST_LPC_MODE_RTC>;
|
/openbmc/qemu/hw/acpi/ |
H A D | ich9.c | 470 ICH9LPCState *lpc = ICH9_LPC_DEVICE(hotplug_dev); in ich9_pm_device_pre_plug_cb() local 478 uint64_t negotiated = lpc->smi_negotiated_features; in ich9_pm_device_pre_plug_cb() 492 ICH9LPCState *lpc = ICH9_LPC_DEVICE(hotplug_dev); in ich9_pm_device_plug_cb() local 498 acpi_memory_plug_cb(hotplug_dev, &lpc->pm.acpi_memory_hotplug, in ich9_pm_device_plug_cb() 502 if (lpc->pm.cpu_hotplug_legacy) { in ich9_pm_device_plug_cb() 503 legacy_acpi_cpu_plug_cb(hotplug_dev, &lpc->pm.gpe_cpu, dev, errp); in ich9_pm_device_plug_cb() 505 acpi_cpu_plug_cb(hotplug_dev, &lpc->pm.cpuhp_state, dev, errp); in ich9_pm_device_plug_cb() 508 acpi_pcihp_device_plug_cb(hotplug_dev, &lpc->pm.acpi_pci_hotplug, in ich9_pm_device_plug_cb() 519 ICH9LPCState *lpc = ICH9_LPC_DEVICE(hotplug_dev); in ich9_pm_device_unplug_request_cb() local 523 &lpc->pm.acpi_memory_hotplug, dev, in ich9_pm_device_unplug_request_cb() [all …]
|
H A D | ich9_timer.c | 22 ICH9LPCState *lpc; in ich9_pm_update_swsmi_timer() local 25 lpc = container_of(pm, ICH9LPCState, pm); in ich9_pm_update_swsmi_timer() 27 (pci_get_word(lpc->d.config + ICH9_LPC_GEN_PMCON_3) & 0xc0) >> 6; in ich9_pm_update_swsmi_timer() 63 ICH9LPCState *lpc; in ich9_pm_update_periodic_timer() local 66 lpc = container_of(pm, ICH9LPCState, pm); in ich9_pm_update_periodic_timer() 67 per_smi_sel = pci_get_word(lpc->d.config + ICH9_LPC_GEN_PMCON_1) & 3; in ich9_pm_update_periodic_timer()
|
/openbmc/hiomapd/ |
H A D | configure.ac | 17 AC_CHECK_HEADER(linux/aspeed-lpc-ctrl.h,[HAVE_UAPI_LINUX_LPC_CTRL_H=""],[HAVE_UAPI_LINUX_LPC_CTRL_H… 19 …lpc-ctrl.h: Attempting to download locally for building from https://git.kernel.org/pub/scm/linux/… 20 …lpc-ctrl.h && mkdir -p linux && wget --quiet https://git.kernel.org/pub/scm/linux/kernel/git/gregk…
|
/openbmc/phosphor-mboxd/ |
H A D | configure.ac | 17 AC_CHECK_HEADER(linux/aspeed-lpc-ctrl.h,[HAVE_UAPI_LINUX_LPC_CTRL_H=""],[HAVE_UAPI_LINUX_LPC_CTRL_H… 19 …lpc-ctrl.h: Attempting to download locally for building from https://git.kernel.org/pub/scm/linux/… 20 …lpc-ctrl.h && mkdir -p linux && wget --quiet https://git.kernel.org/pub/scm/linux/kernel/git/gregk…
|
/openbmc/qemu/hw/arm/ |
H A D | aspeed_ast2400.c | 246 object_initialize_child(obj, "lpc", &s->lpc, TYPE_ASPEED_LPC); in aspeed_ast2400_soc_init() 486 if (!sysbus_realize(SYS_BUS_DEVICE(&s->lpc), errp)) { in aspeed_ast2400_soc_realize() 489 aspeed_mmio_map(s, SYS_BUS_DEVICE(&s->lpc), 0, sc->memmap[ASPEED_DEV_LPC]); in aspeed_ast2400_soc_realize() 492 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 0, in aspeed_ast2400_soc_realize() 504 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_1, in aspeed_ast2400_soc_realize() 505 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_1)); in aspeed_ast2400_soc_realize() 507 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_2, in aspeed_ast2400_soc_realize() 508 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_2)); in aspeed_ast2400_soc_realize() 510 sysbus_connect_irq(SYS_BUS_DEVICE(&s->lpc), 1 + aspeed_lpc_kcs_3, in aspeed_ast2400_soc_realize() 511 qdev_get_gpio_in(DEVICE(&s->lpc), aspeed_lpc_kcs_3)); in aspeed_ast2400_soc_realize() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/flite/flite/ |
H A D | 0001-Remove-defining-const-as-nothing.patch | 51 @@ -132,16 +129,16 @@ cst_sts *find_sts(cst_wave *sig, cst_track *lpc) 52 lpc->frames[i],lpc->num_channels, 57 sts[i].frame = cst_alloc(unsigned short,lpc->num_channels-1); 58 for (j=1; j < lpc->num_channels; j++) 61 (((lpc->frames[i][j]-lpc_min)/lpc_range)*65535); 71 @@ -189,7 +186,7 @@ cst_sts *find_sts(cst_wave *sig, cst_track *lpc)
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-amd-ethanolx.dts | 251 aspeed,lpc-io-reg = <0x60>; 256 aspeed,lpc-io-reg = <0x62>; 261 aspeed,lpc-io-reg = <0xCA2>; 266 aspeed,lpc-io-reg = <0x97DE>; 275 //Enable lpc clock 281 aspeed,lpc-io-reg = <0x3f8>; 282 aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
|
/openbmc/u-boot/arch/x86/cpu/intel_common/ |
H A D | cpu.c | 33 struct udevice *dev, *lpc; in cpu_common_init() local 55 ret = uclass_first_device(UCLASS_LPC, &lpc); in cpu_common_init() 58 if (!lpc) in cpu_common_init()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-lpc.c | 187 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_read() local 204 if (lpc->lpc_type == OPAL_LPC_FW) { in lpc_debug_read() 210 rc = opal_lpc_read(opal_lpc_chip_id, lpc->lpc_type, pos, in lpc_debug_read() 278 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_write() local 295 if (lpc->lpc_type == OPAL_LPC_FW) { in lpc_debug_write() 334 rc = opal_lpc_write(opal_lpc_chip_id, lpc->lpc_type, pos, in lpc_debug_write()
|
/openbmc/qemu/include/hw/ppc/ |
H A D | pnv_lpc.h | 112 bool pnv_lpc_opb_read(PnvLpcController *lpc, uint32_t addr, 114 bool pnv_lpc_opb_write(PnvLpcController *lpc, uint32_t addr, 117 ISABus *pnv_lpc_isa_create(PnvLpcController *lpc, bool use_cpld, Error **errp);
|
/openbmc/hiomapd/test/ |
H A D | Makefile.am.include | 6 lpc.c \ 14 lpc.c \ 21 lpc.c \ 28 lpc.c \
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/ |
H A D | meson.build | 71 if (get_option('lpc-type') == 'aspeed-lpc' or 76 if (get_option('lpc-type') == 'nuvoton-lpc' or
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/console/obmc-console/ |
H A D | setup-uart-routing | 4 echo -ne "$1" > /sys/devices/platform/ahb/1e780000.apb/1e789000.lpc/1e789098.uart-routing/"$2" 5 echo -ne "$2" > /sys/devices/platform/ahb/1e780000.apb/1e789000.lpc/1e789098.uart-routing/"$1"
|
/openbmc/phosphor-mboxd/test/ |
H A D | mbox.c | 199 struct tmpf lpc; member 207 tmpf_destroy(&test.lpc); in cleanup() 228 rc = tmpf_init(&test.lpc, "lpc-store.XXXXXX"); in mbox_create_test_context() 251 rc = __init_lpc_dev(&test.context, test.lpc.path); in mbox_create_test_context() 254 rc = fallocate(test.lpc.fd, 0, 0, test.context.mem_size); in mbox_create_test_context()
|
/openbmc/linux/drivers/soc/aspeed/ |
H A D | Makefile | 2 obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o 3 obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o
|
/openbmc/phosphor-ipmi-flash/ |
H A D | meson.build | 63 if get_option('lpc-type') != 'none' 70 or get_option('lpc-type') == 'none' \ 115 'aspeed-lpc' : '-DASPEED_LPC', 116 'nuvoton-lpc' : '-DNUVOTON_LPC', 120 if get_option('lpc-type') == option_key
|
/openbmc/u-boot/arch/x86/cpu/ivybridge/ |
H A D | cpu.c | 130 struct udevice *dev, *lpc; in checkcpu() local 176 uclass_first_device(UCLASS_LPC, &lpc); in checkcpu() 177 enable_usb_bar(pci_get_controller(lpc->parent)); in checkcpu()
|