.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/mach-ep93xx/core.c |
---|
3 | 4 | * Core routines for Cirrus EP93xx chips. |
---|
.. | .. |
---|
7 | 8 | * |
---|
8 | 9 | * Thanks go to Michael Burian and Ray Lehtiniemi for their key |
---|
9 | 10 | * role in the ep93xx linux community. |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License as published by |
---|
13 | | - * the Free Software Foundation; either version 2 of the License, or (at |
---|
14 | | - * your option) any later version. |
---|
15 | 11 | */ |
---|
16 | 12 | |
---|
17 | 13 | #define pr_fmt(fmt) "ep93xx " KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
39 | 35 | #include <linux/usb/ohci_pdriver.h> |
---|
40 | 36 | #include <linux/random.h> |
---|
41 | 37 | |
---|
42 | | -#include <mach/hardware.h> |
---|
| 38 | +#include "hardware.h" |
---|
43 | 39 | #include <linux/platform_data/video-ep93xx.h> |
---|
44 | 40 | #include <linux/platform_data/keypad-ep93xx.h> |
---|
45 | 41 | #include <linux/platform_data/spi-ep93xx.h> |
---|
46 | | -#include <mach/gpio-ep93xx.h> |
---|
| 42 | +#include <linux/soc/cirrus/ep93xx.h> |
---|
| 43 | + |
---|
| 44 | +#include "gpio-ep93xx.h" |
---|
47 | 45 | |
---|
48 | 46 | #include <asm/mach/arch.h> |
---|
49 | 47 | #include <asm/mach/map.h> |
---|
.. | .. |
---|
123 | 121 | /** |
---|
124 | 122 | * ep93xx_chip_revision() - returns the EP93xx chip revision |
---|
125 | 123 | * |
---|
126 | | - * See <mach/platform.h> for more information. |
---|
| 124 | + * See "platform.h" for more information. |
---|
127 | 125 | */ |
---|
128 | 126 | unsigned int ep93xx_chip_revision(void) |
---|
129 | 127 | { |
---|
.. | .. |
---|
141 | 139 | *************************************************************************/ |
---|
142 | 140 | static struct resource ep93xx_gpio_resource[] = { |
---|
143 | 141 | DEFINE_RES_MEM(EP93XX_GPIO_PHYS_BASE, 0xcc), |
---|
| 142 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO_AB), |
---|
| 143 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO0MUX), |
---|
| 144 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO1MUX), |
---|
| 145 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO2MUX), |
---|
| 146 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO3MUX), |
---|
| 147 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO4MUX), |
---|
| 148 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO5MUX), |
---|
| 149 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO6MUX), |
---|
| 150 | + DEFINE_RES_IRQ(IRQ_EP93XX_GPIO7MUX), |
---|
144 | 151 | }; |
---|
145 | 152 | |
---|
146 | 153 | static struct platform_device ep93xx_gpio_device = { |
---|