forked from Mirrors/opensbi
		
	lib: sbi: Simplify timer platform operations
Instead of having timer_value(), timer_event_start(), and timer_event_stop() callbacks in platform operations, it will be much simpler for timer driver to directly register these operations as device to the sbi_timer implementation. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
		@@ -207,9 +207,6 @@ const struct sbi_platform_operations platform_ops = {
 | 
			
		||||
	.ipi_send		= clint_ipi_send,
 | 
			
		||||
	.ipi_clear		= clint_ipi_clear,
 | 
			
		||||
	.ipi_init		= ux600_ipi_init,
 | 
			
		||||
	.timer_value		= clint_timer_value,
 | 
			
		||||
	.timer_event_stop	= clint_timer_event_stop,
 | 
			
		||||
	.timer_event_start	= clint_timer_event_start,
 | 
			
		||||
	.timer_init		= ux600_timer_init,
 | 
			
		||||
	.system_reset_check	= ux600_system_reset_check,
 | 
			
		||||
	.system_reset		= ux600_system_reset
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user