Browse Source

fix(zynqmp): make zynqmp_devices structure smaller

Pack the structure and make id/ver smaller and sorted.
The change saves 400bytes in RODATA section.

Change-Id: I8bcbe8fd589ba193551a0dd2cd19572516252e73
Signed-off-by: Michal Simek <michal.simek@amd.com>
pull/1982/merge
Michal Simek 2 years ago
committed by Joanna Farley
parent
commit
7e3e79995a
  1. 8
      plat/xilinx/zynqmp/aarch64/zynqmp_common.c

8
plat/xilinx/zynqmp/aarch64/zynqmp_common.c

@ -60,11 +60,11 @@ uint32_t zynqmp_get_uart_clk(void)
#if LOG_LEVEL >= LOG_LEVEL_NOTICE
static const struct {
uint32_t id;
uint32_t ver;
char *name;
uint8_t id;
bool evexists;
} zynqmp_devices[] = {
uint16_t ver;
char *name;
} __packed zynqmp_devices[] = {
{
.id = 0x10,
.name = "XCZU3EG",

Loading…
Cancel
Save