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:
parent
527f526f15
commit
e0a1e07bbd
1 changed files with 2 additions and 2 deletions
|
@ -11,13 +11,13 @@
|
|||
#include <soc_power.h>
|
||||
#include <arch/cpu.h>
|
||||
|
||||
#ifdef CONFIG_GPIO_CMSDK_AHB_PORT0
|
||||
#if DT_HAS_NODE(DT_NODELABEL(gpio0))
|
||||
#define CLK_BIT_GPIO0 _BEETLE_GPIO0
|
||||
#else
|
||||
#define CLK_BIT_GPIO0 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GPIO_CMSDK_AHB_PORT1
|
||||
#if DT_HAS_NODE(DT_NODELABEL(gpio1))
|
||||
#define CLK_BIT_GPIO1 _BEETLE_GPIO1
|
||||
#else
|
||||
#define CLK_BIT_GPIO1 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue