]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: ls102xa: Add dummy gpio.h to enable CONFIG_OF_CONTROL
authorRuchika Gupta <ruchika.gupta@freescale.com>
Wed, 10 Dec 2014 06:17:03 +0000 (11:47 +0530)
committerYork Sun <yorksun@freescale.com>
Sat, 24 Jan 2015 04:29:14 +0000 (22:29 -0600)
commitd8f527578e15c307e93f851014f382e94f78cf39
treec25916bb7f6c03518ab2b7abdc46ad3e23de3080
parent0f5e5579f2b75053e5f05bcba890f7ab2409b460
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>
arch/arm/include/asm/arch-ls102xa/gpio.h [new file with mode: 0644]