blob: e795b5fd8ac2838b4abb6278b3b880b271f24756 [file] [log] [blame]
Lukasz Majewskif0b73d92018-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,
37 .priv_auto_alloc_size = sizeof(struct imx_pinctrl_priv),
38 .ops = &imx_pinctrl_ops,
39 .flags = DM_FLAG_PRE_RELOC,
40};