]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: mach-omap2: omap3: Fix GPIO clocking in SPL
authorAdam Ford <aford173@gmail.com>
Fri, 14 Dec 2018 22:28:30 +0000 (16:28 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Dec 2018 02:20:48 +0000 (21:20 -0500)
commita1702746dfd985f69c1c32ae9618f066443e43a9
tree739784967b0a50c52a6908f8a2fa9ddb1ea7e62d
parent5766a271761210a78faf04b68136676a672fabc4
ARM: mach-omap2: omap3: Fix GPIO clocking in SPL

OMAP3_GPIO_x is needed to enable each GPIO bank on the OMAP3
boards. At one point, the #ifdef's were replaced with
if CONFIG_IS_ENABLED but this won't work for people who need
OMAP3_GPIO_x in SPL since the SPL prefix for this option isn't
used in Kconfig.  This patch moves the check to #if defined and
also makes Kconfig select the banks if CMD_GPIO is used which
makes the checks in the code less cumbersome.

Fixes: bd8a9c14c91c ("arm: mach-omap2/omap3/clock.c: Enable
all GPIO with CMD_GPIO")

Reported-by: Liam O'Shaughnessy <liam.o.shaughnessy@gumstix.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
[trini: Migrate omap3_igep00x0.h]
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/omap3/Kconfig
arch/arm/mach-omap2/omap3/clock.c
include/configs/omap3_igep00x0.h