|
PebbleOS v4.47.0-160-g9e782207f
|
SiFli SF32LB low-power CPU. More...
Data Structures | |
| struct | pbl_rproc_sf32lb_range |
Memory as the LCPU sees it, from dma-ranges. More... | |
| struct | pbl_rproc_sf32lb |
| SF32LB LCPU. More... | |
| struct | pbl_rproc_sf32lb.rf |
| Blocks the radio calibration programs, by base address. More... | |
Macros | |
| #define | PBL_RPROC_SF32LB_DEFINE(sym, _name, _patch_base, _tx_chan, _rx_chan, _mem_base, _mem_size, _sram_base, _sram_size, _r0_da, _r0_pa, _r0_size, _r1_da, _r1_pa, _r1_size, _hclk, _pclk, _pclk2, _lpclk, _rfc, _phy, _capture, _mac, _gpadc, _dmac, _lpsys_rcc, _hpsys_cfg, _pmuc) |
| Define the LCPU. | |
Functions | |
| uintptr_t | pbl_rproc_sf32lb_da (const struct pbl_rproc_sf32lb *lcpu, uintptr_t pa) |
| The address at which the LCPU sees memory of this CPU. | |
SiFli SF32LB low-power CPU.
The LCPU runs the Bluetooth controller from ROM, which the driver configures, patches and calibrates on start. The controller exchanges HCI with the HCPU over byte rings signalled with a pair of doorbells; the LCPU to HCPU ring sits in LPSYS RAM, the HCPU to LCPU one in HCPU RAM reserved for it, whose address the driver hands to the ROM. The HCI transport takes the doorbells and the region from here.
| struct pbl_rproc_sf32lb_range |
| struct pbl_rproc_sf32lb |
SF32LB LCPU.
| Data Fields | ||
|---|---|---|
| struct pbl_clk | hclk | LCPU clock, and the APB clocks of LPSYS, set for the LCPU to load. |
| struct pbl_clk | lpclk | Low-power clock, from the RTC: the crystal or the RC oscillator. |
| struct pbl_mem_region | mem |
HCPU RAM reserved for the HCPU to LCPU ring (memory-region). |
| uintptr_t | patch_base | ROM patch controller base address. |
| struct pbl_clk | pclk | LPSYS APB clock. |
| struct pbl_clk | pclk2 | LPSYS second APB clock. |
| struct pbl_rproc_sf32lb_range | ranges[2] | Memory as the LCPU sees it: LPSYS SRAM through its code bus, then HPSYS SRAM. |
| struct pbl_rproc_sf32lb.rf | rf | Blocks the radio calibration programs, by base address. |
| struct pbl_rproc | rproc | Remote processor. |
| struct pbl_mbox_chan | rx_chan |
Doorbell from the LCPU (mboxes entry rx). |
| struct pbl_mem_region | sram |
LPSYS SRAM region the LCPU works in (sram). |
| struct pbl_mbox_chan | tx_chan |
Doorbell to the LCPU (mboxes entry tx). |
| struct pbl_rproc_sf32lb.rf |
Blocks the radio calibration programs, by base address.
| #define PBL_RPROC_SF32LB_DEFINE | ( | sym, | |
| _name, | |||
| _patch_base, | |||
| _tx_chan, | |||
| _rx_chan, | |||
| _mem_base, | |||
| _mem_size, | |||
| _sram_base, | |||
| _sram_size, | |||
| _r0_da, | |||
| _r0_pa, | |||
| _r0_size, | |||
| _r1_da, | |||
| _r1_pa, | |||
| _r1_size, | |||
| _hclk, | |||
| _pclk, | |||
| _pclk2, | |||
| _lpclk, | |||
| _rfc, | |||
| _phy, | |||
| _capture, | |||
| _mac, | |||
| _gpadc, | |||
| _dmac, | |||
| _lpsys_rcc, | |||
| _hpsys_cfg, | |||
| _pmuc | |||
| ) |
Define the LCPU.
| sym | Symbol. |
| _name | Device name. |
| _patch_base | ROM patch controller base address. |
| _tx_chan | Doorbell to the LCPU, from PBL_MBOX_CHAN(). |
| _rx_chan | Doorbell from the LCPU, from PBL_MBOX_CHAN(). |
| _mem_base | Base of the HCPU RAM reserved for the HCPU to LCPU ring. |
| _mem_size | Its size, in bytes. |
| _sram_base | Base of the LPSYS SRAM region the LCPU works in. |
| _sram_size | Its size, in bytes. |
| _r0_da | LCPU address of LPSYS SRAM through its code bus. |
| _r0_pa | Its address on this CPU. |
| _r0_size | Its size, in bytes. |
| _r1_da | LCPU address of HPSYS SRAM. |
| _r1_pa | Its address on this CPU. |
| _r1_size | Its size, in bytes. |
| _hclk | LCPU clock, from PBL_CLK(). |
| _pclk | LPSYS APB clock, from PBL_CLK(). |
| _pclk2 | LPSYS second APB clock, from PBL_CLK(). |
| uintptr_t pbl_rproc_sf32lb_da | ( | const struct pbl_rproc_sf32lb * | lcpu, |
| uintptr_t | pa | ||
| ) |
The address at which the LCPU sees memory of this CPU.
| lcpu | LCPU. |
| pa | Address on this CPU. |
pa.