RealView.py (8799:dac1e33e07b0) | RealView.py (8810:00f0d0230596) |
---|---|
1# Copyright (c) 2009-2011 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 --- 337 unchanged lines hidden (view full) --- 346 usb_fake = IsaFake(pio_addr=0xFB000000, pio_size=0x1ffff) 347 348 349 # Attach I/O devices that are on chip and also set the appropriate 350 # ranges for the bridge 351 def attachOnChipIO(self, bus, bridge): 352 self.gic.pio = bus.port 353 self.a9scu.pio = bus.port | 1# Copyright (c) 2009-2011 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 --- 337 unchanged lines hidden (view full) --- 346 usb_fake = IsaFake(pio_addr=0xFB000000, pio_size=0x1ffff) 347 348 349 # Attach I/O devices that are on chip and also set the appropriate 350 # ranges for the bridge 351 def attachOnChipIO(self, bus, bridge): 352 self.gic.pio = bus.port 353 self.a9scu.pio = bus.port |
354 self.local_cpu_timer.pio = bus.port |
|
354 # Bridge ranges based on excluding what is part of on-chip I/O 355 # (gic, a9scu) 356 bridge.ranges = [AddrRange(self.pci_cfg_base, self.a9scu.pio_addr - 1), | 355 # Bridge ranges based on excluding what is part of on-chip I/O 356 # (gic, a9scu) 357 bridge.ranges = [AddrRange(self.pci_cfg_base, self.a9scu.pio_addr - 1), |
357 AddrRange(self.local_cpu_timer.pio_addr, Addr.max)] | 358 AddrRange(self.l2x0_fake.pio_addr, Addr.max)] |
358 359 # Attach I/O devices to specified bus object. Can't do this 360 # earlier, since the bus object itself is typically defined at the 361 # System level. 362 def attachIO(self, bus): 363 self.elba_uart.pio = bus.port 364 self.uart.pio = bus.port 365 self.realview_io.pio = bus.port | 359 360 # Attach I/O devices to specified bus object. Can't do this 361 # earlier, since the bus object itself is typically defined at the 362 # System level. 363 def attachIO(self, bus): 364 self.elba_uart.pio = bus.port 365 self.uart.pio = bus.port 366 self.realview_io.pio = bus.port |
366 self.local_cpu_timer.pio = bus.port | |
367 self.v2m_timer0.pio = bus.port 368 self.v2m_timer1.pio = bus.port 369 self.elba_timer0.pio = bus.port 370 self.elba_timer1.pio = bus.port 371 self.clcd.pio = bus.port 372 self.clcd.dma = bus.port 373 self.kmi0.pio = bus.port 374 self.kmi1.pio = bus.port --- 30 unchanged lines hidden --- | 367 self.v2m_timer0.pio = bus.port 368 self.v2m_timer1.pio = bus.port 369 self.elba_timer0.pio = bus.port 370 self.elba_timer1.pio = bus.port 371 self.clcd.pio = bus.port 372 self.clcd.dma = bus.port 373 self.kmi0.pio = bus.port 374 self.kmi1.pio = bus.port --- 30 unchanged lines hidden --- |