Source
1
+
// SPDX-License-Identifier: GPL-2.0
1
2
/*
2
3
* Intel Whiskey Cove PMIC GPIO Driver
3
4
*
4
5
* This driver is written based on gpio-crystalcove.c
5
6
*
6
7
* Copyright (C) 2016 Intel Corporation. All rights reserved.
7
-
*
8
-
* This program is free software; you can redistribute it and/or
9
-
* modify it under the terms of the GNU General Public License version
10
-
* 2 as published by the Free Software Foundation.
11
-
*
12
-
* This program is distributed in the hope that it will be useful,
13
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
-
* GNU General Public License for more details.
16
8
*/
17
9
​
18
10
#include <linux/bitops.h>
19
11
#include <linux/gpio/driver.h>
20
12
#include <linux/interrupt.h>
21
13
#include <linux/mfd/intel_soc_pmic.h>
22
14
#include <linux/module.h>
23
15
#include <linux/platform_device.h>
24
16
#include <linux/regmap.h>
25
17
#include <linux/seq_file.h>