Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  *  BSD LICENSE
0003  *
0004  *  Copyright(c) 2017 Broadcom Corporation.  All rights reserved.
0005  *
0006  *  Redistribution and use in source and binary forms, with or without
0007  *  modification, are permitted provided that the following conditions
0008  *  are met:
0009  *
0010  *    * Redistributions of source code must retain the above copyright
0011  *      notice, this list of conditions and the following disclaimer.
0012  *    * Redistributions in binary form must reproduce the above copyright
0013  *      notice, this list of conditions and the following disclaimer in
0014  *      the documentation and/or other materials provided with the
0015  *      distribution.
0016  *    * Neither the name of Broadcom Corporation nor the names of its
0017  *      contributors may be used to endorse or promote products derived
0018  *      from this software without specific prior written permission.
0019  *
0020  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0021  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0022  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0023  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0024  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0025  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0026  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0027  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0028  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0029  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0030  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0031  */
0032 
0033 #ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
0034 #define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
0035 
0036 /* Alternate functions available in MUX controller */
0037 #define MODE_NITRO              0
0038 #define MODE_NAND               1
0039 #define MODE_PNOR               2
0040 #define MODE_GPIO               3
0041 
0042 /* Pad configuration attribute */
0043 #define PAD_SLEW_RATE_ENA           (1 << 0)
0044 #define PAD_SLEW_RATE_ENA_MASK          (1 << 0)
0045 
0046 #define PAD_DRIVE_STRENGTH_2_MA         (0 << 1)
0047 #define PAD_DRIVE_STRENGTH_4_MA         (1 << 1)
0048 #define PAD_DRIVE_STRENGTH_6_MA         (2 << 1)
0049 #define PAD_DRIVE_STRENGTH_8_MA         (3 << 1)
0050 #define PAD_DRIVE_STRENGTH_10_MA        (4 << 1)
0051 #define PAD_DRIVE_STRENGTH_12_MA        (5 << 1)
0052 #define PAD_DRIVE_STRENGTH_14_MA        (6 << 1)
0053 #define PAD_DRIVE_STRENGTH_16_MA        (7 << 1)
0054 #define PAD_DRIVE_STRENGTH_MASK         (7 << 1)
0055 
0056 #define PAD_PULL_UP_ENA             (1 << 4)
0057 #define PAD_PULL_UP_ENA_MASK            (1 << 4)
0058 
0059 #define PAD_PULL_DOWN_ENA           (1 << 5)
0060 #define PAD_PULL_DOWN_ENA_MASK          (1 << 5)
0061 
0062 #define PAD_INPUT_PATH_DIS          (1 << 6)
0063 #define PAD_INPUT_PATH_DIS_MASK         (1 << 6)
0064 
0065 #define PAD_HYSTERESIS_ENA          (1 << 7)
0066 #define PAD_HYSTERESIS_ENA_MASK         (1 << 7)
0067 
0068 #endif