blob: 8d8ffec6d9ad0ffb908b628fc95ca68a372b653a [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
15static int imx93_pinctrl_probe(struct udevice *dev)
16{
17 struct imx_pinctrl_soc_info *info =
18 (struct imx_pinctrl_soc_info *)dev_get_driver_data(dev);
19
20 return imx_pinctrl_probe(dev, info);
21}
22
23static const struct udevice_id imx93_pinctrl_match[] = {
24 { .compatible = "fsl,imx93-iomuxc", .data = (ulong)&imx93_pinctrl_soc_info },
Peng Fan82ef2872024-12-03 23:42:52 +080025 { .compatible = "fsl,imx91-iomuxc", .data = (ulong)&imx93_pinctrl_soc_info },
Peng Fanf6cbb452022-07-26 16:40:42 +080026 { /* sentinel */ }
27};
28
29U_BOOT_DRIVER(imx93_pinctrl) = {
30 .name = "imx93-pinctrl",
31 .id = UCLASS_PINCTRL,
32 .of_match = of_match_ptr(imx93_pinctrl_match),
33 .probe = imx93_pinctrl_probe,
34 .remove = imx_pinctrl_remove,
35 .priv_auto = sizeof(struct imx_pinctrl_priv),
36 .ops = &imx_pinctrl_ops,
37 .flags = DM_FLAG_PRE_RELOC,
38};