arm-trusted-firmware/drivers
Soby Mathew cc5859ca19 Multi-console: Deprecate the finish_console_register macro
The `finish_console_register` macro is used by the multi console
framework to register the `console_t` driver callbacks. It relied
on weak references to the `ldr` instruction to populate 0 to the
callback in case the driver has not defined the appropriate
function. Use of `ldr` instruction to load absolute address to a
reference makes the binary position dependant. These instructions
should be replaced with adrp/adr instruction for position independant
executable(PIE). But adrp/adr instructions don't work well with weak
references as described in GNU ld bugzilla issue 22589.

This patch defines a new version of `finish_console_register` macro
which can spcify which driver callbacks are valid and deprecates the
old one. If any of the argument is not specified, then the macro
populates 0 for that callback. Hence the functionality of the previous
deprecated macro is preserved. The USE_FINISH_CONSOLE_REG_2 define
is used to select the new variant of the macro and will be removed
once the deprecated variant is removed.

All the upstream console drivers have been migrated to use the new
macro in this patch.

NOTE: Platforms be aware that the new variant of the
`finish_console_register` should be used and the old variant is
deprecated.

Change-Id: Ia6a67aaf2aa3ba93932992d683587bbd0ad25259
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-10-19 17:34:52 +01:00
..
arm Multi-console: Deprecate the finish_console_register macro 2018-10-19 17:34:52 +01:00
auth Remove all other deprecated interfaces and files 2018-09-28 15:31:53 +01:00
cadence/uart/aarch64 Multi-console: Deprecate the finish_console_register macro 2018-10-19 17:34:52 +01:00
cfi/v2m plat/arm: Move norflash driver to drivers/ folder 2018-10-10 11:14:44 +01:00
console Multi-console: Deprecate the finish_console_register macro 2018-10-19 17:34:52 +01:00
coreboot/cbmem_console/aarch64 Multi-console: Deprecate the finish_console_register macro 2018-10-19 17:34:52 +01:00
delay_timer Fix misra warnings in delay timer and console drivers 2018-09-25 17:49:28 +01:00
gpio Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
imx drivers: imx: mxc_usdhc: Do not set MMC_RSP_48 for MMC_RESPONSE_R2 2018-10-10 12:15:33 +01:00
io Merge pull request #1450 from MISL-EBU-System-SW/marvell-support-v6 2018-07-19 17:11:32 +01:00
marvell drivers: i2c: mentor: move platform code into header files 2018-09-19 09:24:02 +01:00
mentor/i2c drivers: i2c: mentor: move platform code into header files 2018-09-19 09:24:02 +01:00
mmc mmc: Update framework to use standard response type 2018-09-28 16:48:37 +02:00
partition drivers: partition: correct compilation error in VERBOSE mode 2018-10-11 14:39:49 +02:00
renesas/rcar rcar_gen3: drivers: watchdog 2018-10-17 18:42:31 +02:00
st stm32mp1: add an IO to read MMC devices 2018-10-15 09:36:44 +02:00
staging/renesas/rcar rcar_gen3: drivers: staging 2018-10-17 18:39:43 +02:00
synopsys mmc: Update framework to use standard response type 2018-09-28 16:48:37 +02:00
ti/uart/aarch64 Multi-console: Deprecate the finish_console_register macro 2018-10-19 17:34:52 +01:00
ufs drivers: fix switch statements to comply with MISRA rules 2018-03-26 12:43:05 +01:00