Home
last modified time | relevance | path

Searched full:mcu (Results 1 – 25 of 221) sorted by relevance

123456789

/kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/
Dmcu_mpc8349emitx.c3 * 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-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_usb_mcu.c27 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 …]
Dmcu.c39 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()
Dmt76x02_mcu.c30 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/liteos_m/testsuites/sample/kernel/dynlink/lib/
DMakefile50 # 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/
Dkhadas_mcu_fan.c3 * 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/
Dsensorhub.txt3 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/
Dmcu.c16 #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-5.10/Documentation/devicetree/bindings/powerpc/fsl/
Dmcu-mpc8349emitx.txt1 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/hwmon/
Dnsa320-mcu.txt5 - 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/
Dkhadas-mcu.c12 #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/
Dkhadas,mcu.yaml4 $id: http://devicetree.org/schemas/mfd/khadas,mcu.yaml#
20 - khadas,mcu # MCU revision is discoverable
40 compatible = "khadas,mcu";
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/
Djornada720_ssp.c30 * 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/
Dssp.h148 * @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
Dssp_dev.c111 * This function is the first one which communicates with the mcu so it is
136 "MCU Firm Rev : Old = %8u, New = %8u\n", in ssp_check_fwbl()
360 dev_err(&data->spi->dev, "%s - MCU %s ret = %d\n", __func__, in ssp_initialize_mcu()
366 dev_info(&data->spi->dev, "MCU device ID = %d\n", ret); in ssp_initialize_mcu()
387 dev_info(&data->spi->dev, "MCU Firm Rev : New = %8u\n", in ssp_initialize_mcu()
395 * handling. It can be requested from the MCU.
451 data->mcu_ap_gpiod = devm_gpiod_get(dev, "mcu-ap", GPIOD_IN); in ssp_parse_dt()
455 data->ap_mcu_gpiod = devm_gpiod_get(dev, "ap-mcu", GPIOD_OUT_HIGH); in ssp_parse_dt()
459 data->mcu_reset_gpiod = devm_gpiod_get(dev, "mcu-reset", in ssp_parse_dt()
659 /* timesyncing is set by MCU */ in ssp_resume()
/kernel/linux/linux-5.10/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-s922x-khadas-vim3.dts19 * 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.
Dmeson-g12b-a311d-khadas-vim3.dts19 * 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.
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/remoteproc/
Dti,k3-r5f-rproc.yaml229 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS */
230 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
231 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
232 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>; /* MCU SRAM */
234 /* AM65x MCU R5FSS node */
253 firmware-name = "am65x-mcu-r5f0_0-fw";
272 firmware-name = "am65x-mcu-r5f0_1-fw";
/kernel/linux/linux-5.10/arch/arm64/boot/dts/ti/
Dk3-am65.dtsi96 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
99 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
100 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
101 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>, /* MCU SRAM */
123 #include "k3-am65-mcu.dtsi"
Dk3-j7200.dtsi154 ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
157 <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
158 <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
159 <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */
173 #include "k3-j7200-mcu-wakeup.dtsi"
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/
Dallegro.txt5 Each actual codec engines is controlled by a microcontroller (MCU). Host
6 software uses a provided mailbox interface to communicate with the MCU. The
7 MCU share an interrupt.
/kernel/linux/linux-5.10/drivers/usb/musb/
Dmediatek.c48 struct clk *mcu; member
64 glue->mcu = devm_clk_get(dev, "mcu"); in mtk_musb_clks_get()
65 if (IS_ERR(glue->mcu)) { in mtk_musb_clks_get()
66 dev_err(dev, "fail to get mcu clock\n"); in mtk_musb_clks_get()
67 return PTR_ERR(glue->mcu); in mtk_musb_clks_get()
89 ret = clk_prepare_enable(glue->mcu); in mtk_musb_clks_enable()
91 dev_err(glue->dev, "failed to enable mcu clock\n"); in mtk_musb_clks_enable()
104 clk_disable_unprepare(glue->mcu); in mtk_musb_clks_enable()
114 clk_disable_unprepare(glue->mcu); in mtk_musb_clks_disable()
/kernel/linux/linux-5.10/include/linux/platform_data/
Ddma-imx.h17 IMX_DMATYPE_SSI, /* MCU domain SSI */
21 IMX_DMATYPE_UART, /* MCU domain UART */
24 IMX_DMATYPE_CSPI, /* MCU domain CSPI */
/kernel/linux/linux-5.10/drivers/perf/
Dxgene_pmu.c357 XGENE_PMU_EVENT_ATTR(mcu-request, 0x12),
358 XGENE_PMU_EVENT_ATTR(mcu-rd-request, 0x13),
359 XGENE_PMU_EVENT_ATTR(mcu-hp-rd-request, 0x14),
360 XGENE_PMU_EVENT_ATTR(mcu-wr-request, 0x15),
361 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-all, 0x16),
362 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-cancel, 0x17),
363 XGENE_PMU_EVENT_ATTR(mcu-rd-response, 0x18),
364 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-all, 0x19),
365 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-cancel, 0x1a),
366 XGENE_PMU_EVENT_ATTR(mcu-wr-proceed-all, 0x1b),
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dkirkwood-nsa320.dts52 pmx_mcu_data: pmx-mcu-data {
62 pmx_mcu_clk: pmx-mcu-clk {
67 pmx_mcu_act: pmx-mcu-act {
184 compatible = "zyxel,nsa320-mcu";

123456789