Source
static int ns2_pin_set_strength(struct pinctrl_dev *pctrldev, unsigned int pin,
/* Copyright (C) 2016 Broadcom Corporation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This file contains the Northstar2 IOMUX driver that supports group
* based PINMUX configuration. The PWM is functional only when the
* corresponding mfio pin group is selected as gpio.
*/
/*
* Northstar2 IOMUX register description
*
* @base: base address number
* @offset: register offset for mux configuration of a group
* @shift: bit shift for mux configuration of a group
* @mask: mask bits
* @alt: alternate function to set to
*/
struct ns2_mux {
unsigned int base;
unsigned int offset;
unsigned int shift;
unsigned int mask;
unsigned int alt;
};