@@ -144,9 +144,6 @@ u32 arch_timer_reg_read(int access, enum arch_timer_reg reg,
144
144
case ARCH_TIMER_REG_CTRL :
145
145
val = readl_relaxed (timer -> base + CNTP_CTL );
146
146
break ;
147
- case ARCH_TIMER_REG_TVAL :
148
- val = readl_relaxed (timer -> base + CNTP_TVAL );
149
- break ;
150
147
default :
151
148
BUILD_BUG ();
152
149
}
@@ -156,9 +153,6 @@ u32 arch_timer_reg_read(int access, enum arch_timer_reg reg,
156
153
case ARCH_TIMER_REG_CTRL :
157
154
val = readl_relaxed (timer -> base + CNTV_CTL );
158
155
break ;
159
- case ARCH_TIMER_REG_TVAL :
160
- val = readl_relaxed (timer -> base + CNTV_TVAL );
161
- break ;
162
156
default :
163
157
BUILD_BUG ();
164
158
}
@@ -247,16 +241,6 @@ struct ate_acpi_oem_info {
247
241
_new; \
248
242
})
249
243
250
- static u32 notrace fsl_a008585_read_cntp_tval_el0 (void )
251
- {
252
- return __fsl_a008585_read_reg (cntp_tval_el0 );
253
- }
254
-
255
- static u32 notrace fsl_a008585_read_cntv_tval_el0 (void )
256
- {
257
- return __fsl_a008585_read_reg (cntv_tval_el0 );
258
- }
259
-
260
244
static u64 notrace fsl_a008585_read_cntpct_el0 (void )
261
245
{
262
246
return __fsl_a008585_read_reg (cntpct_el0 );
@@ -293,16 +277,6 @@ static u64 notrace fsl_a008585_read_cntvct_el0(void)
293
277
_new; \
294
278
})
295
279
296
- static u32 notrace hisi_161010101_read_cntp_tval_el0 (void )
297
- {
298
- return __hisi_161010101_read_reg (cntp_tval_el0 );
299
- }
300
-
301
- static u32 notrace hisi_161010101_read_cntv_tval_el0 (void )
302
- {
303
- return __hisi_161010101_read_reg (cntv_tval_el0 );
304
- }
305
-
306
280
static u64 notrace hisi_161010101_read_cntpct_el0 (void )
307
281
{
308
282
return __hisi_161010101_read_reg (cntpct_el0 );
@@ -387,16 +361,6 @@ static u64 notrace sun50i_a64_read_cntvct_el0(void)
387
361
{
388
362
return __sun50i_a64_read_reg (cntvct_el0 );
389
363
}
390
-
391
- static u32 notrace sun50i_a64_read_cntp_tval_el0 (void )
392
- {
393
- return read_sysreg (cntp_cval_el0 ) - sun50i_a64_read_cntpct_el0 ();
394
- }
395
-
396
- static u32 notrace sun50i_a64_read_cntv_tval_el0 (void )
397
- {
398
- return read_sysreg (cntv_cval_el0 ) - sun50i_a64_read_cntvct_el0 ();
399
- }
400
364
#endif
401
365
402
366
#ifdef CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND
@@ -446,8 +410,6 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = {
446
410
.match_type = ate_match_dt ,
447
411
.id = "fsl,erratum-a008585" ,
448
412
.desc = "Freescale erratum a005858" ,
449
- .read_cntp_tval_el0 = fsl_a008585_read_cntp_tval_el0 ,
450
- .read_cntv_tval_el0 = fsl_a008585_read_cntv_tval_el0 ,
451
413
.read_cntpct_el0 = fsl_a008585_read_cntpct_el0 ,
452
414
.read_cntvct_el0 = fsl_a008585_read_cntvct_el0 ,
453
415
.set_next_event_phys = erratum_set_next_event_tval_phys ,
@@ -459,8 +421,6 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = {
459
421
.match_type = ate_match_dt ,
460
422
.id = "hisilicon,erratum-161010101" ,
461
423
.desc = "HiSilicon erratum 161010101" ,
462
- .read_cntp_tval_el0 = hisi_161010101_read_cntp_tval_el0 ,
463
- .read_cntv_tval_el0 = hisi_161010101_read_cntv_tval_el0 ,
464
424
.read_cntpct_el0 = hisi_161010101_read_cntpct_el0 ,
465
425
.read_cntvct_el0 = hisi_161010101_read_cntvct_el0 ,
466
426
.set_next_event_phys = erratum_set_next_event_tval_phys ,
@@ -470,8 +430,6 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = {
470
430
.match_type = ate_match_acpi_oem_info ,
471
431
.id = hisi_161010101_oem_info ,
472
432
.desc = "HiSilicon erratum 161010101" ,
473
- .read_cntp_tval_el0 = hisi_161010101_read_cntp_tval_el0 ,
474
- .read_cntv_tval_el0 = hisi_161010101_read_cntv_tval_el0 ,
475
433
.read_cntpct_el0 = hisi_161010101_read_cntpct_el0 ,
476
434
.read_cntvct_el0 = hisi_161010101_read_cntvct_el0 ,
477
435
.set_next_event_phys = erratum_set_next_event_tval_phys ,
@@ -492,8 +450,6 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = {
492
450
.match_type = ate_match_dt ,
493
451
.id = "allwinner,erratum-unknown1" ,
494
452
.desc = "Allwinner erratum UNKNOWN1" ,
495
- .read_cntp_tval_el0 = sun50i_a64_read_cntp_tval_el0 ,
496
- .read_cntv_tval_el0 = sun50i_a64_read_cntv_tval_el0 ,
497
453
.read_cntpct_el0 = sun50i_a64_read_cntpct_el0 ,
498
454
.read_cntvct_el0 = sun50i_a64_read_cntvct_el0 ,
499
455
.set_next_event_phys = erratum_set_next_event_tval_phys ,
0 commit comments