mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
arm: ls102xa: Add dummy gpio.h to enable CONFIG_OF_CONTROL
If CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled. It includes <asm/gpio.h> and then <asm/gpio.h> includes <asm/arch/gpio.h>. As a result, all the SoCs that enable CONFIG_OF_CONTROL must have <asm/arch/gpio.h> even if they do not support GPIO. The right fix would be to split the lib/fdtdec.c to remove dependency on GPIO.This commit adds a dummy <asm/arch/gpio.h> to support OF_CONTROL for LS102x platform. This dummy header will be removed after FDT-GPIO stuff is fixed correctly. Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
0f5e5579f2
commit
d8f527578e
1 changed files with 15 additions and 0 deletions
15
arch/arm/include/asm/arch-ls102xa/gpio.h
Normal file
15
arch/arm/include/asm/arch-ls102xa/gpio.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
/*
|
||||
* Dummy header file to enable CONFIG_OF_CONTROL.
|
||||
* If CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled.
|
||||
* It includes <asm/arch/gpio.h> via <asm/gpio.h>, so those SoCs that enable
|
||||
* OF_CONTROL must have arch/gpio.h.
|
||||
*/
|
||||
|
||||
#ifndef __ASM_ARCH_LS102XA_GPIO_H_
|
||||
#define __ASM_ARCH_LS102XA_GPIO_H_
|
||||
|
||||
#endif
|
Loading…
Add table
Reference in a new issue