RealView.py (8212:134bd699967a) | RealView.py (8282:0cc4594abf28) |
---|---|
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 --- 56 unchanged lines hidden (view full) --- 65 type = 'AmbaDmaDevice' 66 abstract = True 67 pio_addr = Param.Addr("Address for AMBA slave interface") 68 pio_latency = Param.Latency("10ns", "Time between action and write/read result by AMBA DMA Device") 69 gic = Param.Gic(Parent.any, "Gic to use for interrupting") 70 int_num = Param.UInt32("Interrupt number that connects to GIC") 71 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 72 | 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 --- 56 unchanged lines hidden (view full) --- 65 type = 'AmbaDmaDevice' 66 abstract = True 67 pio_addr = Param.Addr("Address for AMBA slave interface") 68 pio_latency = Param.Latency("10ns", "Time between action and write/read result by AMBA DMA Device") 69 gic = Param.Gic(Parent.any, "Gic to use for interrupting") 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 |
|
73class RealViewCtrl(BasicPioDevice): 74 type = 'RealViewCtrl' 75 proc_id = Param.UInt32(0x0C000000, "Platform ID") 76 77class Gic(PioDevice): 78 type = 'Gic' 79 dist_addr = Param.Addr(0x1f001000, "Address for distributor") 80 cpu_addr = Param.Addr(0x1f000100, "Address for cpu") --- 46 unchanged lines hidden (view full) --- 127 uart = Pl011(pio_addr=0x10009000, int_num=44) 128 realview_io = RealViewCtrl(pio_addr=0x10000000) 129 gic = Gic() 130 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000) 131 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000) 132 clcd = Pl111(pio_addr=0x10020000, int_num=55) 133 kmi0 = Pl050(pio_addr=0x10006000, int_num=52) 134 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, is_mouse=True) | 76class RealViewCtrl(BasicPioDevice): 77 type = 'RealViewCtrl' 78 proc_id = Param.UInt32(0x0C000000, "Platform 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") --- 46 unchanged lines hidden (view full) --- 130 uart = Pl011(pio_addr=0x10009000, int_num=44) 131 realview_io = RealViewCtrl(pio_addr=0x10000000) 132 gic = Gic() 133 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000) 134 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000) 135 clcd = Pl111(pio_addr=0x10020000, int_num=55) 136 kmi0 = Pl050(pio_addr=0x10006000, int_num=52) 137 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, is_mouse=True) |
138 a9scu = A9SCU(pio_addr=0x1f000000) |
|
135 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0, 136 io_shift = 1, ctrl_offset = 2, Command = 0x1, 137 BAR0 = 0x18000000, BAR0Size = '16B', 138 BAR1 = 0x18000100, BAR1Size = '1B', 139 BAR0LegacyIO = True, BAR1LegacyIO = True) 140 141 142 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff) --- 14 unchanged lines hidden (view full) --- 157 mmc_fake = AmbaFake(pio_addr=0x10005000) 158 rtc_fake = AmbaFake(pio_addr=0x10017000, amba_id=0x41031) 159 160 161 # Attach I/O devices that are on chip 162 def attachOnChipIO(self, bus): 163 self.gic.pio = bus.port 164 self.l2x0_fake.pio = bus.port | 139 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0, 140 io_shift = 1, ctrl_offset = 2, Command = 0x1, 141 BAR0 = 0x18000000, BAR0Size = '16B', 142 BAR1 = 0x18000100, BAR1Size = '1B', 143 BAR0LegacyIO = True, BAR1LegacyIO = True) 144 145 146 l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff) --- 14 unchanged lines hidden (view full) --- 161 mmc_fake = AmbaFake(pio_addr=0x10005000) 162 rtc_fake = AmbaFake(pio_addr=0x10017000, amba_id=0x41031) 163 164 165 # Attach I/O devices that are on chip 166 def attachOnChipIO(self, bus): 167 self.gic.pio = bus.port 168 self.l2x0_fake.pio = bus.port |
169 self.a9scu.pio = bus.port |
|
165 166 # Attach I/O devices to specified bus object. Can't do this 167 # earlier, since the bus object itself is typically defined at the 168 # System level. 169 def attachIO(self, bus): 170 self.uart.pio = bus.port 171 self.realview_io.pio = bus.port 172 self.timer0.pio = bus.port --- 86 unchanged lines hidden --- | 170 171 # Attach I/O devices to specified bus object. Can't do this 172 # earlier, since the bus object itself is typically defined at the 173 # System level. 174 def attachIO(self, bus): 175 self.uart.pio = bus.port 176 self.realview_io.pio = bus.port 177 self.timer0.pio = bus.port --- 86 unchanged lines hidden --- |