--- /dev/null
+/*
+ * Copyright (c) 2018-2020, Renesas Electronics Corporation. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <arch.h>
+#include <arch_helpers.h>
+
+#include "micro_delay.h"
+
+#define RCAR_CONV_MICROSEC 1000000U
+
+void
+#if IMAGE_BL31
+ __attribute__ ((section(".system_ram")))
+#endif
+ rcar_micro_delay(uint64_t micro_sec)
+{
+ uint64_t freq;
+ uint64_t base_count;
+ uint64_t get_count;
+ uint64_t wait_time = 0U;
+
+ freq = read_cntfrq_el0();
+ base_count = read_cntpct_el0();
+ while (micro_sec > wait_time) {
+ get_count = read_cntpct_el0();
+ wait_time = ((get_count - base_count) * RCAR_CONV_MICROSEC) / freq;
+ }
+}
--- /dev/null
+/*
+ * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef MICRO_DELAY_H
+#define MICRO_DELAY_H
+
+#ifndef __ASSEMBLER__
+#include <stdint.h>
+void rcar_micro_delay(uint64_t micro_sec);
+#endif
+
+#endif /* MICRO_DELAY_H */
+++ /dev/null
-/*
- * Copyright (c) 2018-2020, Renesas Electronics Corporation. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-#include <arch.h>
-#include <arch_helpers.h>
-
-#include "micro_delay.h"
-
-#define RCAR_CONV_MICROSEC 1000000U
-
-void
-#if IMAGE_BL31
- __attribute__ ((section(".system_ram")))
-#endif
- rcar_micro_delay(uint64_t micro_sec)
-{
- uint64_t freq;
- uint64_t base_count;
- uint64_t get_count;
- uint64_t wait_time = 0U;
-
- freq = read_cntfrq_el0();
- base_count = read_cntpct_el0();
- while (micro_sec > wait_time) {
- get_count = read_cntpct_el0();
- wait_time = ((get_count - base_count) * RCAR_CONV_MICROSEC) / freq;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-#ifndef MICRO_DELAY_H
-#define MICRO_DELAY_H
-
-#ifndef __ASSEMBLER__
-#include <stdint.h>
-void rcar_micro_delay(uint64_t micro_sec);
-#endif
-
-#endif /* MICRO_DELAY_H */
drivers/renesas/common/io/io_emmcdrv.c \
drivers/renesas/common/io/io_memdrv.c \
drivers/renesas/common/io/io_rcar.c \
+ drivers/renesas/common/delay/micro_delay.c \
drivers/renesas/common/emmc/emmc_interrupt.c \
drivers/renesas/common/emmc/emmc_utility.c \
drivers/renesas/common/emmc/emmc_mount.c \
plat/common/plat_psci_common.c \
drivers/renesas/common/console/rcar_console.S \
drivers/renesas/common/console/rcar_printf.c \
+ drivers/renesas/common/delay/micro_delay.c \
drivers/renesas/common/pwrc/call_sram.S \
drivers/renesas/common/pwrc/pwrc.c \
drivers/renesas/common/common.c \
-Idrivers/renesas/rcar/cpld/ \
-Idrivers/renesas/common/iic_dvfs \
-Idrivers/renesas/rcar/avs \
- -Idrivers/renesas/rcar/delay \
+ -Idrivers/renesas/common/delay \
-Idrivers/renesas/rcar/rom \
-Idrivers/renesas/common/scif \
-Idrivers/renesas/common/emmc \
drivers/renesas/rcar/rpc/rpc_driver.c \
drivers/renesas/rcar/dma/dma_driver.c \
drivers/renesas/rcar/avs/avs_driver.c \
- drivers/renesas/rcar/delay/micro_delay.c \
drivers/renesas/rcar/watchdog/swdt.c \
drivers/renesas/rcar/rom/rom_api.c \
drivers/renesas/rcar/board/board.c
plat/renesas/rcar/aarch64/plat_helpers.S \
plat/renesas/rcar/aarch64/platform_common.c \
plat/renesas/rcar/bl31_plat_setup.c \
- plat/renesas/rcar/plat_pm.c \
- drivers/renesas/rcar/delay/micro_delay.c
+ plat/renesas/rcar/plat_pm.c
ifeq (${RCAR_GEN3_ULCB},1)
BL31_SOURCES += drivers/renesas/rcar/cpld/ulcb_cpld.c