Deleted Added
sdiff udiff text old ( 14274:8fc8b95931aa ) new ( 14283:b02cde4661e1 )
full compact
1# Copyright (c) 2009-2019 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

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

60from m5.objects.EnergyCtrl import EnergyCtrl
61from m5.objects.ClockedObject import ClockedObject
62from m5.objects.ClockDomain import SrcClockDomain
63from m5.objects.SubSystem import SubSystem
64from m5.objects.Graphics import ImageFormat
65from m5.objects.ClockedObject import ClockedObject
66from m5.objects.PS2 import *
67from m5.objects.VirtIOMMIO import MmioVirtIO
68
69# Platforms with KVM support should generally use in-kernel GIC
70# emulation. Use a GIC model that automatically switches between
71# gem5's GIC model and KVM's GIC model if KVM is available.
72try:
73 from m5.objects.KvmGic import MuxingKvmGic
74 kvm_gicv2_class = MuxingKvmGic
75except ImportError:

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

486
487 pixel_buffer_size = Param.MemorySize32("2kB", "Size of address range")
488
489 pxl_clk = Param.ClockDomain("Pixel clock source")
490 pixel_chunk = Param.Unsigned(32, "Number of pixels to handle in one batch")
491 virt_refresh_rate = Param.Frequency("20Hz", "Frame refresh rate "
492 "in KVM mode")
493
494 def generateDeviceTree(self, state):
495 # Interrupt number is hardcoded; it is not a property of this class
496 node = self.generateBasicPioDeviceNode(state, 'hdlcd',
497 self.pio_addr, 0x1000, [63])
498
499 node.appendCompatible(["arm,hdlcd"])
500 node.append(FdtPropertyWords("clocks", state.phandle(self.pxl_clk)))
501 node.append(FdtPropertyStrings("clock-names", ["pxlclk"]))
502
503 # This driver is disabled by default since the required DT nodes
504 # haven't been standardized yet. To use it, override this status to
505 # "ok" and add the display configuration nodes required by the driver.
506 # See the driver for more information.
507 node.append(FdtPropertyStrings("status", ["disabled"]))
508
509 self.addIommuProperty(state, node)
510
511 yield node
512
513class RealView(Platform):
514 type = 'RealView'
515 cxx_header = "dev/arm/realview.hh"
516 system = Param.System(Parent.any, "system")
517 _mem_regions = [ AddrRange(0, size='256MB') ]
518

--- 607 unchanged lines hidden ---