mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
fix(st-ddr): correct DDR warnings
Replace %d with %u in logs, to avoid warning when -Wformat-signedness is enabled. And correct the order of includes. Change-Id: I7c711a37fc1deceb8853831a8a09ae50422859c9 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
This commit is contained in:
parent
64fc535972
commit
a078134e23
2 changed files with 11 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2021, STMicroelectronics - All Rights Reserved
|
||||
* Copyright (C) 2018-2022, STMicroelectronics - All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
||||
*/
|
||||
|
@ -7,21 +7,21 @@
|
|||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <platform_def.h>
|
||||
|
||||
#include <arch.h>
|
||||
#include <arch_helpers.h>
|
||||
#include <common/debug.h>
|
||||
#include <drivers/clk.h>
|
||||
#include <drivers/delay_timer.h>
|
||||
#include <drivers/st/stm32mp_pmic.h>
|
||||
#include <drivers/st/stm32mp1_ddr.h>
|
||||
#include <drivers/st/stm32mp1_ddr_regs.h>
|
||||
#include <drivers/st/stm32mp1_pwr.h>
|
||||
#include <drivers/st/stm32mp1_ram.h>
|
||||
#include <drivers/st/stm32mp_pmic.h>
|
||||
#include <lib/mmio.h>
|
||||
#include <plat/common/platform.h>
|
||||
|
||||
#include <platform_def.h>
|
||||
|
||||
struct reg_desc {
|
||||
const char *name;
|
||||
uint16_t offset; /* Offset for base address */
|
||||
|
@ -729,7 +729,7 @@ void stm32mp1_ddr_init(struct ddr_info *priv,
|
|||
}
|
||||
|
||||
VERBOSE("name = %s\n", config->info.name);
|
||||
VERBOSE("speed = %d kHz\n", config->info.speed);
|
||||
VERBOSE("speed = %u kHz\n", config->info.speed);
|
||||
VERBOSE("size = 0x%x\n", config->info.size);
|
||||
|
||||
/* DDR INIT SEQUENCE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue