Commit a7379a2a authored by Tejas Patel's avatar Tejas Patel Committed by Rajan Vaja
Browse files

plat: zynqmp: Change macro name of PM_BOOT_HEALTH_STATUS_REG



For boot health status PMU Global General Storage Register 4 is
used. GGS4 can be used for other purpose along with boot health
status. So, change its name from PM_BOOT_HEALTH_STATUS_REG
to PMU_GLOBAL_GEN_STORAGE4.
Signed-off-by: default avatarTejas Patel <tejas.patel@xilinx.com>
Signed-off-by: default avatarRajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I2f5c4c6a161121e7cdb4b9f0f8711d0dad16c372
parent 7fc19b8e
/* /*
* Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -341,8 +341,9 @@ ...@@ -341,8 +341,9 @@
#define PGGS_BASEADDR (0xFFD80050U) #define PGGS_BASEADDR (0xFFD80050U)
#define PGGS_NUM_REGS U(4) #define PGGS_NUM_REGS U(4)
/* Warm restart boot health status register and mask */ /* PMU GGS4 register 4 is used for warm restart boot health status */
#define PM_BOOT_HEALTH_STATUS_REG (GGS_BASEADDR + U(0x10)) #define PMU_GLOBAL_GEN_STORAGE4 (GGS_BASEADDR + 0x10)
/* Warm restart boot health status mask */
#define PM_BOOT_HEALTH_STATUS_MASK U(0x01) #define PM_BOOT_HEALTH_STATUS_MASK U(0x01)
/*AFI registers */ /*AFI registers */
......
/* /*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -575,7 +575,7 @@ static enum pm_ret_status pm_ioctl_ulpi_reset(void) ...@@ -575,7 +575,7 @@ static enum pm_ret_status pm_ioctl_ulpi_reset(void)
*/ */
static enum pm_ret_status pm_ioctl_set_boot_health_status(unsigned int value) static enum pm_ret_status pm_ioctl_set_boot_health_status(unsigned int value)
{ {
return pm_mmio_write(PM_BOOT_HEALTH_STATUS_REG, return pm_mmio_write(PMU_GLOBAL_GEN_STORAGE4,
PM_BOOT_HEALTH_STATUS_MASK, value); PM_BOOT_HEALTH_STATUS_MASK, value);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment