The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/include/dt-bindings/pinctrl/rzg2l-pinctrl.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
    2 /*
    3  * This header provides constants for Renesas RZ/G2L family pinctrl bindings.
    4  *
    5  * Copyright (C) 2021 Renesas Electronics Corp.
    6  *
    7  */
    8 
    9 #ifndef __DT_BINDINGS_RZG2L_PINCTRL_H
   10 #define __DT_BINDINGS_RZG2L_PINCTRL_H
   11 
   12 #define RZG2L_PINS_PER_PORT     8
   13 
   14 /*
   15  * Create the pin index from its bank and position numbers and store in
   16  * the upper 16 bits the alternate function identifier
   17  */
   18 #define RZG2L_PORT_PINMUX(b, p, f)      ((b) * RZG2L_PINS_PER_PORT + (p) | ((f) << 16))
   19 
   20 /* Convert a port and pin label to its global pin index */
   21 #define RZG2L_GPIO(port, pin)   ((port) * RZG2L_PINS_PER_PORT + (pin))
   22 
   23 #endif /* __DT_BINDINGS_RZG2L_PINCTRL_H */

Cache object: 2c7f875c701fe71d08129282b2b83bd2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.