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:
@@ -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, \
|
||||
|
@@ -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]"
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user