b643e4b90b
hw/arm/pic_cpu: Remove the now-unneeded arm_pic_init_cpu()
...
Now all the boards have been converted arm_pic_init_cpu()
is unused and can just be deleted.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-15-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:31 +01:00
e4a6540ded
hw/arm/xilinx_zynq: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-14-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
fe9120a5d1
hw/arm/vexpress: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-13-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
bace999f8a
hw/arm/versatilepb: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-12-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
4f071cf9b5
hw/arm/strongarm: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-11-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
033ee5a5ac
hw/arm/realview: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-10-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
437f0f10a4
hw/arm/omap*: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-9-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
fcef61ec6b
hw/arm/musicpal: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-8-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
2f69ba1736
hw/arm/kzm: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-7-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
99d228d6e9
hw/arm/integratorcp: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-6-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
9188dbf71a
hw/arm/highbank: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-5-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
ad666d91f4
hw/arm/exynos4210: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-4-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:28 +01:00
de3a658f5b
hw/arm/armv7m: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-3-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:28 +01:00
7c1840b686
target-arm: Make IRQ and FIQ gpio lines on the CPU object
...
Now that ARMCPU is a subclass of DeviceState, we can make the
CPU's inbound IRQ and FIQ lines be simply gpio lines, which
means we can remove the odd arm_pic shim.
We retain the arm_pic_init_cpu() function as a backwards
compatibility shim layer so we can convert the board models
to get the IRQ and FIQ lines directly from the ARMCPU
object one at a time.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-2-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:28 +01:00
be2f78b6b0
pxa2xx: Avoid object_get_link_property() assertion for "parent_bus"
...
pxa2xx_i2c_init() creates a pxa2xx-i2c-slave device on a second i2c-bus,
which has a NULL parent device. This causes an assertion in
object_get_canonical_path() when accessing pxa2xx-i2c-slave's
"parent_bus" link<bus> property in tosa and likely other PXA2xx machines.
Fix this by using the pxa2xx_i2c device, created just before, as parent.
Signed-off-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
Message-id: 1375621501-5564-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-08-05 11:46:58 -05:00
cfc6b24578
versatilepb: QOM cast cleanup for vpb_sic_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
0ca81872f7
strongarm: QOM cast cleanup for StrongARMSSPState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
fff3af97b9
strongarm: QOM cast cleanup for StrongARMUARTState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
c71e673291
strongarm: QOM cast cleanup for StrongARMPPCInfo
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
f55beb8477
strongarm: QOM cast cleanup for StrongARMGPIOInfo
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
4e00210522
strongarm: QOM cast cleanup for StrongARMRTCState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
74e075f6fb
strongarm: QOM cast cleanup for StrongARMPICState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
7df7f67ae1
stellaris: QOM cast cleanup for stellaris_adc_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
d94a40156b
stellaris: QOM cast cleanup for stellaris_i2c_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
8ef1d3947e
stellaris: QOM cast cleanup for gptm_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
73e9d965dd
spitz: QOM cast cleanup for SpitzKeyboardState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
7eb8104a9c
spitz: QOM cast cleanup for SLNANDState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
6050ed5fb9
pxa2xx_pic: QOM cast cleanup for PXA2xxPICState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
922bb317e4
pxa2xx_gpio: QOM cast cleanup for PXA2xxGPIOInfo
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
5354c21ef9
pxa2xx: QOM cast cleanup for PXA2xxI2CState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
548c6f188e
pxa2xx: QOM cast cleanup for PXA2xxRTCState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
12a828041c
pxa2xx: QOM cast cleanup for PXA2xxSSPState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
3bdf5327c9
musicpal: QOM cast cleanup for musicpal_key_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
7012d4b46b
musicpal: QOM cast cleanup for musicpal_gpio_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
5952b01cf8
musicpal: QOM cast cleanup for mv88w8618_flashcfg
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
4adc8541d9
musicpal: QOM cast cleanup for mv88w8618_pit_state
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
c7bd0fd945
musicpal: QOM cast cleanup mv88w8618_pic_state
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:19 +02:00
2cca58fdc2
musicpal: QOM cast cleanup for musicpal_lcd_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
a77d90e68a
musicpal: QOM cast cleanup for mv88w8618_eth_state
...
Introduce type constant and use QOM casts.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
2c79fed33b
musicpal: Fix typo in name of local function
...
The misspelling was spotted by Andreas Färber.
Signed-off-by: Stefan Weil <sw@weilnetz.de >
Reviewed-by: Jan Kiszka <jan.kiszka@web.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
91b646264e
integratorcp: QOM cast cleanup for icp_pic_state
...
Introduce type constant and use QOM cast.
Fix indentation.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
257ec289b2
integratorcp: QOM cast cleanup for integratorcm_state
...
Rename to IntegratorCMState, introduce type constant and use QOM cast.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
426533faed
highbank: QOM cast cleanup for HighbankRegsState
...
Add type constant and use QOM casts.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
936230a713
armv7m: QOM cast cleanup for BitBandState
...
Introduce TYPE_* constant and use QOM cast.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:06 +02:00
fd76663e3f
hw/arm: Use 'load_ramdisk()' for loading ramdisks w/ U-Boot header
...
The load_ramdisk function is used to load ramdisk featuring a U-Boot
header.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1373323202-17083-3-git-send-email-soren.brinkmann@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-07-22 12:01:37 +01:00
c8a07b355d
vexpress: Add virtio-mmio transports
...
Add some virtio-mmio transports to the vexpress board model,
together with a modify_dtb hook which adds them to the device
tree so that the kernel will probe for them. We put them
in a reserved area of the address map.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1373977512-28932-9-git-send-email-peter.maydell@linaro.org
2013-07-19 12:58:47 +01:00
cef04a26e7
vexpress: Make VEDBoardInfo extend arm_boot_info
...
Make the VEDBoardInfo struct extend arm_boot_info; this will
allow us to get at the VEDBoardInfo information inside callbacks
from arm/boot code.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1373977512-28932-8-git-send-email-peter.maydell@linaro.org
2013-07-19 12:58:47 +01:00
3b1cceb8b5
arm/boot: Allow boards to modify the FDT blob
...
Add a callback hook in arm_boot_info to allow board models to
modify the device tree blob if they need to. (The major expected
use case is to add virtio-mmio nodes for virtio-mmio transports
that exist in QEMU but not in the hardware.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1373977512-28932-7-git-send-email-peter.maydell@linaro.org
2013-07-19 12:58:47 +01:00
70976c41c1
arm/boot: Use qemu_devtree_setprop_sized_cells()
...
Replace the opencoded assembly of the reg property array for the
/memory node with a call to qemu_devtree_setprop_sized_cells().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: 1373977512-28932-3-git-send-email-peter.maydell@linaro.org
2013-07-19 12:58:46 +01:00
b25a83f053
ARM/highbank: add support for Calxeda ECX-2000 / Midway
...
The Calxeda ECX-2000 chip (aka. Midway) is model-wise quite similar
to the Highbank. The most prominent difference is the Cortex-A15 CPU
core in it, together with the associated core peripherals.
Add a new ARM machine type called "midway".
Move the L2 cache controller device into the Highbank specific part,
since Midway does not have (and need) it.
Signed-off-by: Andre Przywara <andre.przywara@calxeda.com >
Message-id: 1373026897-12085-3-git-send-email-andre.przywara@calxeda.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-07-15 16:25:57 +01:00