amlogic: Fix prefixes in the private header file
The header file is shared between all the SoCs. Better avoiding hardcoding the SoC name in the function names. Signed-off-by: Carlo Caione <ccaione@baylibre.com> Change-Id: I9074871bd1ed8a702c1a656e0f50f2d3c6cb0425
This commit is contained in:
parent
93c795ae9c
commit
010fdc1ba0
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
/* Utility functions */
|
/* Utility functions */
|
||||||
unsigned int plat_calc_core_pos(u_register_t mpidr);
|
unsigned int plat_calc_core_pos(u_register_t mpidr);
|
||||||
void gxbb_console_init(void);
|
void aml_console_init(void);
|
||||||
void gxbb_setup_page_tables(void);
|
void aml_setup_page_tables(void);
|
||||||
|
|
||||||
/* MHU functions */
|
/* MHU functions */
|
||||||
void mhu_secure_message_start(void);
|
void mhu_secure_message_start(void);
|
||||||
|
|
|
@ -67,7 +67,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
||||||
struct gxbb_bl31_param *from_bl2;
|
struct gxbb_bl31_param *from_bl2;
|
||||||
|
|
||||||
/* Initialize the console to provide early debug support */
|
/* Initialize the console to provide early debug support */
|
||||||
gxbb_console_init();
|
aml_console_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In debug builds, we pass a special value in 'arg1' to verify platform
|
* In debug builds, we pass a special value in 'arg1' to verify platform
|
||||||
|
@ -97,7 +97,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
||||||
|
|
||||||
void bl31_plat_arch_setup(void)
|
void bl31_plat_arch_setup(void)
|
||||||
{
|
{
|
||||||
gxbb_setup_page_tables();
|
aml_setup_page_tables();
|
||||||
|
|
||||||
enable_mmu_el3(0);
|
enable_mmu_el3(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ static const mmap_region_t gxbb_mmap[] = {
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Function that sets up the translation tables.
|
* Function that sets up the translation tables.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
void gxbb_setup_page_tables(void)
|
void aml_setup_page_tables(void)
|
||||||
{
|
{
|
||||||
#if IMAGE_BL31
|
#if IMAGE_BL31
|
||||||
const mmap_region_t gxbb_bl_mmap[] = {
|
const mmap_region_t gxbb_bl_mmap[] = {
|
||||||
|
@ -107,7 +107,7 @@ void gxbb_setup_page_tables(void)
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
static console_meson_t gxbb_console;
|
static console_meson_t gxbb_console;
|
||||||
|
|
||||||
void gxbb_console_init(void)
|
void aml_console_init(void)
|
||||||
{
|
{
|
||||||
int rc = console_meson_register(AML_UART0_AO_BASE,
|
int rc = console_meson_register(AML_UART0_AO_BASE,
|
||||||
AML_UART0_AO_CLK_IN_HZ,
|
AML_UART0_AO_CLK_IN_HZ,
|
||||||
|
|
|
@ -69,7 +69,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
||||||
struct gxl_bl31_param *from_bl2;
|
struct gxl_bl31_param *from_bl2;
|
||||||
|
|
||||||
/* Initialize the console to provide early debug support */
|
/* Initialize the console to provide early debug support */
|
||||||
gxbb_console_init();
|
aml_console_init();
|
||||||
|
|
||||||
/* Check that params passed from BL2 are not NULL. */
|
/* Check that params passed from BL2 are not NULL. */
|
||||||
from_bl2 = (struct gxl_bl31_param *) arg0;
|
from_bl2 = (struct gxl_bl31_param *) arg0;
|
||||||
|
@ -96,7 +96,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
||||||
|
|
||||||
void bl31_plat_arch_setup(void)
|
void bl31_plat_arch_setup(void)
|
||||||
{
|
{
|
||||||
gxbb_setup_page_tables();
|
aml_setup_page_tables();
|
||||||
|
|
||||||
enable_mmu_el3(0);
|
enable_mmu_el3(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ static const mmap_region_t gxbb_mmap[] = {
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Function that sets up the translation tables.
|
* Function that sets up the translation tables.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
void gxbb_setup_page_tables(void)
|
void aml_setup_page_tables(void)
|
||||||
{
|
{
|
||||||
#if IMAGE_BL31
|
#if IMAGE_BL31
|
||||||
const mmap_region_t gxbb_bl_mmap[] = {
|
const mmap_region_t gxbb_bl_mmap[] = {
|
||||||
|
@ -105,7 +105,7 @@ void gxbb_setup_page_tables(void)
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
static console_meson_t gxbb_console;
|
static console_meson_t gxbb_console;
|
||||||
|
|
||||||
void gxbb_console_init(void)
|
void aml_console_init(void)
|
||||||
{
|
{
|
||||||
int rc = console_meson_register(AML_UART0_AO_BASE,
|
int rc = console_meson_register(AML_UART0_AO_BASE,
|
||||||
AML_UART0_AO_CLK_IN_HZ,
|
AML_UART0_AO_CLK_IN_HZ,
|
||||||
|
|
Loading…
Reference in New Issue