Commit eafe0eb0 authored by Etienne Carriere's avatar Etienne Carriere
Browse files

stm32mp1: shared resources: define resource identifiers



Define enum stm32mp_shres for platform stm32mp1. The enumerated
type defines all resources that can be assigned to secure or
non-secure worlds at run time for the platform.

Change-Id: I5de20d72735856645f1efd0993643278e8d35bcb
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
parent 47cf5d3f
/*
* Copyright (c) 2017-2020, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef STM32MP1_SHARED_RESOURCES_H
#define STM32MP1_SHARED_RESOURCES_H
#include <stm32mp_shared_resources.h>
#define STM32MP1_SHRES_GPIOZ(i) (STM32MP1_SHRES_GPIOZ_0 + (i))
enum stm32mp_shres {
STM32MP1_SHRES_CRYP1,
STM32MP1_SHRES_GPIOZ_0,
STM32MP1_SHRES_GPIOZ_1,
STM32MP1_SHRES_GPIOZ_2,
STM32MP1_SHRES_GPIOZ_3,
STM32MP1_SHRES_GPIOZ_4,
STM32MP1_SHRES_GPIOZ_5,
STM32MP1_SHRES_GPIOZ_6,
STM32MP1_SHRES_GPIOZ_7,
STM32MP1_SHRES_HASH1,
STM32MP1_SHRES_I2C4,
STM32MP1_SHRES_I2C6,
STM32MP1_SHRES_IWDG1,
STM32MP1_SHRES_MCU,
STM32MP1_SHRES_MDMA,
STM32MP1_SHRES_PLL3,
STM32MP1_SHRES_RNG1,
STM32MP1_SHRES_RTC,
STM32MP1_SHRES_SPI6,
STM32MP1_SHRES_USART1,
STM32MP1_SHRES_COUNT
};
#endif /* STM32MP1_SHARED_RESOURCES_H */
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <stm32mp_shres_helpers.h> #include <stm32mp_shres_helpers.h>
#include <stm32mp1_dbgmcu.h> #include <stm32mp1_dbgmcu.h>
#include <stm32mp1_private.h> #include <stm32mp1_private.h>
#include <stm32mp1_shared_resources.h>
#endif #endif
/******************************************************************************* /*******************************************************************************
......
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