]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Fri, 22 Jul 2022 09:30:14 +0000 (11:30 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 19 Oct 2022 11:30:48 +0000 (19:30 +0800)
commitd774b2651a3b44fa2b821e1b412732aa6c4d2d45
tree4dc1603a7146ab30e81ed3e80e7a5763c28c0092
parent3a61ee7fae0d3ea9d00b55290137ccce5036e647
rockchip: rk3399: fix incorrect ifdef check on SPL_GPIO

The check to perform is on CONFIG_SPL_GPIO and not SPL_GPIO.
Because this was never compiled in, it missed an include of cru.h that
was not detected before. Let's include it too.

Also switch to IS_ENABLED in-code check as it is the preferred
inclusion/exclusion mechanism.

Fixes: 07586ee4322a ("rockchip: rk3399: Support common spl_board_init")
Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3399/rk3399.c