48typedef enum : uint64_t {
54typedef enum : uint8_t {
62typedef enum : uint32_t {
112 return (uint64_t)
s_pdctr.pdctrgd;
168 " PWR-GRAPHICS : PDCTRGD writes DROPPED=%u (PRCR.PRC1 locked: unlock 0xA502)\n",
175 (void)
priv_emu_io_errf(
" PWR-GRAPHICS : graphics power domain on (DRW/GLCDC/MIPI/VIN)\n");
188 .name =
"PWR-GRAPHICS",
Decentralized peripheral-block registry for the board emulator core.
void board_periph_register_block(const board_periph_block_t *block)
Register a peripheral block's descriptor with the core registry.
static pdctr_state_t s_pdctr
pdctr_mask_t
PDCTRGD field masks (HUM Ch 11.2.14 p 452).
@ k_pdctr_pdpgsf_mask
PDPGSF @ bit 7: 1 = gated off.
@ k_pdctr_reset_value
"Value after reset": gated off.
@ k_pdctr_pdde_mask
PDDE @ bit 0: 1 = power OFF.
@ k_pdctr_pdcsf_mask
PDCSF @ bit 6: control busy.
static void internal_pdctr_block_register(void)
Register the power-domain block before main (host constructor).
bool priv_board_pdctr_graphics_powered(void)
Report whether the graphics power domain is currently powered.
static const board_periph_block_t s_k_pdctr_block
Graphics power-domain block descriptor (self-registered).
static void internal_pdctr_report(void)
End-of-run graphics power-domain section.
pdctr_geom_t
PDCTRGD window geometry (HUM Ch 11.2.14 p 452).
@ k_pdctr_gd_span
One 8-bit register.
@ k_pdctr_gd_base
PDCTRGD: SYSC 0x4001_E000 + 0x110.
static void internal_pdctr_write(uc_engine *uc, uint64_t addr, unsigned size, uint64_t value)
MMIO write of PDCTRGD: apply PDDE, settle the gating flags.
static void internal_pdctr_reset(void)
Return PDCTRGD to its documented reset value: domain gated OFF.
static uint64_t internal_pdctr_read(uc_engine *uc, uint64_t addr, unsigned size)
MMIO read of PDCTRGD: PDDE as written, status flags derived.
pdctr_order_t
Per-tick order slot for the power-domain block.
@ k_pdctr_block_order
Between PRCR and the VBATT block.
Module-private graphics power-domain state for the gated blocks.
Module-private PRCR unlock state shared with the protected blocks.
bool priv_board_prcr_group_unlocked(uint16_t group_mask)
Report whether every bit in group_mask is currently unlocked.
@ k_board_prcr_grp1_lpm
PRC1: low-power modes + VBATT backup.
Bounded raw-descriptor I/O seam for the RA8 emulator.
emu_io_result_t priv_emu_io_errf(const char *format,...)
Format bounded text and write it to the injected error descriptor.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
A modelled peripheral block's self-description for the core registry.
Graphics power-domain state.
uint32_t power_on
Times the domain was powered on (report).
uint8_t pdctrgd
Live PDCTRGD value (PDDE + status flags).
uint32_t blocked
Writes dropped while PRCR.PRC1 was locked.