forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-omap1/ams-delta-fiq-handler.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/arch/arm/mach-omap1/ams-delta-fiq-handler.S
34 *
....@@ -7,34 +8,25 @@
78 * Copyright (C) 2004 Pete Trapps
89 * Copyright (C) 2006 Matt Callow
910 * Copyright (C) 2010 Janusz Krzysztofik
10
- *
11
- * This program is free software; you can redistribute it and/or modify it
12
- * under the terms of the GNU General Public License version 2
13
- * as published by the Free Software Foundation.
1411 */
1512
1613 #include <linux/linkage.h>
1714 #include <linux/platform_data/ams-delta-fiq.h>
15
+#include <linux/platform_data/gpio-omap.h>
1816
1917 #include <asm/assembler.h>
20
-#include <mach/board-ams-delta.h>
18
+#include <asm/irq.h>
2119
2220 #include "ams-delta-fiq.h"
21
+#include "board-ams-delta.h"
2322 #include "iomap.h"
2423 #include "soc.h"
2524
2625 /*
27
- * GPIO related definitions, copied from arch/arm/plat-omap/gpio.c.
28
- * Unfortunately, those were not placed in a separate header file.
26
+ * OMAP1510 GPIO related symbol copied from arch/arm/mach-omap1/gpio15xx.c.
27
+ * Unfortunately, it was not placed in a separate header file.
2928 */
3029 #define OMAP1510_GPIO_BASE 0xFFFCE000
31
-#define OMAP1510_GPIO_DATA_INPUT 0x00
32
-#define OMAP1510_GPIO_DATA_OUTPUT 0x04
33
-#define OMAP1510_GPIO_DIR_CONTROL 0x08
34
-#define OMAP1510_GPIO_INT_CONTROL 0x0c
35
-#define OMAP1510_GPIO_INT_MASK 0x10
36
-#define OMAP1510_GPIO_INT_STATUS 0x14
37
-#define OMAP1510_GPIO_PIN_CONTROL 0x18
3830
3931 /* GPIO register bitmasks */
4032 #define KEYBRD_DATA_MASK (0x1 << AMS_DELTA_GPIO_PIN_KEYBRD_DATA)