STRUCT MTK_SPI_COMPATIBLE(9)
π« struct mtk_spi_compatible(9) π«
okay so bestie, welcome to the Kernel API Manual page for struct mtk_spi_compatible β yes that whole mouthful β and no, we are not skipping a single field, because every one of these bools is doing something π«Ά
β¨ NAME β¨
struct mtk_spi_compatible β the device data structure. that's it, that's the vibe. it's the little bundle of "which quirks does this SPI controller have" flags. lowkey iconic.
πΈ SYNOPSIS πΈ
here's the whole thing, character for character, no cap:
struct mtk_spi_compatible {
bool need_pad_sel;
bool must_tx;
bool enhance_timing;
bool dma_ext;
bool no_need_unprepare;
bool ipm_design;
};
six bools. six little switches. each one tells the driver how this particular controller wants to be handled π
π¦ Members π¦
okay so let's go through them one by one, bestie, no skipping:
need_pad_selβ turns on pad (pins) selection in the SPI controller. like, the controller gets to pick which pads it's actually talking through. pins matters, periodt β¨must_txβ means you must explicitly send dummy TX bytes in order to do an RX only transfer. no sneaky receive-only shortcut here, the hardware wants its lil fake transmissions first πenhance_timingβ enables adjusting the cfg register to enhance time accuracy. yes bestie, we're fiddling with the config register for better timing precision π₯dma_extβ DMA address extension is supported. bigger addresses, more reach, main character energy πno_need_unprepareβ says don't unprepare the SPI clk during runtime. like leave the clock alone, it's fine, it's thriving πipm_designβ adjust/extend registers to support IPM design IP features. register glow-up, basically π
π SEE ALSO π
- Kernel file
./drivers/spi/spi-mt65xx.c struct mtk_spi(9)
go read those, iykyk π§
fr fr, this struct is just a compatibility checklist in disguise. tiny, but it's giving essential π
mwah π that's the whole page β brought to you from ./drivers/spi, dated October 2026, under the Kernel API Manual. stay hydrated, read your structs, and slay β¨π¦πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms