RealView.py (8283:ea5a46abdcca) RealView.py (8299:64a938a8b7fc)
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

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

70 int_num = Param.UInt32("Interrupt number that connects to GIC")
71 amba_id = Param.UInt32("ID of AMBA device for kernel detection")
72
73class A9SCU(BasicPioDevice):
74 type = 'A9SCU'
75
76class RealViewCtrl(BasicPioDevice):
77 type = 'RealViewCtrl'
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

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

70 int_num = Param.UInt32("Interrupt number that connects to GIC")
71 amba_id = Param.UInt32("ID of AMBA device for kernel detection")
72
73class A9SCU(BasicPioDevice):
74 type = 'A9SCU'
75
76class RealViewCtrl(BasicPioDevice):
77 type = 'RealViewCtrl'
78 proc_id = Param.UInt32(0x0C000000, "Platform ID")
78 proc_id = Param.UInt32(0x0C000000, "Processor ID, SYS_PROCID")
79 idreg = Param.UInt32(0x00000000, "ID Register, SYS_ID")
79
80class Gic(PioDevice):
81 type = 'Gic'
82 dist_addr = Param.Addr(0x1f001000, "Address for distributor")
83 cpu_addr = Param.Addr(0x1f000100, "Address for cpu")
84 dist_pio_delay = Param.Latency('10ns', "Delay for PIO r/w to distributor")
85 cpu_pio_delay = Param.Latency('10ns', "Delay for PIO r/w to cpu interface")
86 int_latency = Param.Latency('10ns', "Delay for interrupt to get to CPU")

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

140 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0,
141 io_shift = 1, ctrl_offset = 2, Command = 0x1,
142 BAR0 = 0x18000000, BAR0Size = '16B',
143 BAR1 = 0x18000100, BAR1Size = '1B',
144 BAR0LegacyIO = True, BAR1LegacyIO = True)
145
146
147 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff)
80
81class Gic(PioDevice):
82 type = 'Gic'
83 dist_addr = Param.Addr(0x1f001000, "Address for distributor")
84 cpu_addr = Param.Addr(0x1f000100, "Address for cpu")
85 dist_pio_delay = Param.Latency('10ns', "Delay for PIO r/w to distributor")
86 cpu_pio_delay = Param.Latency('10ns', "Delay for PIO r/w to cpu interface")
87 int_latency = Param.Latency('10ns', "Delay for interrupt to get to CPU")

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

141 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0,
142 io_shift = 1, ctrl_offset = 2, Command = 0x1,
143 BAR0 = 0x18000000, BAR0Size = '16B',
144 BAR1 = 0x18000100, BAR1Size = '1B',
145 BAR0LegacyIO = True, BAR1LegacyIO = True)
146
147
148 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff)
148 flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x4000000)
149 flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x20000000)
149 dmac_fake = AmbaFake(pio_addr=0x10030000)
150 uart1_fake = AmbaFake(pio_addr=0x1000a000)
151 uart2_fake = AmbaFake(pio_addr=0x1000b000)
152 uart3_fake = AmbaFake(pio_addr=0x1000c000)
153 smc_fake = AmbaFake(pio_addr=0x100e1000)
154 sp810_fake = AmbaFake(pio_addr=0x10001000, ignore_access=True)
155 watchdog_fake = AmbaFake(pio_addr=0x10010000)
156 gpio0_fake = AmbaFake(pio_addr=0x10013000)

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

207 gic = Gic(dist_addr=0x10041000, cpu_addr=0x10040000)
208 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
209 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
210 clcd = Pl111(pio_addr=0x10020000, int_num=23)
211 kmi0 = Pl050(pio_addr=0x10006000, int_num=20)
212 kmi1 = Pl050(pio_addr=0x10007000, int_num=21, is_mouse=True)
213
214 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff, warn_access="1")
150 dmac_fake = AmbaFake(pio_addr=0x10030000)
151 uart1_fake = AmbaFake(pio_addr=0x1000a000)
152 uart2_fake = AmbaFake(pio_addr=0x1000b000)
153 uart3_fake = AmbaFake(pio_addr=0x1000c000)
154 smc_fake = AmbaFake(pio_addr=0x100e1000)
155 sp810_fake = AmbaFake(pio_addr=0x10001000, ignore_access=True)
156 watchdog_fake = AmbaFake(pio_addr=0x10010000)
157 gpio0_fake = AmbaFake(pio_addr=0x10013000)

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

208 gic = Gic(dist_addr=0x10041000, cpu_addr=0x10040000)
209 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
210 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
211 clcd = Pl111(pio_addr=0x10020000, int_num=23)
212 kmi0 = Pl050(pio_addr=0x10006000, int_num=20)
213 kmi1 = Pl050(pio_addr=0x10007000, int_num=21, is_mouse=True)
214
215 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff, warn_access="1")
216 flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x20000000-1)
215 dmac_fake = AmbaFake(pio_addr=0x10030000)
216 uart1_fake = AmbaFake(pio_addr=0x1000a000)
217 uart2_fake = AmbaFake(pio_addr=0x1000b000)
218 uart3_fake = AmbaFake(pio_addr=0x1000c000)
217 dmac_fake = AmbaFake(pio_addr=0x10030000)
218 uart1_fake = AmbaFake(pio_addr=0x1000a000)
219 uart2_fake = AmbaFake(pio_addr=0x1000b000)
220 uart3_fake = AmbaFake(pio_addr=0x1000c000)
221 smcreg_fake = IsaFake(pio_addr=0x10080000, pio_size=0x10000-1)
219 smc_fake = AmbaFake(pio_addr=0x100e1000)
220 sp810_fake = AmbaFake(pio_addr=0x10001000, ignore_access=True)
221 watchdog_fake = AmbaFake(pio_addr=0x10010000)
222 gpio0_fake = AmbaFake(pio_addr=0x10013000)
223 gpio1_fake = AmbaFake(pio_addr=0x10014000)
224 gpio2_fake = AmbaFake(pio_addr=0x10015000)
225 ssp_fake = AmbaFake(pio_addr=0x1000d000)
226 sci_fake = AmbaFake(pio_addr=0x1000e000)

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

256 self.gpio0_fake.pio = bus.port
257 self.gpio1_fake.pio = bus.port
258 self.gpio2_fake.pio = bus.port
259 self.ssp_fake.pio = bus.port
260 self.sci_fake.pio = bus.port
261 self.aaci_fake.pio = bus.port
262 self.mmc_fake.pio = bus.port
263 self.rtc_fake.pio = bus.port
222 smc_fake = AmbaFake(pio_addr=0x100e1000)
223 sp810_fake = AmbaFake(pio_addr=0x10001000, ignore_access=True)
224 watchdog_fake = AmbaFake(pio_addr=0x10010000)
225 gpio0_fake = AmbaFake(pio_addr=0x10013000)
226 gpio1_fake = AmbaFake(pio_addr=0x10014000)
227 gpio2_fake = AmbaFake(pio_addr=0x10015000)
228 ssp_fake = AmbaFake(pio_addr=0x1000d000)
229 sci_fake = AmbaFake(pio_addr=0x1000e000)

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

259 self.gpio0_fake.pio = bus.port
260 self.gpio1_fake.pio = bus.port
261 self.gpio2_fake.pio = bus.port
262 self.ssp_fake.pio = bus.port
263 self.sci_fake.pio = bus.port
264 self.aaci_fake.pio = bus.port
265 self.mmc_fake.pio = bus.port
266 self.rtc_fake.pio = bus.port
267 self.flash_fake.pio = bus.port
268 self.smcreg_fake.pio = bus.port
264
269