mirror of
				https://github.com/riscv-software-src/opensbi
				synced 2025-11-04 05:50:22 +00:00 
			
		
		
		
	Since we can get the PLMT base address and timer frequency from
device tree, move plmt timer device to fdt timer framework.
dts example (Quad-core AX45MP):
  cpus {
      ...
      timebase-frequency = <0x3938700>;
      ...
  }
  soc {
      ...
      plmt0@e6000000 {
          compatible = "andestech,plmt0";
          reg = <0x00 0xe6000000 0x00 0x100000>;
          interrupts-extended = <&cpu0_intc 0x07
                                 &cpu1_intc 0x07
                                 &cpu2_intc 0x07
                                 &cpu3_intc 0x07>;
      };
      ...
  }
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
		
	
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			696 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			696 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# SPDX-License-Identifier: BSD-2-Clause
 | 
						|
#
 | 
						|
# Copyright (c) 2020 Western Digital Corporation or its affiliates.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Anup Patel <anup.patel@wdc.com>
 | 
						|
#
 | 
						|
 | 
						|
libsbiutils-objs-$(CONFIG_TIMER_MTIMER) += timer/aclint_mtimer.o
 | 
						|
libsbiutils-objs-$(CONFIG_TIMER_PLMT) += timer/andes_plmt.o
 | 
						|
 | 
						|
libsbiutils-objs-$(CONFIG_FDT_TIMER) += timer/fdt_timer.o
 | 
						|
libsbiutils-objs-$(CONFIG_FDT_TIMER) += timer/fdt_timer_drivers.o
 | 
						|
 | 
						|
carray-fdt_timer_drivers-$(CONFIG_FDT_TIMER_MTIMER) += fdt_timer_mtimer
 | 
						|
libsbiutils-objs-$(CONFIG_FDT_TIMER_MTIMER) += timer/fdt_timer_mtimer.o
 | 
						|
 | 
						|
carray-fdt_timer_drivers-$(CONFIG_FDT_TIMER_PLMT) += fdt_timer_plmt
 | 
						|
libsbiutils-objs-$(CONFIG_FDT_TIMER_PLMT) += timer/fdt_timer_plmt.o
 |