diff options
author | Janusz Krzysztofik | 2018-06-21 17:41:26 -0500 |
---|---|---|
committer | Tony Lindgren | 2018-07-03 01:05:14 -0500 |
commit | dc8fbeb0ffde1f2395449006019e2c89c177df50 (patch) | |
tree | 631cfc6b08cc4de9cfeeb86f896ad15fdb827808 /include/linux/platform_data | |
parent | a32d5ce1dbf9389ad28d438dbcdaa520a913cde8 (diff) | |
download | remoteproc-dc8fbeb0ffde1f2395449006019e2c89c177df50.tar.gz remoteproc-dc8fbeb0ffde1f2395449006019e2c89c177df50.tar.xz remoteproc-dc8fbeb0ffde1f2395449006019e2c89c177df50.zip |
ARM: OMAP1: Get rid of <mach/ams-delta-fiq.h>
Split the header file into two parts and move them to directories where
they belong.
Information on internal structure of FIQ buffer is moved to
<linux/platform_data/ams-delta-fiq.h> for ams-delta-serio driver use.
Other information used by ams-delta board init file and FIQ code is
made local to mach-omap1 root directory.
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/ams-delta-fiq.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/include/linux/platform_data/ams-delta-fiq.h b/include/linux/platform_data/ams-delta-fiq.h new file mode 100644 index 000000000000..dc0f835ea918 --- /dev/null +++ b/include/linux/platform_data/ams-delta-fiq.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | |||
3 | /* | ||
4 | * include/linux/platform_data/ams-delta-fiq.h | ||
5 | * | ||
6 | * Taken from the original Amstrad modifications to fiq.h | ||
7 | * | ||
8 | * Copyright (c) 2004 Amstrad Plc | ||
9 | * Copyright (c) 2006 Matt Callow | ||
10 | * Copyright (c) 2010 Janusz Krzysztofik | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | #ifndef __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H | ||
17 | #define __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H | ||
18 | |||
19 | /* | ||
20 | * These are the offsets from the beginning of the fiq_buffer. They are put here | ||
21 | * since the buffer and header need to be accessed by drivers servicing devices | ||
22 | * which generate GPIO interrupts - e.g. keyboard, modem, hook switch. | ||
23 | */ | ||
24 | #define FIQ_MASK 0 | ||
25 | #define FIQ_STATE 1 | ||
26 | #define FIQ_KEYS_CNT 2 | ||
27 | #define FIQ_TAIL_OFFSET 3 | ||
28 | #define FIQ_HEAD_OFFSET 4 | ||
29 | #define FIQ_BUF_LEN 5 | ||
30 | #define FIQ_KEY 6 | ||
31 | #define FIQ_MISSED_KEYS 7 | ||
32 | #define FIQ_BUFFER_START 8 | ||
33 | #define FIQ_GPIO_INT_MASK 9 | ||
34 | #define FIQ_KEYS_HICNT 10 | ||
35 | #define FIQ_IRQ_PEND 11 | ||
36 | #define FIQ_SIR_CODE_L1 12 | ||
37 | #define IRQ_SIR_CODE_L2 13 | ||
38 | |||
39 | #define FIQ_CNT_INT_00 14 | ||
40 | #define FIQ_CNT_INT_KEY 15 | ||
41 | #define FIQ_CNT_INT_MDM 16 | ||
42 | #define FIQ_CNT_INT_03 17 | ||
43 | #define FIQ_CNT_INT_HSW 18 | ||
44 | #define FIQ_CNT_INT_05 19 | ||
45 | #define FIQ_CNT_INT_06 20 | ||
46 | #define FIQ_CNT_INT_07 21 | ||
47 | #define FIQ_CNT_INT_08 22 | ||
48 | #define FIQ_CNT_INT_09 23 | ||
49 | #define FIQ_CNT_INT_10 24 | ||
50 | #define FIQ_CNT_INT_11 25 | ||
51 | #define FIQ_CNT_INT_12 26 | ||
52 | #define FIQ_CNT_INT_13 27 | ||
53 | #define FIQ_CNT_INT_14 28 | ||
54 | #define FIQ_CNT_INT_15 29 | ||
55 | |||
56 | #define FIQ_CIRC_BUFF 30 /*Start of circular buffer */ | ||
57 | |||
58 | #ifndef __ASSEMBLER__ | ||
59 | extern unsigned int fiq_buffer[]; | ||
60 | #endif | ||
61 | |||
62 | #endif | ||