mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00

All identifiers, regardless of use, that start with two underscores are reserved. This means they can't be used in header guards. The style that this project is now to use the full name of the file in capital letters followed by 'H'. For example, for a file called "uart_example.h", the header guard is UART_EXAMPLE_H. The exceptions are files that are imported from other projects: - CryptoCell driver - dt-bindings folders - zlib headers Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
77 lines
1.9 KiB
C
77 lines
1.9 KiB
C
/*
|
|
* Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PWRC_H
|
|
#define PWRC_H
|
|
|
|
#define PPOFFR_OFF 0x0
|
|
#define PPONR_OFF 0x4
|
|
#define PCOFFR_OFF 0x8
|
|
#define PWKUPR_OFF 0xc
|
|
#define PSYSR_OFF 0x10
|
|
|
|
#define PWKUPR_WEN (1ull << 31)
|
|
|
|
#define PSYSR_AFF_L2 (1 << 31)
|
|
#define PSYSR_AFF_L1 (1 << 30)
|
|
#define PSYSR_AFF_L0 (1 << 29)
|
|
#define PSYSR_WEN (1 << 28)
|
|
#define PSYSR_PC (1 << 27)
|
|
#define PSYSR_PP (1 << 26)
|
|
|
|
#define PSYSR_WK_SHIFT (24)
|
|
#define PSYSR_WK_MASK (0x3)
|
|
#define PSYSR_WK(x) (((x) >> PSYSR_WK_SHIFT) & PSYSR_WK_MASK)
|
|
|
|
#define WKUP_COLD 0x0
|
|
#define WKUP_RESET 0x1
|
|
#define WKUP_PPONR 0x2
|
|
#define WKUP_GICREQ 0x3
|
|
|
|
#define RCAR_INVALID (0xffffffffU)
|
|
#define PSYSR_INVALID 0xffffffff
|
|
|
|
#define RCAR_CLUSTER_A53A57 (0U)
|
|
#define RCAR_CLUSTER_CA53 (1U)
|
|
#define RCAR_CLUSTER_CA57 (2U)
|
|
|
|
#ifndef __ASSEMBLY__
|
|
void rcar_pwrc_disable_interrupt_wakeup(uint64_t mpidr);
|
|
void rcar_pwrc_enable_interrupt_wakeup(uint64_t mpidr);
|
|
void rcar_pwrc_clusteroff(uint64_t mpidr);
|
|
void rcar_pwrc_cpuoff(uint64_t mpidr);
|
|
void rcar_pwrc_cpuon(uint64_t mpidr);
|
|
void rcar_pwrc_setup(void);
|
|
|
|
uint32_t rcar_pwrc_get_cpu_wkr(uint64_t mpidr);
|
|
uint32_t rcar_pwrc_status(uint64_t mpidr);
|
|
uint32_t rcar_pwrc_get_cluster(void);
|
|
uint32_t rcar_pwrc_get_mpidr_cluster(uint64_t mpidr);
|
|
uint32_t rcar_pwrc_get_cpu_num(uint32_t cluster_type);
|
|
void plat_secondary_reset(void);
|
|
|
|
void rcar_pwrc_code_copy_to_system_ram(void);
|
|
|
|
#if !PMIC_ROHM_BD9571
|
|
void rcar_pwrc_system_reset(void);
|
|
#endif
|
|
|
|
#if RCAR_SYSTEM_SUSPEND
|
|
void rcar_pwrc_go_suspend_to_ram(void);
|
|
void rcar_pwrc_set_suspend_to_ram(void);
|
|
void rcar_pwrc_init_suspend_to_ram(void);
|
|
void rcar_pwrc_suspend_to_ram(void);
|
|
#endif
|
|
|
|
extern void rcar_pwrc_save_generic_timer(uint64_t *rcar_stack_generic_timer);
|
|
extern uint32_t rcar_pwrc_switch_stack(uintptr_t jump, uintptr_t stack,
|
|
void *arg);
|
|
|
|
extern uint64_t rcar_stack_generic_timer[5];
|
|
|
|
#endif
|
|
|
|
#endif /* PWRC_H */
|