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/sppctl.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  * Sunplus dt-bindings Pinctrl header file
    4  * Copyright (C) Sunplus Tech / Tibbo Tech.
    5  * Author: Dvorkin Dmitry <dvorkin@tibbo.com>
    6  */
    7 
    8 #ifndef __DT_BINDINGS_PINCTRL_SPPCTL_H__
    9 #define __DT_BINDINGS_PINCTRL_SPPCTL_H__
   10 
   11 #define IOP_G_MASTE             (0x01 << 0)
   12 #define IOP_G_FIRST             (0x01 << 1)
   13 
   14 #define SPPCTL_PCTL_G_PMUX      (0x00        | IOP_G_MASTE)
   15 #define SPPCTL_PCTL_G_GPIO      (IOP_G_FIRST | IOP_G_MASTE)
   16 #define SPPCTL_PCTL_G_IOPP      (IOP_G_FIRST | 0x00)
   17 
   18 #define SPPCTL_PCTL_L_OUT       (0x01 << 0)     /* Output LOW        */
   19 #define SPPCTL_PCTL_L_OU1       (0x01 << 1)     /* Output HIGH       */
   20 #define SPPCTL_PCTL_L_INV       (0x01 << 2)     /* Input Invert      */
   21 #define SPPCTL_PCTL_L_ONV       (0x01 << 3)     /* Output Invert     */
   22 #define SPPCTL_PCTL_L_ODR       (0x01 << 4)     /* Output Open Drain */
   23 
   24 /*
   25  * pack into 32-bit value:
   26  * pin# (8bit), typ (8bit), function (8bit), flag (8bit)
   27  */
   28 #define SPPCTL_IOPAD(pin, typ, fun, flg)        (((pin) << 24) | ((typ) << 16) | \
   29                                                 ((fun) << 8) | (flg))
   30 
   31 #endif

Cache object: dd4de83b846b3a93cc2fd9aba00af37d


[ 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.