diff options
author | Mark Dykes <mardyk01@review.trustedfirmware.org> | 2020-02-25 23:38:46 +0000 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2020-02-25 23:38:46 +0000 |
commit | c723ef018f55c708b398f7d5b9868cd2b20c22f4 (patch) | |
tree | d07194c23930b056016e82c86c7d92efd2d51c9c /include | |
parent | 093dce703296c82865fdaaa231f6287942d5039d (diff) | |
parent | e21a788ee197ec66f6b8552e2274297bf4a095a8 (diff) | |
download | platform_external_arm-trusted-firmware-c723ef018f55c708b398f7d5b9868cd2b20c22f4.tar.gz platform_external_arm-trusted-firmware-c723ef018f55c708b398f7d5b9868cd2b20c22f4.tar.bz2 platform_external_arm-trusted-firmware-c723ef018f55c708b398f7d5b9868cd2b20c22f4.zip |
Merge changes from topic "console_t_cleanup" into integration
* changes:
coreboot: Use generic base address
skeletton: Use generic console_t data structure
cdns: Use generic console_t data structure
Diffstat (limited to 'include')
-rw-r--r-- | include/drivers/cadence/cdns_uart.h | 9 | ||||
-rw-r--r-- | include/drivers/coreboot/cbmem_console.h | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/include/drivers/cadence/cdns_uart.h b/include/drivers/cadence/cdns_uart.h index 64a062ca1..46ba4663e 100644 --- a/include/drivers/cadence/cdns_uart.h +++ b/include/drivers/cadence/cdns_uart.h @@ -25,17 +25,10 @@ #define R_UART_TX 0x30 #define R_UART_RX 0x30 -#define CONSOLE_T_CDNS_BASE CONSOLE_T_DRVDATA - #ifndef __ASSEMBLER__ #include <stdint.h> -typedef struct { - console_t console; - uintptr_t base; -} console_cdns_t; - /* * Initialize a new Cadence console instance and register it with the console * framework. The |console| pointer must point to storage that will be valid @@ -43,7 +36,7 @@ typedef struct { * Its contents will be reinitialized from scratch. */ int console_cdns_register(uintptr_t baseaddr, uint32_t clock, uint32_t baud, - console_cdns_t *console); + console_t *console); #endif /*__ASSEMBLER__*/ diff --git a/include/drivers/coreboot/cbmem_console.h b/include/drivers/coreboot/cbmem_console.h index 40c90e6bb..30b39f14d 100644 --- a/include/drivers/coreboot/cbmem_console.h +++ b/include/drivers/coreboot/cbmem_console.h @@ -9,14 +9,12 @@ #include <drivers/console.h> -#define CONSOLE_T_CBMC_BASE CONSOLE_T_DRVDATA -#define CONSOLE_T_CBMC_SIZE (CONSOLE_T_DRVDATA + REGSZ) +#define CONSOLE_T_CBMC_SIZE CONSOLE_T_DRVDATA #ifndef __ASSEMBLER__ typedef struct { console_t console; - uintptr_t base; uint32_t size; } console_cbmc_t; |