blob: adf3073f1be087eb7992d93349bf2c5f4a2e7e74 [file] [log] [blame]
Lukasz Majewskib9f5a482018-11-20 00:38:06 +01001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018 DENX Software Engineering
4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
5 */
6
Lukasz Majewskib9f5a482018-11-20 00:38:06 +01007#include <dm.h>
8#include <dm/pinctrl.h>
9
10#include "pinctrl-imx.h"
11
12static struct imx_pinctrl_soc_info vf610_pinctrl_soc_info = {
13 .flags = SHARE_MUX_CONF_REG | ZERO_OFFSET_VALID,
14};
15
16static int vf610_pinctrl_probe(struct udevice *dev)
17{
18 struct imx_pinctrl_soc_info *info =
19 (struct imx_pinctrl_soc_info *)dev_get_driver_data(dev);
20
21 return imx_pinctrl_probe(dev, info);
22}
23
24static const struct udevice_id vf610_pinctrl_match[] = {
25 { .compatible = "fsl,vf610-iomuxc",
26 .data = (ulong)&vf610_pinctrl_soc_info },
27 { /* sentinel */ }
28};
29
30U_BOOT_DRIVER(vf610_pinctrl) = {
31 .name = "vf610-pinctrl",
32 .id = UCLASS_PINCTRL,
33 .of_match = of_match_ptr(vf610_pinctrl_match),
34 .probe = vf610_pinctrl_probe,
35 .remove = imx_pinctrl_remove,
Simon Glass8a2b47f2020-12-03 16:55:17 -070036 .priv_auto = sizeof(struct imx_pinctrl_priv),
Lukasz Majewskib9f5a482018-11-20 00:38:06 +010037 .ops = &imx_pinctrl_ops,
38 .flags = DM_FLAG_PRE_RELOC,
39};