| /kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/ |
| D | mcu_mpc8349emitx.c | 3 * Power Management and GPIO expander driver for MPC8349E-mITX-compatible MCU 25 * I don't have specifications for the MCU firmware, I found this register 34 struct mcu { struct 41 static struct mcu *glob_mcu; argument 47 struct mcu *mcu = glob_mcu; in shutdown_thread_fn() local 50 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in shutdown_thread_fn() 52 pr_err("MCU status reg read failed.\n"); in shutdown_thread_fn() 53 mcu->reg_ctrl = ret; in shutdown_thread_fn() 56 if (mcu->reg_ctrl & MCU_CTRL_BTN) { in shutdown_thread_fn() 57 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in shutdown_thread_fn() [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/platforms/83xx/ |
| D | mcu_mpc8349emitx.c | 2 * Power Management and GPIO expander driver for MPC8349E-mITX-compatible MCU 29 * I don't have specifications for the MCU firmware, I found this register 38 struct mcu { struct 45 static struct mcu *glob_mcu; argument 51 struct mcu *mcu = glob_mcu; in shutdown_thread_fn() local 54 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in shutdown_thread_fn() 56 pr_err("MCU status reg read failed.\n"); in shutdown_thread_fn() 57 mcu->reg_ctrl = ret; in shutdown_thread_fn() 60 if (mcu->reg_ctrl & MCU_CTRL_BTN) { in shutdown_thread_fn() 61 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in shutdown_thread_fn() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
| D | mt76x02_usb_mcu.c | 27 if (usb->mcu.burst) { in mt76x02u_multiple_mcu_reads() 28 WARN_ON_ONCE(len / 4 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads() 30 reg = usb->mcu.rp[0].reg - usb->mcu.base; in mt76x02u_multiple_mcu_reads() 31 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads() 33 usb->mcu.rp[i].reg = reg++; in mt76x02u_multiple_mcu_reads() 34 usb->mcu.rp[i].value = val; in mt76x02u_multiple_mcu_reads() 37 WARN_ON_ONCE(len / 8 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads() 39 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads() 41 usb->mcu.base; in mt76x02u_multiple_mcu_reads() 44 WARN_ON_ONCE(usb->mcu.rp[i].reg != reg); in mt76x02u_multiple_mcu_reads() [all …]
|
| D | mcu.c | 39 wait_event_timeout(dev->mcu.wait, in mt76_mcu_get_response() 40 (!skb_queue_empty(&dev->mcu.res_q) || in mt76_mcu_get_response() 43 return skb_dequeue(&dev->mcu.res_q); in mt76_mcu_get_response() 49 skb_queue_tail(&dev->mcu.res_q, skb); in mt76_mcu_rx_event() 50 wake_up(&dev->mcu.wait); in mt76_mcu_rx_event()
|
| D | mt76x02_mcu.c | 30 mutex_lock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send() 32 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send() 34 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send() 53 "MCU message %d (seq %d) timed out\n", cmd, in mt76x02_mcu_msg_send() 71 mutex_unlock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send() 147 while ((skb = skb_dequeue(&dev->mt76.mcu.res_q)) != NULL) in mt76x02_mcu_cleanup()
|
| /kernel/linux/linux-4.19/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| D | mcu.c | 25 #include "mcu.h" 80 int n = dev->mcu.reg_pairs_len; in mt76x0_read_resp_regs() 81 u8 *buf = dev->mcu.resp.buf; in mt76x0_read_resp_regs() 86 if (dev->mcu.burst_read) { in mt76x0_read_resp_regs() 87 u32 reg = dev->mcu.reg_pairs[0].reg - dev->mcu.reg_base; in mt76x0_read_resp_regs() 93 dev->mcu.reg_pairs[i].reg = reg++; in mt76x0_read_resp_regs() 94 dev->mcu.reg_pairs[i].value = val; in mt76x0_read_resp_regs() 99 u32 reg = get_unaligned_le32(buf + 8*i) - dev->mcu.reg_base; in mt76x0_read_resp_regs() 102 WARN_ON_ONCE(dev->mcu.reg_pairs[i].reg != reg); in mt76x0_read_resp_regs() 103 dev->mcu.reg_pairs[i].value = val; in mt76x0_read_resp_regs() [all …]
|
| /kernel/liteos_m/testsuites/sample/kernel/dynlink/lib/ |
| D | Makefile | 50 # mcu 51 MCU = $(CPU) -mthumb $(FPU) $(FLOAT-ABI) macro 58 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)athmtc.c -o $(CASE)athmtc.so 59 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)bss.c -o $(CASE)bss.so 60 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)initfini.c -o $(CASE)align10000.so 61 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)static.c -o $(CASE)static.so 62 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)sym.c -o $(CASE)sym.so 63 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)undfunc.c -o $(CASE)undfunc.so 64 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)undval.c -o $(CASE)undval.so 65 $(HIDE)$(CROSS_GCC) -fPIC -shared $(MCU) $(CFLAGS) $(CASE)xxxxx.c -o $(CASE)xxxxx.so [all …]
|
| /kernel/linux/linux-5.10/drivers/thermal/ |
| D | khadas_mcu_fan.c | 3 * Khadas MCU Controlled FAN driver 12 #include <linux/mfd/khadas-mcu.h> 20 struct khadas_mcu *mcu; member 30 ret = regmap_write(ctx->mcu->regmap, KHADAS_MCU_CMD_FAN_STATUS_CTRL_REG, in khadas_mcu_fan_set_level() 81 struct khadas_mcu *mcu = dev_get_drvdata(pdev->dev.parent); in khadas_mcu_fan_probe() local 90 ctx->mcu = mcu; in khadas_mcu_fan_probe() 94 dev->parent->of_node, "khadas-mcu-fan", ctx, in khadas_mcu_fan_probe() 98 dev_err(dev, "Failed to register khadas-mcu-fan as cooling device: %d\n", in khadas_mcu_fan_probe() 143 { .name = "khadas-mcu-fan-ctrl", }, 152 .name = "khadas-mcu-fan-ctrl", [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/ |
| D | sensorhub.txt | 3 Sensorhub is a MCU which manages several sensors and also plays the role 10 - ap-mcu-gpios: [out] ap to sensorhub line - used during communication 11 - mcu-ap-gpios: [in] sensorhub to ap - used during communication 12 - mcu-reset-gpios: [out] sensorhub reset 21 ap-mcu-gpios = <&gpx0 0 0>; 22 mcu-ap-gpios = <&gpx0 4 0>; 23 mcu-reset-gpios = <&gpx0 5 0>;
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/ |
| D | sensorhub.txt | 3 Sensorhub is a MCU which manages several sensors and also plays the role 10 - ap-mcu-gpios: [out] ap to sensorhub line - used during communication 11 - mcu-ap-gpios: [in] sensorhub to ap - used during communication 12 - mcu-reset-gpios: [out] sensorhub reset 21 ap-mcu-gpios = <&gpx0 0 0>; 22 mcu-ap-gpios = <&gpx0 4 0>; 23 mcu-reset-gpios = <&gpx0 5 0>;
|
| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/ |
| D | mcu.c | 16 #include "mcu.h" 70 struct urb *urb = dev->mcu.resp.urb; in mt7601u_mcu_wait_resp() 75 if (!wait_for_completion_timeout(&dev->mcu.resp_cmpl, in mt7601u_mcu_wait_resp() 82 rxfce = get_unaligned_le32(dev->mcu.resp.buf); in mt7601u_mcu_wait_resp() 86 &dev->mcu.resp, GFP_KERNEL, in mt7601u_mcu_wait_resp() 88 &dev->mcu.resp_cmpl); in mt7601u_mcu_wait_resp() 93 dev_err(dev->dev, "Error: MCU resp urb failed:%d\n", in mt7601u_mcu_wait_resp() 100 dev_err(dev->dev, "Error: MCU resp evt:%lx seq:%hhx-%lx!\n", in mt7601u_mcu_wait_resp() 124 mutex_lock(&dev->mcu.mutex); in mt7601u_mcu_msg_send() 128 seq = ++dev->mcu.msg_seq & 0xf; in mt7601u_mcu_msg_send() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/mediatek/mt7601u/ |
| D | mcu.c | 24 #include "mcu.h" 78 struct urb *urb = dev->mcu.resp.urb; in mt7601u_mcu_wait_resp() 83 if (!wait_for_completion_timeout(&dev->mcu.resp_cmpl, in mt7601u_mcu_wait_resp() 90 rxfce = get_unaligned_le32(dev->mcu.resp.buf); in mt7601u_mcu_wait_resp() 94 &dev->mcu.resp, GFP_KERNEL, in mt7601u_mcu_wait_resp() 96 &dev->mcu.resp_cmpl); in mt7601u_mcu_wait_resp() 101 dev_err(dev->dev, "Error: MCU resp urb failed:%d\n", in mt7601u_mcu_wait_resp() 108 dev_err(dev->dev, "Error: MCU resp evt:%lx seq:%hhx-%lx!\n", in mt7601u_mcu_wait_resp() 130 mutex_lock(&dev->mcu.mutex); in mt7601u_mcu_msg_send() 134 seq = ++dev->mcu.msg_seq & 0xf; in mt7601u_mcu_msg_send() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/mediatek/mt76/ |
| D | usb_mcu.c | 55 struct mt76u_buf *buf = &usb->mcu.res; in mt76u_mcu_wait_resp() 60 if (!wait_for_completion_timeout(&usb->mcu.cmpl, in mt76u_mcu_wait_resp() 72 &usb->mcu.cmpl); in mt76u_mcu_wait_resp() 79 dev_err(dev->dev, "error: MCU resp evt:%lx seq:%hhx-%lx\n", in mt76u_mcu_wait_resp() 102 mutex_lock(&usb->mcu.mutex); in mt76u_mcu_send_msg() 106 seq = ++usb->mcu.msg_seq & 0xf; in mt76u_mcu_send_msg() 108 seq = ++usb->mcu.msg_seq & 0xf; in mt76u_mcu_send_msg() 126 mutex_unlock(&usb->mcu.mutex); in mt76u_mcu_send_msg() 227 err = mt76u_buf_alloc(dev, &usb->mcu.res, 1, in mt76u_mcu_init_rx() 234 &usb->mcu.res, GFP_KERNEL, in mt76u_mcu_init_rx() [all …]
|
| D | mt76x2_mcu.c | 47 wait_event_timeout(dev->mcu.wait, !skb_queue_empty(&dev->mcu.res_q), in mt76x2_mcu_get_response() 49 return skb_dequeue(&dev->mcu.res_q); in mt76x2_mcu_get_response() 63 mutex_lock(&dev->mcu.mutex); in mt76x2_mcu_msg_send() 65 seq = ++dev->mcu.msg_seq & 0xf; in mt76x2_mcu_msg_send() 67 seq = ++dev->mcu.msg_seq & 0xf; in mt76x2_mcu_msg_send() 80 "MCU message %d (seq %d) timed out\n", cmd, in mt76x2_mcu_msg_send() 97 mutex_unlock(&dev->mcu.mutex); in mt76x2_mcu_msg_send() 402 mutex_init(&dev->mcu.mutex); in mt76x2_mcu_init() 423 while ((skb = skb_dequeue(&dev->mcu.res_q)) != NULL) in mt76x2_mcu_cleanup()
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/powerpc/fsl/ |
| D | mcu-mpc8349emitx.txt | 1 Freescale MPC8349E-mITX-compatible Power Management Micro Controller Unit (MCU) 4 - compatible : "fsl,<mcu-chip>-<board>", "fsl,mcu-mpc8349emitx". 11 mcu@a { 14 "fsl,mcu-mpc8349emitx";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/ |
| D | mcu-mpc8349emitx.txt | 1 Freescale MPC8349E-mITX-compatible Power Management Micro Controller Unit (MCU) 4 - compatible : "fsl,<mcu-chip>-<board>", "fsl,mcu-mpc8349emitx". 11 mcu@a { 14 "fsl,mcu-mpc8349emitx";
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/hwmon/ |
| D | nsa320-mcu.txt | 5 - compatible : "zyxel,nsa320-mcu" 6 - data-gpios : The GPIO pin connected to the data line on the MCU 7 - clk-gpios : The GPIO pin connected to the clock line on the MCU 8 - act-gpios : The GPIO pin connected to the active line on the MCU 13 compatible = "zyxel,nsa320-mcu";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/ |
| D | nsa320-mcu.txt | 5 - compatible : "zyxel,nsa320-mcu" 6 - data-gpios : The GPIO pin connected to the data line on the MCU 7 - clk-gpios : The GPIO pin connected to the clock line on the MCU 8 - act-gpios : The GPIO pin connected to the active line on the MCU 13 compatible = "zyxel,nsa320-mcu";
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | khadas-mcu.c | 12 #include <linux/mfd/khadas-mcu.h> 80 { .name = "khadas-mcu-fan-ctrl", }, 84 { .name = "khadas-mcu-user-mem", }, 127 { .compatible = "khadas,mcu", }, 135 .name = "khadas-mcu-core", 142 MODULE_DESCRIPTION("Khadas MCU core driver");
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| D | khadas,mcu.yaml | 4 $id: http://devicetree.org/schemas/mfd/khadas,mcu.yaml# 20 - khadas,mcu # MCU revision is discoverable 40 compatible = "khadas,mcu";
|
| /kernel/linux/linux-4.19/arch/arm/mach-sa1100/ |
| D | jornada720_ssp.c | 33 * we need to reverse all data we receive from the mcu due to its physical location 54 * timeout after <timeout> rounds. Needs mcu running before its called. 56 * returns : %mcu output on success 109 * jornada_ssp_start - enable mcu 122 * jornada_ssp_end - disable mcu and turn off lock 157 /* enable MCU */ in jornada_ssp_probe()
|
| /kernel/linux/linux-5.10/arch/arm/mach-sa1100/ |
| D | jornada720_ssp.c | 30 * we need to reverse all data we receive from the mcu due to its physical location 51 * timeout after <timeout> rounds. Needs mcu running before its called. 53 * returns : %mcu output on success 106 * jornada_ssp_start - enable mcu 119 * jornada_ssp_end - disable mcu and turn off lock 154 /* enable MCU */ in jornada_ssp_probe()
|
| /kernel/linux/linux-5.10/drivers/iio/common/ssp_sensors/ |
| D | ssp.h | 148 * @work_refresh: refresh work queue for reset request from MCU 150 * @mcu_dump_mode: mcu dump mode for debug 161 * @last_ap_state: (obsolete) sleep notification for MCU 171 * @mcu_reset_gpiod: mcu reset line 172 * @ap_mcu_gpiod: ap to mcu gpio line 173 * @mcu_ap_gpiod: mcu to ap gpio line
|
| /kernel/linux/linux-4.19/drivers/iio/common/ssp_sensors/ |
| D | ssp.h | 158 * @work_refresh: refresh work queue for reset request from MCU 160 * @mcu_dump_mode: mcu dump mode for debug 171 * @last_ap_state: (obsolete) sleep notification for MCU 181 * @mcu_reset_gpio: mcu reset line 182 * @ap_mcu_gpio: ap to mcu gpio line 183 * @mcu_ap_gpio: mcu to ap gpio line
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/amlogic/ |
| D | meson-g12b-s922x-khadas-vim3.dts | 19 * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential 25 * If the MCU is configured to mux the PCIe/USB3.0 differential lines 30 * update these nodes accordingly if PCIe mode is selected by the MCU.
|