soc/mediatek/mt8186/rtc: Remove unused variable "sw"
The function rtc_get_frequency_meter() already uses the wait_us() macro, so the stopwatch variable "sw" is not needed. Change-Id: I7e282b6ce881f4e8f9d5e1c92803fda363fe28d7 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
parent
8682d8f2e5
commit
589b9841b7
1 changed files with 0 additions and 2 deletions
|
|
@ -77,7 +77,6 @@ u16 rtc_get_frequency_meter(u16 val, u16 measure_src, u16 window_size)
|
|||
{
|
||||
u16 bbpu, osc32con;
|
||||
u16 fqmtr_busy, fqmtr_data, fqmtr_rst, fqmtr_tcksel;
|
||||
struct stopwatch sw;
|
||||
|
||||
rtc_read(RTC_BBPU, &bbpu);
|
||||
rtc_write(RTC_BBPU, bbpu | RTC_BBPU_KEY | RTC_BBPU_RELOAD);
|
||||
|
|
@ -120,7 +119,6 @@ u16 rtc_get_frequency_meter(u16 val, u16 measure_src, u16 window_size)
|
|||
rtc_write(PMIC_RG_FQMTR_CON0, fqmtr_tcksel | PMIC_FQMTR_CON0_FQMTR_EN);
|
||||
udelay(100);
|
||||
|
||||
stopwatch_init_usecs_expire(&sw, FQMTR_TIMEOUT_US);
|
||||
/* FQMTR read until ready */
|
||||
if (!wait_us(FQMTR_TIMEOUT_US,
|
||||
rtc_read(PMIC_RG_FQMTR_CON0, &fqmtr_busy) == 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue