Browse Source

feat(xilinx): switch boot console to runtime

Switch boot console to runtime at bl31_plat_runtime_setup() for all Xilinx
SOCs to follow default behavior. Till now boot console is used for the
whole lifecycle of TF-A. On the other hand there is no option to configure
different boot and run time console that's why this isn't really a issue.

Documentation is describing default behavior like this:
"
Function : bl31_plat_runtime_setup() [optional]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    Argument : void
    Return   : void

The purpose of this function is allow the platform to perform any BL31 runtime
setup just prior to BL31 exit during cold boot. The default weak
implementation of this function will invoke ``console_switch_state()`` to switch
console output to consoles marked for use in the ``runtime`` state.
"

Change-Id: I08baa722dfd8b37b4440e84accf3baaeb01a686f
Signed-off-by: Michal Simek <michal.simek@amd.com>
pull/1993/merge
Michal Simek 1 year ago
parent
commit
9c1c8f0101
  1. 2
      plat/xilinx/versal/bl31_versal_setup.c
  2. 2
      plat/xilinx/versal_net/bl31_versal_net_setup.c
  3. 2
      plat/xilinx/zynqmp/bl31_zynqmp_setup.c

2
plat/xilinx/versal/bl31_versal_setup.c

@ -213,6 +213,8 @@ void bl31_plat_runtime_setup(void)
if (rc != 0) {
panic();
}
console_switch_state(CONSOLE_FLAG_RUNTIME);
}
/*

2
plat/xilinx/versal_net/bl31_versal_net_setup.c

@ -244,6 +244,8 @@ void bl31_plat_runtime_setup(void)
if (rc != 0) {
panic();
}
console_switch_state(CONSOLE_FLAG_RUNTIME);
}
/*

2
plat/xilinx/zynqmp/bl31_zynqmp_setup.c

@ -208,6 +208,8 @@ void bl31_plat_runtime_setup(void)
#endif
custom_runtime_setup();
console_switch_state(CONSOLE_FLAG_RUNTIME);
}
/*

Loading…
Cancel
Save