RealView.py (8524:1ddd1aa0e55b) RealView.py (8525:5f3fe76e7950)
1# Copyright (c) 2009 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

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

38#
39# Authors: Ali Saidi
40# Gabe Black
41# William Wang
42
43from m5.params import *
44from m5.proxy import *
45from Device import BasicPioDevice, PioDevice, IsaFake, BadAddr, DmaDevice
1# Copyright (c) 2009 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

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

38#
39# Authors: Ali Saidi
40# Gabe Black
41# William Wang
42
43from m5.params import *
44from m5.proxy import *
45from Device import BasicPioDevice, PioDevice, IsaFake, BadAddr, DmaDevice
46from Pci import PciConfigAll
47from Ethernet import NSGigE, IGbE_e1000, IGbE_igb
46from Ide import *
47from Platform import Platform
48from Terminal import Terminal
49from Uart import Uart
50
51class AmbaDevice(BasicPioDevice):
52 type = 'AmbaDevice'
53 abstract = True

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

127 type = 'Pl111'
128 clock = Param.Clock('24MHz', "Clock speed of the input")
129 vnc = Param.VncServer(Parent.any, "Vnc server for remote frame buffer display")
130 amba_id = 0x00141111
131
132class RealView(Platform):
133 type = 'RealView'
134 system = Param.System(Parent.any, "system")
48from Ide import *
49from Platform import Platform
50from Terminal import Terminal
51from Uart import Uart
52
53class AmbaDevice(BasicPioDevice):
54 type = 'AmbaDevice'
55 abstract = True

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

129 type = 'Pl111'
130 clock = Param.Clock('24MHz', "Clock speed of the input")
131 vnc = Param.VncServer(Parent.any, "Vnc server for remote frame buffer display")
132 amba_id = 0x00141111
133
134class RealView(Platform):
135 type = 'RealView'
136 system = Param.System(Parent.any, "system")
137 pci_cfg_base = Param.Addr(0, "Base address of PCI Configuraiton Space")
135
136# Reference for memory map and interrupt number
137# RealView Platform Baseboard Explore for Cortex-A9 User Guide(ARM DUI 0440A)
138# Chapter 4: Programmer's Reference
139class RealViewPBX(RealView):
140 uart = Pl011(pio_addr=0x10009000, int_num=44)
141 realview_io = RealViewCtrl(pio_addr=0x10000000)
142 gic = Gic()
143 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
144 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
145 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0x1f000600)
146 clcd = Pl111(pio_addr=0x10020000, int_num=55)
147 kmi0 = Pl050(pio_addr=0x10006000, int_num=52)
148 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, is_mouse=True)
149 a9scu = A9SCU(pio_addr=0x1f000000)
138
139# Reference for memory map and interrupt number
140# RealView Platform Baseboard Explore for Cortex-A9 User Guide(ARM DUI 0440A)
141# Chapter 4: Programmer's Reference
142class RealViewPBX(RealView):
143 uart = Pl011(pio_addr=0x10009000, int_num=44)
144 realview_io = RealViewCtrl(pio_addr=0x10000000)
145 gic = Gic()
146 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
147 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
148 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0x1f000600)
149 clcd = Pl111(pio_addr=0x10020000, int_num=55)
150 kmi0 = Pl050(pio_addr=0x10006000, int_num=52)
151 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, is_mouse=True)
152 a9scu = A9SCU(pio_addr=0x1f000000)
150 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0,
153 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=7, pci_bus=2,
151 io_shift = 1, ctrl_offset = 2, Command = 0x1,
152 BAR0 = 0x18000000, BAR0Size = '16B',
153 BAR1 = 0x18000100, BAR1Size = '1B',
154 BAR0LegacyIO = True, BAR1LegacyIO = True)
155
156
157 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff)
158 flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x20000000,

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

