Inter Processor Communication (IPC)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
53
7.3
IPC Registers
The details of IPC control registers are listed in Table 7-1.
Table 7-1 IPC control registers
Name
Address Offset
Access
KM0/KM4
Description
0x0000
WO
KM0/KM4
Interrupt Enable Register
1: Writing a ‘1’ to a bit of this register enables the corresponding
interrupt.
0: Writing a ‘0’ has no effect.
0x0004
WO
KM0/KM4
Interrupt Disable Register
1: Writing a ‘1’ to a bit of this register disables the corresponding
interrupt.
0: Writing a ‘0’ has no effect.
0x0008
WO
KM0/KM4
Interrupt Request Register
1: Writing a ‘1’ to a bit of this register sets the corresponding bit in
IPC
x
_ISR, and fires an interrupt into another processor.
0: Writing a ‘0’ has no effect.
0x000C
WO
KM0/KM4
Interrupt Clear Register
1: Writing a ‘1’ to a bit of this register clears the corresponding bit in
IPC
x
_ISR, and clears the interrupt caused by this bit.
0: Writing a ‘0’ has no effect.
0x0010
RO
KM0
CPUID. Just IPC0 has this register.
0: KM0 has got the lock.
1: KM4 has got the lock.
0x0014
RO
KM0/KM4
Interrupt Status Register
It shows the current pending IPC interrupts.
0x0018
R/W
KM0
Hardware Semaphore Register
Just IPC0 has this register, for IPC1 this register is reserved, because KM0
still gets lock when KM4 sleeps.
0x001C
RO
KM0/KM4
Current IER Read Register
The value of this register is the combination result of IPC
0x0020 ~ 0x004C
R/W
KM0/KM4
User-defined Register
12 dummy registers have been reserved for user. These registers can be
used for H2L/L2H command defined by user.
7.3.1
IPC
x
_IER
Name
: Interrupt Enable Register
Size
: 32 bits
Address offset
: 0x0000
Read/write access
: write-only
The IPC
x
_IER (
x
= {0, 1}) is used to enable IPC interrupts, and the interrupt mask can be read from IPC
31
30
29
28
27
…
4
3
2
1
0
IPC_IER
x
WO
Bit
Name
Access
Default
Description
31:0
IPC_IER
x
WO
0
Writing a ‘1’ to a bit of this register enables the corresponding interrupt.
Writing a ‘0’ has no effect.
Realtek confidential files
SZ99iot
2019-05-15 10:08:03