aboutsummaryrefslogtreecommitdiff
path: root/drivers/st/reset/stm32mp1_reset.c
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2019-02-14 11:13:39 +0100
committerYann Gautier <yann.gautier@st.com>2019-02-14 11:20:23 +0100
commit3f9c97842e5780e0e21f8eb36844c8154635c8c4 (patch)
tree5133e202c726138211e000550147376d67068125 /drivers/st/reset/stm32mp1_reset.c
parentc9d75b3cf98c7f2a78d3f916bcf9e2b3a2c55967 (diff)
downloadtrusted-firmware-a-3f9c97842e5780e0e21f8eb36844c8154635c8c4.tar.gz
stm32mp1: make functions and macros more common
Mainly remove suffix 1 from prefix stm32mp1 in several macros and functions that can be used in drivers shared by different platforms. Change-Id: I2295c44f5b1edac7e80a93c0e8dfd671b36e88e7 Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Diffstat (limited to 'drivers/st/reset/stm32mp1_reset.c')
-rw-r--r--drivers/st/reset/stm32mp1_reset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/st/reset/stm32mp1_reset.c b/drivers/st/reset/stm32mp1_reset.c
index f58e10b27..aac74e15d 100644
--- a/drivers/st/reset/stm32mp1_reset.c
+++ b/drivers/st/reset/stm32mp1_reset.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, STMicroelectronics - All Rights Reserved
+ * Copyright (c) 2018-2019, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -10,14 +10,14 @@
#include <common/bl_common.h>
#include <common/debug.h>
+#include <drivers/st/stm32mp_reset.h>
#include <drivers/st/stm32mp1_rcc.h>
-#include <drivers/st/stm32mp1_reset.h>
#include <lib/mmio.h>
#include <lib/utils_def.h>
#define RST_CLR_OFFSET 4U
-void stm32mp1_reset_assert(uint32_t id)
+void stm32mp_reset_assert(uint32_t id)
{
uint32_t offset = (id / (uint32_t)__LONG_BIT) * sizeof(uintptr_t);
uint32_t bit = id % (uint32_t)__LONG_BIT;
@@ -28,7 +28,7 @@ void stm32mp1_reset_assert(uint32_t id)
}
}
-void stm32mp1_reset_deassert(uint32_t id)
+void stm32mp_reset_deassert(uint32_t id)
{
uint32_t offset = ((id / (uint32_t)__LONG_BIT) * sizeof(uintptr_t)) +
RST_CLR_OFFSET;