Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ruchika Gupta | 1ef97e7 | 2014-12-10 11:52:50 +0530 | [diff] [blame] | 2 | /* |
Ruchika Gupta | 9c078c3 | 2015-07-27 09:07:39 +0530 | [diff] [blame] | 3 | * Copyright 2014 Freescale Semiconductor, Inc. |
Ruchika Gupta | 1ef97e7 | 2014-12-10 11:52:50 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * Dummy header file to enable CONFIG_OF_CONTROL. |
| 8 | * If CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled. |
| 9 | * It includes <asm/arch/gpio.h> via <asm/gpio.h>, so those SoCs that enable |
| 10 | * OF_CONTROL must have arch/gpio.h. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __ASM_ARCH_MX85XX_GPIO_H |
| 14 | #define __ASM_ARCH_MX85XX_GPIO_H |
| 15 | |
mario.six@gdsys.cc | 5b59a35 | 2016-05-25 15:15:20 +0200 | [diff] [blame] | 16 | #ifndef CONFIG_MPC85XX_GPIO |
Oleksandr G Zhadan | 2d24af1 | 2015-04-28 13:59:50 -0400 | [diff] [blame] | 17 | #include <asm/mpc85xx_gpio.h> |
mario.six@gdsys.cc | 5b59a35 | 2016-05-25 15:15:20 +0200 | [diff] [blame] | 18 | #endif |
Oleksandr G Zhadan | 2d24af1 | 2015-04-28 13:59:50 -0400 | [diff] [blame] | 19 | |
Mario Six | d006f68 | 2018-01-15 11:07:48 +0100 | [diff] [blame] | 20 | struct mpc8xxx_gpio_plat { |
Bin Meng | 09fb76d | 2021-02-25 17:22:50 +0800 | [diff] [blame] | 21 | phys_addr_t addr; |
Hamish Martin | 47ca9fc | 2016-06-14 10:17:05 +1200 | [diff] [blame] | 22 | unsigned long size; |
| 23 | uint ngpios; |
| 24 | }; |
| 25 | |
Ruchika Gupta | 1ef97e7 | 2014-12-10 11:52:50 +0530 | [diff] [blame] | 26 | #endif |