274 self.ssp_fake.pio = bus.port
275 self.sci_fake.pio = bus.port
276 self.aaci_fake.pio = bus.port
277 self.mmc_fake.pio = bus.port
278 self.rtc_fake.pio = bus.port
279 self.flash_fake.pio = bus.port
280 self.smcreg_fake.pio = bus.port
281
154 io_shift = 1, ctrl_offset = 2, Command = 0x1,
155 BAR0 = 0x18000000, BAR0Size = '16B',
156 BAR1 = 0x18000100, BAR1Size = '1B',
157 BAR0LegacyIO = True, BAR1LegacyIO = True)
158
159
160 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff)
161 flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x20000000,

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

277 self.ssp_fake.pio = bus.port
278 self.sci_fake.pio = bus.port
279 self.aaci_fake.pio = bus.port
280 self.mmc_fake.pio = bus.port
281 self.rtc_fake.pio = bus.port
282 self.flash_fake.pio = bus.port
283 self.smcreg_fake.pio = bus.port
284
282class VExpress(RealView):
285class VExpress_ELT(RealView):
286 pci_cfg_base = 0xD0000000
283 elba_uart = Pl011(pio_addr=0xE0009000, int_num=42)
284 uart = Pl011(pio_addr=0xFF009000, int_num=121)
285 realview_io = RealViewCtrl(proc_id0=0x0C000222, pio_addr=0xFF000000)
286 gic = Gic(dist_addr=0xE0201000, cpu_addr=0xE0200100)
287 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0xE0200600)
288 v2m_timer0 = Sp804(int_num0=120, int_num1=120, pio_addr=0xFF011000)
289 v2m_timer1 = Sp804(int_num0=121, int_num1=121, pio_addr=0xFF012000)
290 elba_timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0xE0011000, clock0='50MHz', clock1='50MHz')
291 elba_timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0xE0012000, clock0='50MHz', clock1='50MHz')
292 clcd = Pl111(pio_addr=0xE0022000, int_num=46) # CLCD interrupt no. unknown
293 kmi0 = Pl050(pio_addr=0xFF006000, int_num=124)
294 kmi1 = Pl050(pio_addr=0xFF007000, int_num=125)
295 elba_kmi0 = Pl050(pio_addr=0xE0006000, int_num=52)
296 elba_kmi1 = Pl050(pio_addr=0xE0007000, int_num=53)
297 a9scu = A9SCU(pio_addr=0xE0200000)
287 elba_uart = Pl011(pio_addr=0xE0009000, int_num=42)
288 uart = Pl011(pio_addr=0xFF009000, int_num=121)
289 realview_io = RealViewCtrl(proc_id0=0x0C000222, pio_addr=0xFF000000)
290 gic = Gic(dist_addr=0xE0201000, cpu_addr=0xE0200100)
291 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0xE0200600)
292 v2m_timer0 = Sp804(int_num0=120, int_num1=120, pio_addr=0xFF011000)
293 v2m_timer1 = Sp804(int_num0=121, int_num1=121, pio_addr=0xFF012000)
294 elba_timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0xE0011000, clock0='50MHz', clock1='50MHz')
295 elba_timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0xE0012000, clock0='50MHz', clock1='50MHz')
296 clcd = Pl111(pio_addr=0xE0022000, int_num=46) # CLCD interrupt no. unknown
297 kmi0 = Pl050(pio_addr=0xFF006000, int_num=124)
298 kmi1 = Pl050(pio_addr=0xFF007000, int_num=125)
299 elba_kmi0 = Pl050(pio_addr=0xE0006000, int_num=52)
300 elba_kmi1 = Pl050(pio_addr=0xE0007000, int_num=53)
301 a9scu = A9SCU(pio_addr=0xE0200000)
298 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0,
302 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=2,
299 io_shift = 2, ctrl_offset = 2, Command = 0x1,
300 BAR0 = 0xFF01A000, BAR0Size = '256B',
301 BAR1 = 0xFF01A100, BAR1Size = '4096B',
302 BAR0LegacyIO = True, BAR1LegacyIO = True)
303
303 io_shift = 2, ctrl_offset = 2, Command = 0x1,
304 BAR0 = 0xFF01A000, BAR0Size = '256B',
305 BAR1 = 0xFF01A100, BAR1Size = '4096B',
306 BAR0LegacyIO = True, BAR1LegacyIO = True)
307
308 pciconfig = PciConfigAll()
309 ethernet = IGbE_e1000(pci_bus=0, pci_dev=0, pci_func=0,
310 InterruptLine=1, InterruptPin=1)
311
312 ide = IdeController(disks = [], pci_bus=0, pci_dev=1, pci_func=0,
313 InterruptLine=2, InterruptPin=2)
314
304 l2x0_fake = IsaFake(pio_addr=0xE0202000, pio_size=0xfff)
305 dmac_fake = AmbaFake(pio_addr=0xE0020000)
306 uart1_fake = AmbaFake(pio_addr=0xE000A000)
307 uart2_fake = AmbaFake(pio_addr=0xE000B000)
308 uart3_fake = AmbaFake(pio_addr=0xE000C000)
309 smc_fake = AmbaFake(pio_addr=0xEC000000)
310 sp810_fake = AmbaFake(pio_addr=0xFF001000, ignore_access=True)
311 watchdog_fake = AmbaFake(pio_addr=0xE0010000)

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

