Lines Matching +full:bcm2835 +full:- +full:pm
2 * BCM2835 Power Management emulation
8 * See the COPYING file in the top-level directory.
35 res = s->rstc; in bcm2835_powermgt_read()
38 res = s->rsts; in bcm2835_powermgt_read()
41 res = s->wdog; in bcm2835_powermgt_read()
72 s->rstc = value; in bcm2835_powermgt_write()
74 if ((s->rsts & 0xfff) == V_RSTS_POWEROFF) { in bcm2835_powermgt_write()
84 s->rsts = value; in bcm2835_powermgt_write()
89 s->wdog = value; in bcm2835_powermgt_write()
124 memory_region_init_io(&s->iomem, obj, &bcm2835_powermgt_ops, s, in bcm2835_powermgt_init()
126 sysbus_init_mmio(SYS_BUS_DEVICE(s), &s->iomem); in bcm2835_powermgt_init()
133 /* https://elinux.org/BCM2835_registers#PM */ in bcm2835_powermgt_reset()
134 s->rstc = 0x00000102; in bcm2835_powermgt_reset()
135 s->rsts = 0x00001000; in bcm2835_powermgt_reset()
136 s->wdog = 0x00000000; in bcm2835_powermgt_reset()
144 dc->vmsd = &vmstate_bcm2835_powermgt; in bcm2835_powermgt_class_init()