soc: arm: beetle: Use DT_NODELABEL for arm,cmsdk-gpio references

Move to using DT_NODELABEL to get references to determine if specific
GPIO ports are enabled in the beetle SoC code.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-03-31 20:35:26 -05:00 committed by Kumar Gala
commit e0a1e07bbd

View file

@ -11,13 +11,13 @@
#include <soc_power.h> #include <soc_power.h>
#include <arch/cpu.h> #include <arch/cpu.h>
#ifdef CONFIG_GPIO_CMSDK_AHB_PORT0 #if DT_HAS_NODE(DT_NODELABEL(gpio0))
#define CLK_BIT_GPIO0 _BEETLE_GPIO0 #define CLK_BIT_GPIO0 _BEETLE_GPIO0
#else #else
#define CLK_BIT_GPIO0 0 #define CLK_BIT_GPIO0 0
#endif #endif
#ifdef CONFIG_GPIO_CMSDK_AHB_PORT1 #if DT_HAS_NODE(DT_NODELABEL(gpio1))
#define CLK_BIT_GPIO1 _BEETLE_GPIO1 #define CLK_BIT_GPIO1 _BEETLE_GPIO1
#else #else
#define CLK_BIT_GPIO1 0 #define CLK_BIT_GPIO1 0