336 self.elba_timer0.pio = bus.port
337 self.elba_timer1.pio = bus.port
338 self.clcd.pio = bus.port
339 self.kmi0.pio = bus.port
340 self.kmi1.pio = bus.port
341 self.elba_kmi0.pio = bus.port
342 self.elba_kmi1.pio = bus.port
343 self.cf_ctrl.pio = bus.port
315 l2x0_fake = IsaFake(pio_addr=0xE0202000, pio_size=0xfff)
316 dmac_fake = AmbaFake(pio_addr=0xE0020000)
317 uart1_fake = AmbaFake(pio_addr=0xE000A000)
318 uart2_fake = AmbaFake(pio_addr=0xE000B000)
319 uart3_fake = AmbaFake(pio_addr=0xE000C000)
320 smc_fake = AmbaFake(pio_addr=0xEC000000)
321 sp810_fake = AmbaFake(pio_addr=0xFF001000, ignore_access=True)
322 watchdog_fake = AmbaFake(pio_addr=0xE0010000)

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

347 self.elba_timer0.pio = bus.port
348 self.elba_timer1.pio = bus.port
349 self.clcd.pio = bus.port
350 self.kmi0.pio = bus.port
351 self.kmi1.pio = bus.port
352 self.elba_kmi0.pio = bus.port
353 self.elba_kmi1.pio = bus.port
354 self.cf_ctrl.pio = bus.port
355 self.ide.pio = bus.port
356 self.ethernet.pio = bus.port
357 self.pciconfig.pio = bus.default
358 bus.use_default_range = True
359
344 self.l2x0_fake.pio = bus.port
345 self.dmac_fake.pio = bus.port
346 self.uart1_fake.pio = bus.port
347 self.uart2_fake.pio = bus.port
348 self.uart3_fake.pio = bus.port
349 self.smc_fake.pio = bus.port
350 self.sp810_fake.pio = bus.port
351 self.watchdog_fake.pio = bus.port
352 self.aaci_fake.pio = bus.port
353 self.elba_aaci_fake.pio = bus.port
354 self.mmc_fake.pio = bus.port
355 self.rtc_fake.pio = bus.port
356 self.spsc_fake.pio = bus.port
357 self.lan_fake.pio = bus.port
358 self.usb_fake.pio = bus.port
359
360 self.l2x0_fake.pio = bus.port
361 self.dmac_fake.pio = bus.port
362 self.uart1_fake.pio = bus.port
363 self.uart2_fake.pio = bus.port
364 self.uart3_fake.pio = bus.port
365 self.smc_fake.pio = bus.port
366 self.sp810_fake.pio = bus.port
367 self.watchdog_fake.pio = bus.port
368 self.aaci_fake.pio = bus.port
369 self.elba_aaci_fake.pio = bus.port
370 self.mmc_fake.pio = bus.port
371 self.rtc_fake.pio = bus.port
372 self.spsc_fake.pio = bus.port
373 self.lan_fake.pio = bus.port
374 self.usb_fake.pio = bus.port
375