blob: 04c9a9ad5fb566230eb23d1ca1bf8d97d768b1af [file] [log] [blame]
Yann Gautier4b0c72a2018-07-16 10:54:09 +02001/*
Yann Gautier038bff22019-01-17 19:17:47 +01002 * Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved.
Yann Gautier4b0c72a2018-07-16 10:54:09 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef STM32MP1_PRIVATE_H
8#define STM32MP1_PRIVATE_H
9
10#include <stdint.h>
Yann Gautier4b0c72a2018-07-16 10:54:09 +020011
12void stm32mp1_io_setup(void);
13void configure_mmu(void);
14
Yann Gautiercaf575b2018-07-24 17:18:19 +020015void stm32mp1_arch_security_setup(void);
Yann Gautier9d135e42018-07-16 19:36:06 +020016void stm32mp1_security_setup(void);
Yann Gautiercaf575b2018-07-24 17:18:19 +020017
Yann Gautier4b0c72a2018-07-16 10:54:09 +020018void stm32mp1_save_boot_ctx_address(uintptr_t address);
19uintptr_t stm32mp1_get_boot_ctx_address(void);
20
Yann Gautier9d135e42018-07-16 19:36:06 +020021void stm32mp1_gic_pcpu_init(void);
22void stm32mp1_gic_init(void);
23
Yann Gautier038bff22019-01-17 19:17:47 +010024uintptr_t stm32_get_gpio_bank_base(unsigned int bank);
25unsigned long stm32_get_gpio_bank_clock(unsigned int bank);
26uint32_t stm32_get_gpio_bank_offset(unsigned int bank);
27
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000028#endif /* STM32MP1_PRIVATE_H */