Source
6
6
* Copyright (C) 2012 John Crispin <john@phrozen.org>
7
7
*
8
8
*/
9
9
10
10
#include <linux/slab.h>
11
11
#include <linux/init.h>
12
12
#include <linux/module.h>
13
13
#include <linux/types.h>
14
14
#include <linux/of_platform.h>
15
15
#include <linux/mutex.h>
16
-
#include <linux/gpio.h>
16
+
#include <linux/gpio/driver.h>
17
17
#include <linux/io.h>
18
-
#include <linux/of_gpio.h>
19
18
#include <linux/clk.h>
20
19
#include <linux/err.h>
21
20
22
21
#include <lantiq_soc.h>
23
22
24
23
/*
25
24
* The Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a
26
25
* peripheral controller used to drive external shift register cascades. At most
27
26
* 3 groups of 8 bits can be driven. The hardware is able to allow the DSL modem
28
27
* to drive the 2 LSBs of the cascade automatically.