| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Loongson-2F/3A/3B GPIO Support |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com> |
|---|
| 6 | 7 | * Copyright (c) 2013 Hongbing Hu <huhb@lemote.com> |
|---|
| 7 | 8 | * Copyright (c) 2014 Huacai Chen <chenhc@lemote.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | 11 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 26 | 22 | #define STLS2F_N_GPIO 4 |
|---|
| 27 | 23 | #define STLS3A_N_GPIO 16 |
|---|
| 28 | 24 | |
|---|
| 29 | | -#ifdef CONFIG_CPU_LOONGSON3 |
|---|
| 25 | +#ifdef CONFIG_CPU_LOONGSON64 |
|---|
| 30 | 26 | #define LOONGSON_N_GPIO STLS3A_N_GPIO |
|---|
| 31 | 27 | #else |
|---|
| 32 | 28 | #define LOONGSON_N_GPIO STLS2F_N_GPIO |
|---|