Skip to main content

Module tlmm

Module tlmm 

Expand description

Pin configuration registers of the MDM9607 TLMM (Top Level Mode Multiplexer).

The TLMM starts at physical address 0x0100_0000. Each of its GPIOs has a 4 KiB register block. The first register of the block is GPIO_CFGn, and its bits 1:0 are the GPIO_PULL field.

The 3.18 kernel has no userspace API for the pull, so the registers are accessed through /dev/mem, like Quectel’s ql_peripheral does.

Structs§

ConfigRegister 🔒
Mapping of the GPIO_CFGn register of one pin.

Enums§

TlmmPin
GPIO of the TLMM.

Constants§

BASE 🔒
Physical address of the TLMM.
PULL_MASK 🔒
GPIO_PULL field of GPIO_CFGn.
STRIDE 🔒
Distance between the register blocks of two pins.