mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
unicore32-softmmu: Add puv3 pm support
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Thank Blue Swirl for pointing out the missing "break". v1->v2: Add initialization to ret in puv3_pm_read. Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
a89d01c192
commit
f716c1973a
3 changed files with 151 additions and 0 deletions
|
@ -48,6 +48,7 @@ static void puv3_soc_init(CPUUniCore32State *env)
|
|||
}
|
||||
|
||||
/* Initialize minimal necessary devices for kernel booting */
|
||||
sysbus_create_simple("puv3_pm", PUV3_PM_BASE, NULL);
|
||||
sysbus_create_simple("puv3_ost", PUV3_OST_BASE, irqs[PUV3_IRQS_OST0]);
|
||||
sysbus_create_varargs("puv3_gpio", PUV3_GPIO_BASE,
|
||||
irqs[PUV3_IRQS_GPIOLOW0], irqs[PUV3_IRQS_GPIOLOW1],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue