BaseCPU.py (13709:dd6b7ac5801f) BaseCPU.py (13711:e796a82c5154)
1# Copyright (c) 2012-2013, 2015-2017 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

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

360 node.append(FdtPropertyWords("reg", state.CPUAddrCells(reg)))
361 platform, found = self.system.unproxy(self).find_any(Platform)
362 if found:
363 platform.annotateCpuDeviceNode(node, state)
364 else:
365 warn("Platform not found for device tree generation; " \
366 "system or multiple CPUs may not start")
367
1# Copyright (c) 2012-2013, 2015-2017 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

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

360 node.append(FdtPropertyWords("reg", state.CPUAddrCells(reg)))
361 platform, found = self.system.unproxy(self).find_any(Platform)
362 if found:
363 platform.annotateCpuDeviceNode(node, state)
364 else:
365 warn("Platform not found for device tree generation; " \
366 "system or multiple CPUs may not start")
367
368 freq = round(self.clk_domain.unproxy(self).clock[0].frequency)
368 freq = int(self.clk_domain.unproxy(self).clock[0].frequency)
369 node.append(FdtPropertyWords("clock-frequency", freq))
370
371 # Unique key for this CPU
372 phandle_key = self.createPhandleKey(i)
373 node.appendPhandle(phandle_key)
374 cpus_node.append(node)
375
376 yield cpus_node
369 node.append(FdtPropertyWords("clock-frequency", freq))
370
371 # Unique key for this CPU
372 phandle_key = self.createPhandleKey(i)
373 node.appendPhandle(phandle_key)
374 cpus_node.append(node)
375
376 yield cpus_node