blob: 9a5b9de6d756130b34fee1d5c5b50598851a486a [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 },
25 { /* sentinel */ }
26};
27
28U_BOOT_DRIVER(imx93_pinctrl) = {
29 .name = "imx93-pinctrl",
30 .id = UCLASS_PINCTRL,
31 .of_match = of_match_ptr(imx93_pinctrl_match),
32 .probe = imx93_pinctrl_probe,
33 .remove = imx_pinctrl_remove,
34 .priv_auto = sizeof(struct imx_pinctrl_priv),
35 .ops = &imx_pinctrl_ops,
36 .flags = DM_FLAG_PRE_RELOC,
37};