RealView.py (8461:7d0669201f80) RealView.py (8512:a508c2d92d63)
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

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

103 type = 'Sp804'
104 gic = Param.Gic(Parent.any, "Gic to use for interrupting")
105 int_num0 = Param.UInt32("Interrupt number that connects to GIC")
106 clock0 = Param.Clock('1MHz', "Clock speed of the input")
107 int_num1 = Param.UInt32("Interrupt number that connects to GIC")
108 clock1 = Param.Clock('1MHz', "Clock speed of the input")
109 amba_id = 0x00141804
110
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

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

103 type = 'Sp804'
104 gic = Param.Gic(Parent.any, "Gic to use for interrupting")
105 int_num0 = Param.UInt32("Interrupt number that connects to GIC")
106 clock0 = Param.Clock('1MHz', "Clock speed of the input")
107 int_num1 = Param.UInt32("Interrupt number that connects to GIC")
108 clock1 = Param.Clock('1MHz', "Clock speed of the input")
109 amba_id = 0x00141804
110
111class CpuLocalTimer(BasicPioDevice):
112 type = 'CpuLocalTimer'
113 gic = Param.Gic(Parent.any, "Gic to use for interrupting")
114 int_num_timer = Param.UInt32("Interrrupt number used per-cpu to GIC")
115 int_num_watchdog = Param.UInt32("Interrupt number for per-cpu watchdog to GIC")
116 clock = Param.Clock('1GHz', "Clock speed at which the timer counts")
117
111class Pl050(AmbaIntDevice):
112 type = 'Pl050'
113 vnc = Param.VncServer(Parent.any, "Vnc server for remote frame buffer display")
114 is_mouse = Param.Bool(False, "Is this interface a mouse, if not a keyboard")
115 int_delay = '1us'
116 amba_id = 0x00141050
117
118class Pl111(AmbaDmaDevice):

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

129# RealView Platform Baseboard Explore for Cortex-A9 User Guide(ARM DUI 0440A)
130# Chapter 4: Programmer's Reference
131class RealViewPBX(RealView):
132 uart = Pl011(pio_addr=0x10009000, int_num=44)
133 realview_io = RealViewCtrl(pio_addr=0x10000000)
134 gic = Gic()
135 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
136 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
118class Pl050(AmbaIntDevice):
119 type = 'Pl050'
120 vnc = Param.VncServer(Parent.any, "Vnc server for remote frame buffer display")
121 is_mouse = Param.Bool(False, "Is this interface a mouse, if not a keyboard")
122 int_delay = '1us'
123 amba_id = 0x00141050
124
125class Pl111(AmbaDmaDevice):

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

136# RealView Platform Baseboard Explore for Cortex-A9 User Guide(ARM DUI 0440A)
137# Chapter 4: Programmer's Reference
138class RealViewPBX(RealView):
139 uart = Pl011(pio_addr=0x10009000, int_num=44)
140 realview_io = RealViewCtrl(pio_addr=0x10000000)
141 gic = Gic()
142 timer0 = Sp804(int_num0=36, int_num1=36, pio_addr=0x10011000)
143 timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
144 local_cpu_timer = CpuLocalTimer(int_num_timer=29, int_num_watchdog=30, pio_addr=0x1f000600)
137 clcd = Pl111(pio_addr=0x10020000, int_num=55)
138 kmi0 = Pl050(pio_addr=0x10006000, int_num=52)
139 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, is_mouse=True)
140 a9scu = A9SCU(pio_addr=0x1f000000)
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',

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

165 rtc_fake = AmbaFake(pio_addr=0x10017000, amba_id=0x41031)
166
167
168 # Attach I/O devices that are on chip
169 def attachOnChipIO(self, bus):
170 self.gic.pio = bus.port
171 self.l2x0_fake.pio = bus.port
172 self.a9scu.pio = bus.port
145 clcd = Pl111(pio_addr=0x10020000, int_num=55)
146 kmi0 = Pl050(pio_addr=0x10006000, int_num=52)
147 kmi1 = Pl050(pio_addr=0x10007000, int_num=53, is_mouse=True)
148 a9scu = A9SCU(pio_addr=0x1f000000)
149 cf_ctrl = IdeController(disks=[], pci_func=0, pci_dev=0, pci_bus=0,
150 io_shift = 1, ctrl_offset = 2, Command = 0x1,
151 BAR0 = 0x18000000, BAR0Size = '16B',
152 BAR1 = 0x18000100, BAR1Size = '1B',

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

173 rtc_fake = AmbaFake(pio_addr=0x10017000, amba_id=0x41031)
174
175
176 # Attach I/O devices that are on chip
177 def attachOnChipIO(self, bus):
178 self.gic.pio = bus.port
179 self.l2x0_fake.pio = bus.port
180 self.a9scu.pio = bus.port
181 self.local_cpu_timer.pio = bus.port
173
174 # Attach I/O devices to specified bus object. Can't do this
175 # earlier, since the bus object itself is typically defined at the
176 # System level.
177 def attachIO(self, bus):
178 self.uart.pio = bus.port
179 self.realview_io.pio = bus.port
180 self.timer0.pio = bus.port

--- 91 unchanged lines hidden ---
182
183 # Attach I/O devices to specified bus object. Can't do this
184 # earlier, since the bus object itself is typically defined at the
185 # System level.
186 def attachIO(self, bus):
187 self.uart.pio = bus.port
188 self.realview_io.pio = bus.port
189 self.timer0.pio = bus.port

--- 91 unchanged lines hidden ---