• Antonio Nino Diaz's avatar
    rpi3: Use new console APIs · e0f21f62
    Antonio Nino Diaz authored
    
    Switch to the new console APIs enabled by setting MULTI_CONSOLE_API=1.
    
    The crash console doesn't use this API, it uses internally the core
    functions of the 16550 console.
    
    `bl31_plat_runtime_setup` is no longer needed. When this platform port
    was introduced, that function used to disable the console. It was needed
    to override that behaviour. The new behaviour is to switch to the
    runtime console. The console is registered for all scopes (boot, crash
    and runtime) in `rpi3_console_init` so it is not needed to override the
    default behaviour anymore.
    
    Update documentation.
    
    Change-Id: If2ee8f91044216183b7ef142e5c05ad6220ae92f
    Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
    e0f21f62
rpi3_private.h 1.04 KB
/*
 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef __RPI3_PRIVATE_H__
#define __RPI3_PRIVATE_H__

#include <sys/types.h>

/*******************************************************************************
 * Function and variable prototypes
 ******************************************************************************/

/* Utility functions */
void rpi3_console_init(void);
void rpi3_setup_page_tables(uintptr_t total_base, size_t total_size,
			    uintptr_t code_start, uintptr_t code_limit,
			    uintptr_t rodata_start, uintptr_t rodata_limit
#if USE_COHERENT_MEM
			    , uintptr_t coh_start, uintptr_t coh_limit
#endif
			    );

/* Optional functions required in the Raspberry Pi 3 port */
unsigned int plat_rpi3_calc_core_pos(u_register_t mpidr);

/* BL2 utility functions */
uint32_t rpi3_get_spsr_for_bl32_entry(void);
uint32_t rpi3_get_spsr_for_bl33_entry(void);

/* IO storage utility functions */
void plat_rpi3_io_setup(void);

#endif /*__RPI3_PRIVATE_H__ */