pinctrl-imx8mm.c (597473720f4dc69749542bfcfed4a927a43d935e) | pinctrl-imx8mm.c (a302b0e1001a889e5dd64b09ca76892f01b9610e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2017-2018 NXP 4 */ 5 6#include <linux/err.h> 7#include <linux/init.h> | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2017-2018 NXP 4 */ 5 6#include <linux/err.h> 7#include <linux/init.h> |
8#include <linux/module.h> |
|
8#include <linux/of_device.h> 9#include <linux/pinctrl/pinctrl.h> 10#include <linux/platform_device.h> 11 12#include "pinctrl-imx.h" 13 14enum imx8mm_pads { 15 MX8MM_PAD_RESERVE0 = 0, --- 305 unchanged lines hidden (view full) --- 321 .npins = ARRAY_SIZE(imx8mm_pinctrl_pads), 322 .gpr_compatible = "fsl,imx8mm-iomuxc-gpr", 323}; 324 325static const struct of_device_id imx8mm_pinctrl_of_match[] = { 326 { .compatible = "fsl,imx8mm-iomuxc", .data = &imx8mm_pinctrl_info, }, 327 { /* sentinel */ } 328}; | 9#include <linux/of_device.h> 10#include <linux/pinctrl/pinctrl.h> 11#include <linux/platform_device.h> 12 13#include "pinctrl-imx.h" 14 15enum imx8mm_pads { 16 MX8MM_PAD_RESERVE0 = 0, --- 305 unchanged lines hidden (view full) --- 322 .npins = ARRAY_SIZE(imx8mm_pinctrl_pads), 323 .gpr_compatible = "fsl,imx8mm-iomuxc-gpr", 324}; 325 326static const struct of_device_id imx8mm_pinctrl_of_match[] = { 327 { .compatible = "fsl,imx8mm-iomuxc", .data = &imx8mm_pinctrl_info, }, 328 { /* sentinel */ } 329}; |
330MODULE_DEVICE_TABLE(of, imx8mm_pinctrl_of_match); |
|
329 330static int imx8mm_pinctrl_probe(struct platform_device *pdev) 331{ 332 return imx_pinctrl_probe(pdev, &imx8mm_pinctrl_info); 333} 334 335static struct platform_driver imx8mm_pinctrl_driver = { 336 .driver = { --- 4 unchanged lines hidden (view full) --- 341 .probe = imx8mm_pinctrl_probe, 342}; 343 344static int __init imx8mm_pinctrl_init(void) 345{ 346 return platform_driver_register(&imx8mm_pinctrl_driver); 347} 348arch_initcall(imx8mm_pinctrl_init); | 331 332static int imx8mm_pinctrl_probe(struct platform_device *pdev) 333{ 334 return imx_pinctrl_probe(pdev, &imx8mm_pinctrl_info); 335} 336 337static struct platform_driver imx8mm_pinctrl_driver = { 338 .driver = { --- 4 unchanged lines hidden (view full) --- 343 .probe = imx8mm_pinctrl_probe, 344}; 345 346static int __init imx8mm_pinctrl_init(void) 347{ 348 return platform_driver_register(&imx8mm_pinctrl_driver); 349} 350arch_initcall(imx8mm_pinctrl_init); |
351 352MODULE_AUTHOR("Bai Ping <ping.bai@nxp.com>"); 353MODULE_DESCRIPTION("NXP i.MX8MM pinctrl driver"); 354MODULE_LICENSE("GPL v2"); |
|