RealView.py (13016:b15b89f28870) RealView.py (13106:3af014b59080)
1# Copyright (c) 2009-2018 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 396 unchanged lines hidden (view full) ---

405 type = 'A9GlobalTimer'
406 cxx_header = "dev/arm/timer_a9global.hh"
407 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting")
408 int_num = Param.UInt32("Interrrupt number that connects to GIC")
409
410class CpuLocalTimer(BasicPioDevice):
411 type = 'CpuLocalTimer'
412 cxx_header = "dev/arm/timer_cpulocal.hh"
1# Copyright (c) 2009-2018 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 396 unchanged lines hidden (view full) ---

405 type = 'A9GlobalTimer'
406 cxx_header = "dev/arm/timer_a9global.hh"
407 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting")
408 int_num = Param.UInt32("Interrrupt number that connects to GIC")
409
410class CpuLocalTimer(BasicPioDevice):
411 type = 'CpuLocalTimer'
412 cxx_header = "dev/arm/timer_cpulocal.hh"
413 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting")
414 int_num_timer = Param.UInt32("Interrrupt number used per-cpu to GIC")
415 int_num_watchdog = Param.UInt32("Interrupt number for per-cpu watchdog to GIC")
413 int_timer = Param.ArmPPI("Interrrupt used per-cpu to GIC")
414 int_watchdog = Param.ArmPPI("Interrupt for per-cpu watchdog to GIC")
416
417class GenericTimer(ClockedObject):
418 type = 'GenericTimer'
419 cxx_header = "dev/arm/generic_timer.hh"
420 system = Param.ArmSystem(Parent.any, "system")
421 int_phys_s = Param.ArmPPI("Physical (S) timer interrupt")
422 int_phys_ns = Param.ArmPPI("Physical (NS) timer interrupt")
423 int_virt = Param.ArmPPI("Virtual timer interrupt")

--- 192 unchanged lines hidden (view full) ---

616 dcc = CoreTile2A15DCC()
617 gic = GicV2(cpu_addr=0x1f000100, dist_addr=0x1f001000, cpu_size=0x100)
618 pci_host = GenericPciHost(
619 conf_base=0x30000000, conf_size='256MB', conf_device_bits=16,
620 pci_pio_base=0)
621 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
622 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
623 global_timer = A9GlobalTimer(int_num=27, pio_addr=0x1f000200)
415
416class GenericTimer(ClockedObject):
417 type = 'GenericTimer'
418 cxx_header = "dev/arm/generic_timer.hh"
419 system = Param.ArmSystem(Parent.any, "system")
420 int_phys_s = Param.ArmPPI("Physical (S) timer interrupt")
421 int_phys_ns = Param.ArmPPI("Physical (NS) timer interrupt")
422 int_virt = Param.ArmPPI("Virtual timer interrupt")

--- 192 unchanged lines hidden (view full) ---

615 dcc = CoreTile2A15DCC()
616 gic = GicV2(cpu_addr=0x1f000100, dist_addr=0x1f001000, cpu_size=0x100)
617 pci_host = GenericPciHost(
618 conf_base=0x30000000, conf_size='256MB', conf_device_bits=16,
619 pci_pio_base=0)
620 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
621 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
622 global_timer = A9GlobalTimer(int_num=27, pio_addr=0x1f000200)
624 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30,
623 local_cpu_timer = CpuLocalTimer(int_timer=ArmPPI(num=29),
624 int_watchdog=ArmPPI(num=30),
625 pio_addr=0x1f000600)
626 clcd = Pl111(pio_addr=0x10020000, int_num=55)
627 kmi0 = Pl050(pio_addr=0x10006000, int_num=52, ps2=PS2Keyboard())
628 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, ps2=PS2TouchKit())
629 a9scu = A9SCU(pio_addr=0x1f000000)
630 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=7, pci_bus=2,
631 io_shift = 1, ctrl_offset = 2, Command = 0x1,
632 BAR0 = 0x18000000, BAR0Size = '16B',

--- 239 unchanged lines hidden (view full) ---

872
873 mcc = VExpressMCC()
874 dcc = CoreTile2A15DCC()
875
876 ### On-chip devices ###
877 gic = GicV2(dist_addr=0x2C001000, cpu_addr=0x2C002000)
878 vgic = VGic(vcpu_addr=0x2c006000, hv_addr=0x2c004000, ppint=25)
879
625 pio_addr=0x1f000600)
626 clcd = Pl111(pio_addr=0x10020000, int_num=55)
627 kmi0 = Pl050(pio_addr=0x10006000, int_num=52, ps2=PS2Keyboard())
628 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, ps2=PS2TouchKit())
629 a9scu = A9SCU(pio_addr=0x1f000000)
630 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=7, pci_bus=2,
631 io_shift = 1, ctrl_offset = 2, Command = 0x1,
632 BAR0 = 0x18000000, BAR0Size = '16B',

--- 239 unchanged lines hidden (view full) ---

872
873 mcc = VExpressMCC()
874 dcc = CoreTile2A15DCC()
875
876 ### On-chip devices ###
877 gic = GicV2(dist_addr=0x2C001000, cpu_addr=0x2C002000)
878 vgic = VGic(vcpu_addr=0x2c006000, hv_addr=0x2c004000, ppint=25)
879
880 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30,
880 local_cpu_timer = CpuLocalTimer(int_timer=ArmPPI(num=29),
881 int_watchdog=ArmPPI(num=30),
881 pio_addr=0x2C080000)
882
883 hdlcd = HDLcd(pxl_clk=dcc.osc_pxl,
884 pio_addr=0x2b000000, int_num=117,
885 workaround_swap_rb=True)
886
887 def _on_chip_devices(self):
888 devices = [

--- 335 unchanged lines hidden ---
882 pio_addr=0x2C080000)
883
884 hdlcd = HDLcd(pxl_clk=dcc.osc_pxl,
885 pio_addr=0x2b000000, int_num=117,
886 workaround_swap_rb=True)
887
888 def _on_chip_devices(self):
889 devices = [

--- 335 unchanged lines hidden ---