Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ruchika Gupta | 71bed68 | 2014-12-10 11:47:03 +0530 | [diff] [blame] | 2 | /* |
Ruchika Gupta | 9c078c3 | 2015-07-27 09:07:39 +0530 | [diff] [blame] | 3 | * Copyright 2014 Freescale Semiconductor, Inc. |
Ruchika Gupta | 71bed68 | 2014-12-10 11:47:03 +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_LS102XA_GPIO_H_ |
| 14 | #define __ASM_ARCH_LS102XA_GPIO_H_ |
| 15 | |
Biwen Li | db5d53b | 2021-02-05 19:01:47 +0800 | [diff] [blame] | 16 | struct ccsr_gpio { |
| 17 | u32 gpdir; |
| 18 | u32 gpodr; |
| 19 | u32 gpdat; |
| 20 | u32 gpier; |
| 21 | u32 gpimr; |
| 22 | u32 gpicr; |
| 23 | u32 gpibe; |
| 24 | }; |
| 25 | |
| 26 | struct mpc8xxx_gpio_plat { |
| 27 | ulong addr; |
| 28 | ulong size; |
| 29 | uint ngpios; |
| 30 | }; |
| 31 | |
Ruchika Gupta | 71bed68 | 2014-12-10 11:47:03 +0530 | [diff] [blame] | 32 | #endif |