Lines Matching +full:imx31 +full:- +full:audmux
1 // SPDX-License-Identifier: GPL-2.0+
19 #include "imx-audmux.h"
21 #define DRIVER_NAME "imx-audmux"
40 return "imx-ssi.0";
42 return "imx-ssi.1";
61 uintptr_t port = (uintptr_t)file->private_data;
75 return -ENOMEM;
80 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
84 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
88 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
92 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
95 ret += scnprintf(buf + ret, PAGE_SIZE - ret, "\n");
98 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
102 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
106 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
110 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
114 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
118 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
140 audmux_debugfs_root = debugfs_create_dir("audmux", NULL);
169 { .compatible = "fsl,imx21-audmux", .data = (void *)IMX21_AUDMUX, },
170 { .compatible = "fsl,imx31-audmux", .data = (void *)IMX31_AUDMUX, },
182 return -EINVAL;
185 return -ENOSYS;
188 return -EINVAL;
202 return -EINVAL;
205 return -ENOSYS;
234 ret = of_property_read_u32(child, "fsl,audmux-port", &port);
236 dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%pOF\"\n",
240 if (!of_property_present(child, "fsl,port-config")) {
241 dev_warn(&pdev->dev, "child node \"%pOF\" does not have property fsl,port-config\n",
247 "fsl,port-config", i, &val)) == 0;
259 if (ret != -EOVERFLOW) {
260 dev_err(&pdev->dev, "Failed to read u32 at index %d of child %pOF\n",
267 dev_err(&pdev->dev, "One pdcr value is missing in child node %pOF\n",
286 audmux_clk = devm_clk_get(&pdev->dev, "audmux");
288 dev_dbg(&pdev->dev, "cannot get clock: %ld\n",
293 audmux_type = (uintptr_t)of_device_get_match_data(&pdev->dev);
304 dev_err(&pdev->dev, "unsupported version!\n");
305 return -EINVAL;
308 regcache = devm_kzalloc(&pdev->dev, sizeof(u32) * reg_max, GFP_KERNEL);
310 return -ENOMEM;
312 imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node);
377 MODULE_DESCRIPTION("Freescale i.MX AUDMUX driver");