| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/mach-omap1/ams-delta-fiq-handler.S |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * Copyright (C) 2004 Pete Trapps |
|---|
| 8 | 9 | * Copyright (C) 2006 Matt Callow |
|---|
| 9 | 10 | * 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. |
|---|
| 14 | 11 | */ |
|---|
| 15 | 12 | |
|---|
| 16 | 13 | #include <linux/linkage.h> |
|---|
| 17 | 14 | #include <linux/platform_data/ams-delta-fiq.h> |
|---|
| 15 | +#include <linux/platform_data/gpio-omap.h> |
|---|
| 18 | 16 | |
|---|
| 19 | 17 | #include <asm/assembler.h> |
|---|
| 20 | | -#include <mach/board-ams-delta.h> |
|---|
| 18 | +#include <asm/irq.h> |
|---|
| 21 | 19 | |
|---|
| 22 | 20 | #include "ams-delta-fiq.h" |
|---|
| 21 | +#include "board-ams-delta.h" |
|---|
| 23 | 22 | #include "iomap.h" |
|---|
| 24 | 23 | #include "soc.h" |
|---|
| 25 | 24 | |
|---|
| 26 | 25 | /* |
|---|
| 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. |
|---|
| 29 | 28 | */ |
|---|
| 30 | 29 | #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 |
|---|
| 38 | 30 | |
|---|
| 39 | 31 | /* GPIO register bitmasks */ |
|---|
| 40 | 32 | #define KEYBRD_DATA_MASK (0x1 << AMS_DELTA_GPIO_PIN_KEYBRD_DATA) |
|---|