blob: 14e2e9d3ee61c2a1a082b222523868330d14876e [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
7#include <common.h>
8#include <dm.h>
9#include <dm/pinctrl.h>
10
11#include "pinctrl-imx.h"
12
13static struct imx_pinctrl_soc_info vf610_pinctrl_soc_info = {
14 .flags = SHARE_MUX_CONF_REG | ZERO_OFFSET_VALID,
15};
16
17static int vf610_pinctrl_probe(struct udevice *dev)
18{
19 struct imx_pinctrl_soc_info *info =
20 (struct imx_pinctrl_soc_info *)dev_get_driver_data(dev);
21
22 return imx_pinctrl_probe(dev, info);
23}
24
25static const struct udevice_id vf610_pinctrl_match[] = {
26 { .compatible = "fsl,vf610-iomuxc",
27 .data = (ulong)&vf610_pinctrl_soc_info },
28 { /* sentinel */ }
29};
30
31U_BOOT_DRIVER(vf610_pinctrl) = {
32 .name = "vf610-pinctrl",
33 .id = UCLASS_PINCTRL,
34 .of_match = of_match_ptr(vf610_pinctrl_match),
35 .probe = vf610_pinctrl_probe,
36 .remove = imx_pinctrl_remove,
Simon Glass8a2b47f2020-12-03 16:55:17 -070037 .priv_auto = sizeof(struct imx_pinctrl_priv),
Lukasz Majewskib9f5a482018-11-20 00:38:06 +010038 .ops = &imx_pinctrl_ops,
39 .flags = DM_FLAG_PRE_RELOC,
40};