forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-ep93xx/core.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * arch/arm/mach-ep93xx/core.c
34 * Core routines for Cirrus EP93xx chips.
....@@ -7,11 +8,6 @@
78 *
89 * Thanks go to Michael Burian and Ray Lehtiniemi for their key
910 * 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.
1511 */
1612
1713 #define pr_fmt(fmt) "ep93xx " KBUILD_MODNAME ": " fmt
....@@ -39,11 +35,13 @@
3935 #include <linux/usb/ohci_pdriver.h>
4036 #include <linux/random.h>
4137
42
-#include <mach/hardware.h>
38
+#include "hardware.h"
4339 #include <linux/platform_data/video-ep93xx.h>
4440 #include <linux/platform_data/keypad-ep93xx.h>
4541 #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"
4745
4846 #include <asm/mach/arch.h>
4947 #include <asm/mach/map.h>
....@@ -123,7 +121,7 @@
123121 /**
124122 * ep93xx_chip_revision() - returns the EP93xx chip revision
125123 *
126
- * See <mach/platform.h> for more information.
124
+ * See "platform.h" for more information.
127125 */
128126 unsigned int ep93xx_chip_revision(void)
129127 {
....@@ -141,6 +139,15 @@
141139 *************************************************************************/
142140 static struct resource ep93xx_gpio_resource[] = {
143141 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),
144151 };
145152
146153 static struct platform_device ep93xx_gpio_device = {