blob: 5d250db1081d6459037719d4db2b8ab17eaa2466 [file] [log] [blame]
Peng Fanf6cbb452022-07-26 16:40:42 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2022 NXP
4 */
5
6#include <dm/device.h>
7#include <dm/pinctrl.h>
8
9#include "pinctrl-imx.h"
10
11static struct imx_pinctrl_soc_info imx93_pinctrl_soc_info __section(".data") = {
12 .flags = ZERO_OFFSET_VALID,
13};
14
Peng Fanf6cbb452022-07-26 16:40:42 +080015static const struct udevice_id imx93_pinctrl_match[] = {
16 { .compatible = "fsl,imx93-iomuxc", .data = (ulong)&imx93_pinctrl_soc_info },
Peng Fan82ef2872024-12-03 23:42:52 +080017 { .compatible = "fsl,imx91-iomuxc", .data = (ulong)&imx93_pinctrl_soc_info },
Peng Fanf6cbb452022-07-26 16:40:42 +080018 { /* sentinel */ }
19};
20
Marek Vasut5b213c32025-01-24 15:50:51 +010021static const struct pinctrl_ops imx93_pinctrl_ops = {
Marek Vasut964d87c2025-01-24 15:50:56 +010022 .set_state = imx_pinctrl_set_state_mmio,
Marek Vasut4646bd92025-01-24 15:50:50 +010023};
24
Peng Fanf6cbb452022-07-26 16:40:42 +080025U_BOOT_DRIVER(imx93_pinctrl) = {
26 .name = "imx93-pinctrl",
27 .id = UCLASS_PINCTRL,
28 .of_match = of_match_ptr(imx93_pinctrl_match),
Marek Vasutf19a47f2025-01-24 15:50:54 +010029 .probe = imx_pinctrl_probe_mmio,
Marek Vasuta81f0d62025-01-24 15:50:55 +010030 .remove = imx_pinctrl_remove_mmio,
Peng Fanf6cbb452022-07-26 16:40:42 +080031 .priv_auto = sizeof(struct imx_pinctrl_priv),
Marek Vasut5b213c32025-01-24 15:50:51 +010032 .ops = &imx93_pinctrl_ops,
Peng Fanf6cbb452022-07-26 16:40:42 +080033 .flags = DM_FLAG_PRE_RELOC,
34};