From 5496ea2d9bb343d8566649284cb496e02196fb2d Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 14 May 2020 09:12:17 -0500 Subject: [PATCH] soc: x86: apollo_lake: Fix incorrect DTS gpio nodelabel references The nodelabel references for the GPIO region MMU setup were incorrect. The nodelabel names didn't match what is in the dts. Fix this otherwise we get a compile error when enabling the functionality. Signed-off-by: Kumar Gala --- soc/x86/apollo_lake/soc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/soc/x86/apollo_lake/soc.c b/soc/x86/apollo_lake/soc.c index 2bc560ecf48..db1f10f2057 100644 --- a/soc/x86/apollo_lake/soc.c +++ b/soc/x86/apollo_lake/soc.c @@ -98,17 +98,17 @@ MMU_BOOT_REGION(DT_REG_ADDR(DT_INST(7, snps_designware_i2c)), 0x1000, /* for GPIO controller */ #ifdef CONFIG_GPIO_INTEL_APL -MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_n_000)), - DT_REG_SIZE(DT_NODELABEL(gpio_n_000)), +MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_n_000_031)), + DT_REG_SIZE(DT_NODELABEL(gpio_n_000_031)), (MMU_ENTRY_READ | MMU_ENTRY_WRITE)); -MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_nw_000)), - DT_REG_SIZE(DT_NODELABEL(gpio_nw_000)), +MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_nw_000_031)), + DT_REG_SIZE(DT_NODELABEL(gpio_nw_000_031)), (MMU_ENTRY_READ | MMU_ENTRY_WRITE)); -MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_w_000)), - DT_REG_SIZE(DT_NODELABEL(gpio_w_000)), +MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_w_000_031)), + DT_REG_SIZE(DT_NODELABEL(gpio_w_000_031)), (MMU_ENTRY_READ | MMU_ENTRY_WRITE)); -MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_sw_000)), - DT_REG_SIZE(DT_NODELABEL(gpio_sw_000)), +MMU_BOOT_REGION(DT_REG_ADDR(DT_NODELABEL(gpio_sw_000_031)), + DT_REG_SIZE(DT_NODELABEL(gpio_sw_000_031)), (MMU_ENTRY_READ | MMU_ENTRY_WRITE)); #endif