src: Use #include <timer.h> when appropriate

Also, extra-lines added or removed and local includes moved down.

Change-Id: I5e739233f3742fd68d537f671642bb04886e3009
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32009
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2019-03-21 09:55:49 +01:00 committed by Nico Huber
parent 2452c8414d
commit add76f91d5
31 changed files with 21 additions and 35 deletions

View File

@ -24,9 +24,9 @@
#include <commonlib/storage.h>
#include <delay.h>
#include <endian.h>
#include "sd_mmc.h"
#include "storage.h"
#include <timer.h>
int sd_send_if_cond(struct storage_media *media)
{

View File

@ -24,11 +24,11 @@
#include <commonlib/storage.h>
#include <delay.h>
#include <endian.h>
#include <string.h>
#include "mmc.h"
#include "sd_mmc.h"
#include "storage.h"
#include <string.h>
#include <timer.h>
uint64_t sd_mmc_extract_uint32_bits(const uint32_t *array, int start, int count)
{

View File

@ -22,11 +22,11 @@
#include <commonlib/storage.h>
#include <delay.h>
#include <endian.h>
#include <string.h>
#include "sdhci.h"
#include "sd_mmc.h"
#include "storage.h"
#include <string.h>
#include <timer.h>
static void sdhci_alloc_adma_descs(struct sdhci_ctrlr *sdhci_ctrlr,
u32 need_descriptors)

View File

@ -17,11 +17,10 @@
*
*/
#include "timer.h"
#include <device/mmio.h>
#include <delay.h>
#include <timer.h>
#include "timer.h"
struct a1x_timer_module *const timer_module = (void *)A1X_TIMER_BASE;
struct a1x_timer *const tmr0 =

View File

@ -36,6 +36,7 @@
#include <smp/atomic.h>
#include <smp/spinlock.h>
#include <symbols.h>
#include <timer.h>
#include <thread.h>
#define MAX_APIC_IDS 256

View File

@ -18,15 +18,14 @@
#include <string.h>
#include <assert.h>
#include <commonlib/endian.h>
#include <console/console.h>
#include <delay.h>
#include <device/i2c_simple.h>
#include <endian.h>
#include <lib.h>
#include <security/tpm/tis.h>
#include "tpm.h"
#include <timer.h>
#include <console/console.h>
#include "tpm.h"
/* global structure for tpm chip data */
static struct tpm_chip g_chip CAR_GLOBAL;

View File

@ -12,6 +12,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
@ -19,6 +20,7 @@
#include <bootstate.h>
#include <console/console.h>
#include <thread.h>
#include <timer.h>
static void idle_thread_init(void);

View File

@ -18,7 +18,6 @@
#include <inttypes.h>
#include <types.h>
#include <timer.h>
#include <delay.h>
/* Watchdog functions */

View File

@ -35,8 +35,8 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/smbus.h>
#include <timer.h>
#include <security/vboot/vbnv.h>
#include "chip.h"
static uintptr_t read_pmc_mmio_bar(void)

View File

@ -38,8 +38,8 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/smbus.h>
#include <timer.h>
#include <security/vboot/vbnv.h>
#include "chip.h"
/*

View File

@ -20,7 +20,6 @@
#include <fsp/util.h>
#include <soc/intel/common/reset.h>
#include <string.h>
#include <timer.h>
#include <soc/pci_devs.h>
/* Reset Request */

View File

@ -22,8 +22,8 @@
#include <soc/iomap.h>
#include <soc/pci_devs.h>
#include <soc/systemagent.h>
#include "systemagent_def.h"
#include <timer.h>
#if !ENV_RAMSTAGE
void bootblock_systemagent_early_init(void)

View File

@ -37,8 +37,8 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/smbus.h>
#include <timer.h>
#include <security/vboot/vbnv.h>
#include "chip.h"
/*

View File

@ -20,7 +20,6 @@
#include <fsp/util.h>
#include <soc/intel/common/reset.h>
#include <string.h>
#include <timer.h>
#include <soc/pci_devs.h>
/* Reset Request */

View File

@ -25,6 +25,7 @@
#include <soc/iomap.h>
#include <soc/pci_devs.h>
#include <soc/storage_test.h>
#include <timer.h>
#include <string.h>
#if CONFIG(STORAGE_LOG)

View File

@ -37,8 +37,8 @@
#include <soc/pm.h>
#include <soc/pmc.h>
#include <soc/smbus.h>
#include <timer.h>
#include <security/vboot/vbnv.h>
#include "chip.h"
/*

View File

@ -20,7 +20,6 @@
#include <soc/intel/common/reset.h>
#include <soc/me.h>
#include <soc/pm.h>
#include <timer.h>
static void do_force_global_reset(void)
{

View File

@ -17,7 +17,6 @@
#define SOC_MEDIATEK_PMIC_WRAP_COMMON_H
#include <console/console.h>
#include <timer.h>
#define PWRAPTAG "[PWRAP] "
#define pwrap_err(fmt, arg ...) printk(BIOS_ERR, PWRAPTAG "ERROR,line=%d" fmt, \

View File

@ -21,7 +21,6 @@
#include <console/console.h>
#include <delay.h>
#include <rtc.h>
#include <timer.h>
#include <soc/pmic_wrap_common.h>
#define RTCTAG "[RTC]"

View File

@ -16,6 +16,7 @@
#include <device/mmio.h>
#include <assert.h>
#include <soc/pmic_wrap.h>
#include <timer.h>
u32 wait_for_state_idle(u32 timeout_us, void *wacs_register,
void *wacs_vldclr_register, u32 *read_reg)

View File

@ -16,6 +16,7 @@
#include <soc/rtc_common.h>
#include <soc/rtc.h>
#include <soc/pmic_wrap.h>
#include <timer.h>
/* ensure rtc write success */
int rtc_busy_wait(void)

View File

@ -17,6 +17,7 @@
#include <soc/infracfg.h>
#include <soc/pll.h>
#include <soc/pmic_wrap.h>
#include <timer.h>
#define PRIORITY_FIELD(x) ((x % 4) * 8)
#define PRIORITY_IN(id, priority) (id << PRIORITY_FIELD(priority))

View File

@ -28,7 +28,6 @@
#include <soc/romstage.h>
#include <soc/nvidia/tegra/apbmisc.h>
#include <symbols.h>
#include <timer.h>
#include <vendorcode/google/chromeos/chromeos.h>
void __weak romstage_mainboard_init(void)

View File

@ -26,7 +26,6 @@
#include <soc/cpu.h>
#include <soc/mc.h>
#include <soc/nvidia/tegra/apbmisc.h>
#include <timer.h>
#include <soc/sdram.h>
#include <soc/sdram_configs.h>

View File

@ -29,8 +29,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <symbols.h>
#include <timer.h>
#if defined(CONFIG_DEBUG_SPI) && CONFIG_DEBUG_SPI
# define DEBUG_SPI(x,...) printk(BIOS_DEBUG, "TEGRA_SPI: " x)

View File

@ -19,9 +19,7 @@
#include <cbfs.h>
#include <console/console.h>
#include <string.h>
#include <timer.h>
#include <program_loading.h>
#include <soc/iomap.h>
#include <soc/soc_services.h>

View File

@ -17,10 +17,8 @@
#include <types.h>
#include <console/console.h>
#include <delay.h>
#include <timer.h>
#include <commonlib/helpers.h>
#include <assert.h>
#include <soc/clock.h>
#define DIV(div) (2*div - 1)

View File

@ -16,8 +16,6 @@
#include <device/mmio.h>
#include <types.h>
#include <delay.h>
#include <timer.h>
#include <gpio.h>
void gpio_configure(gpio_t gpio, uint32_t func, uint32_t pull,

View File

@ -23,7 +23,6 @@
#include <soc/sysreg.h>
#include <stdlib.h>
#include <string.h>
#include <timer.h>
/*
* Here is the rough outline of how we bring up the display:

View File

@ -23,7 +23,6 @@
#include <soc/power.h>
#include <soc/sysreg.h>
#include <stdlib.h>
#include <timer.h>
/* FIXME: I think the DP controller shouldn't be hardcoded here... */
static struct exynos_dp * const dp_regs = (void *)EXYNOS5_DP1_BASE;

View File

@ -24,7 +24,6 @@
#include <soc/fimd.h>
#include <soc/periph.h>
#include <soc/sysreg.h>
#include <timer.h>
/* fairly useful debugging stuff. */
#if 0