Source
5
5
*
6
6
* This program is free software; you can redistribute it and/or
7
7
* modify it under the terms of version 2 of the GNU General Public License
8
8
* as published by the Free Software Foundation.
9
9
*/
10
10
11
11
#include <linux/kernel.h>
12
12
#include <linux/spinlock.h>
13
13
#include <linux/module.h>
14
14
#include <linux/platform_device.h>
15
-
#include <linux/gpio.h>
15
+
#include <linux/gpio/driver.h>
16
16
#include <linux/io.h>
17
17
#include <linux/cs5535.h>
18
18
#include <asm/msr.h>
19
19
20
20
#define DRV_NAME "cs5535-gpio"
21
21
22
22
/*
23
23
* Some GPIO pins
24
24
* 31-29,23 : reserved (always mask out)
25
25
* 28 : Power Button