RealView.py (11011:2ca6c68fdd6c) | RealView.py (11090:f37a6b82f98f) |
---|---|
1# Copyright (c) 2009-2015 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 --- 40 unchanged lines hidden (view full) --- 49from Ethernet import NSGigE, IGbE_igb, IGbE_e1000 50from Ide import * 51from Platform import Platform 52from Terminal import Terminal 53from Uart import Uart 54from SimpleMemory import SimpleMemory 55from Gic import * 56from EnergyCtrl import EnergyCtrl | 1# Copyright (c) 2009-2015 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 --- 40 unchanged lines hidden (view full) --- 49from Ethernet import NSGigE, IGbE_igb, IGbE_e1000 50from Ide import * 51from Platform import Platform 52from Terminal import Terminal 53from Uart import Uart 54from SimpleMemory import SimpleMemory 55from Gic import * 56from EnergyCtrl import EnergyCtrl |
57from ClockDomain import SrcClockDomain |
|
57 58class AmbaPioDevice(BasicPioDevice): 59 type = 'AmbaPioDevice' 60 abstract = True 61 cxx_header = "dev/arm/amba_device.hh" 62 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 63 64class AmbaIntDevice(AmbaPioDevice): --- 148 unchanged lines hidden (view full) --- 213class Pl111(AmbaDmaDevice): 214 type = 'Pl111' 215 cxx_header = "dev/arm/pl111.hh" 216 pixel_clock = Param.Clock('24MHz', "Pixel clock") 217 vnc = Param.VncInput(Parent.any, "Vnc server for remote frame buffer display") 218 amba_id = 0x00141111 219 enable_capture = Param.Bool(True, "capture frame to system.framebuffer.bmp") 220 | 58 59class AmbaPioDevice(BasicPioDevice): 60 type = 'AmbaPioDevice' 61 abstract = True 62 cxx_header = "dev/arm/amba_device.hh" 63 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 64 65class AmbaIntDevice(AmbaPioDevice): --- 148 unchanged lines hidden (view full) --- 214class Pl111(AmbaDmaDevice): 215 type = 'Pl111' 216 cxx_header = "dev/arm/pl111.hh" 217 pixel_clock = Param.Clock('24MHz', "Pixel clock") 218 vnc = Param.VncInput(Parent.any, "Vnc server for remote frame buffer display") 219 amba_id = 0x00141111 220 enable_capture = Param.Bool(True, "capture frame to system.framebuffer.bmp") 221 |
221 | |
222class HDLcd(AmbaDmaDevice): 223 type = 'HDLcd' 224 cxx_header = "dev/arm/hdlcd.hh" | 222class HDLcd(AmbaDmaDevice): 223 type = 'HDLcd' 224 cxx_header = "dev/arm/hdlcd.hh" |
225 # For reference, 1024x768MR-16@60 ~= 56 MHz 226 # 1920x1080MR-16@60 ~= 137 MHz 227 # 3840x2160MR-16@60 ~= 533 MHz 228 # Match against the resolution selected in the Linux DTS/DTB file. 229 pixel_clock = Param.Clock('137MHz', "Clock frequency of the pixel clock " 230 "(i.e. PXLREFCLK / OSCCLK 5") | |
231 vnc = Param.VncInput(Parent.any, "Vnc server for remote frame buffer " 232 "display") 233 amba_id = 0x00141000 234 workaround_swap_rb = Param.Bool(True, "Workaround incorrect color " 235 "selector order in some kernels") | 225 vnc = Param.VncInput(Parent.any, "Vnc server for remote frame buffer " 226 "display") 227 amba_id = 0x00141000 228 workaround_swap_rb = Param.Bool(True, "Workaround incorrect color " 229 "selector order in some kernels") |
230 workaround_dma_line_count = Param.Bool(True, "Workaround incorrect " 231 "DMA line count (off by 1)") |
|
236 enable_capture = Param.Bool(True, "capture frame to system.framebuffer.bmp") 237 | 232 enable_capture = Param.Bool(True, "capture frame to system.framebuffer.bmp") 233 |
234 pixel_buffer_size = Param.MemorySize32("2kB", "Size of address range") 235 236 pxl_clk = Param.ClockDomain("Pixel clock source") 237 pixel_chunk = Param.Unsigned(32, "Number of pixels to handle in one batch") 238 |
|
238class RealView(Platform): 239 type = 'RealView' 240 cxx_header = "dev/arm/realview.hh" 241 system = Param.System(Parent.any, "system") 242 pci_io_base = Param.Addr(0, "Base address of PCI IO Space") 243 pci_cfg_base = Param.Addr(0, "Base address of PCI Configuraiton Space") 244 pci_cfg_gen_offsets = Param.Bool(False, "Should the offsets used for PCI cfg access" 245 " be compatible with the pci-generic-host or the legacy host bridge?") --- 267 unchanged lines hidden (view full) --- 513 proc_id0=0x14000000, proc_id1=0x14000000, 514 idreg=0x02250000, pio_addr=0x1C010000) 515 gic = Pl390(dist_addr=0x2C001000, cpu_addr=0x2C002000) 516 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0x2C080000) 517 generic_timer = GenericTimer(int_phys=29, int_virt=27) 518 timer0 = Sp804(int_num0=34, int_num1=34, pio_addr=0x1C110000, clock0='1MHz', clock1='1MHz') 519 timer1 = Sp804(int_num0=35, int_num1=35, pio_addr=0x1C120000, clock0='1MHz', clock1='1MHz') 520 clcd = Pl111(pio_addr=0x1c1f0000, int_num=46) | 239class RealView(Platform): 240 type = 'RealView' 241 cxx_header = "dev/arm/realview.hh" 242 system = Param.System(Parent.any, "system") 243 pci_io_base = Param.Addr(0, "Base address of PCI IO Space") 244 pci_cfg_base = Param.Addr(0, "Base address of PCI Configuraiton Space") 245 pci_cfg_gen_offsets = Param.Bool(False, "Should the offsets used for PCI cfg access" 246 " be compatible with the pci-generic-host or the legacy host bridge?") --- 267 unchanged lines hidden (view full) --- 514 proc_id0=0x14000000, proc_id1=0x14000000, 515 idreg=0x02250000, pio_addr=0x1C010000) 516 gic = Pl390(dist_addr=0x2C001000, cpu_addr=0x2C002000) 517 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0x2C080000) 518 generic_timer = GenericTimer(int_phys=29, int_virt=27) 519 timer0 = Sp804(int_num0=34, int_num1=34, pio_addr=0x1C110000, clock0='1MHz', clock1='1MHz') 520 timer1 = Sp804(int_num0=35, int_num1=35, pio_addr=0x1C120000, clock0='1MHz', clock1='1MHz') 521 clcd = Pl111(pio_addr=0x1c1f0000, int_num=46) |
521 hdlcd = HDLcd(pio_addr=0x2b000000, int_num=117) | 522 hdlcd = HDLcd(pxl_clk=realview_io.osc_pxl, 523 pio_addr=0x2b000000, int_num=117) |
522 kmi0 = Pl050(pio_addr=0x1c060000, int_num=44) 523 kmi1 = Pl050(pio_addr=0x1c070000, int_num=45, is_mouse=True) 524 vgic = VGic(vcpu_addr=0x2c006000, hv_addr=0x2c004000, ppint=25) 525 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=2, 526 io_shift = 2, ctrl_offset = 2, Command = 0x1, 527 BAR0 = 0x1C1A0000, BAR0Size = '256B', 528 BAR1 = 0x1C1A0100, BAR1Size = '4096B', 529 BAR0LegacyIO = True, BAR1LegacyIO = True) --- 153 unchanged lines hidden --- | 524 kmi0 = Pl050(pio_addr=0x1c060000, int_num=44) 525 kmi1 = Pl050(pio_addr=0x1c070000, int_num=45, is_mouse=True) 526 vgic = VGic(vcpu_addr=0x2c006000, hv_addr=0x2c004000, ppint=25) 527 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=2, 528 io_shift = 2, ctrl_offset = 2, Command = 0x1, 529 BAR0 = 0x1C1A0000, BAR0Size = '256B', 530 BAR1 = 0x1C1A0100, BAR1Size = '4096B', 531 BAR0LegacyIO = True, BAR1LegacyIO = True) --- 153 unchanged lines hidden --- |