ENUM K230_RST_TYPE(9)
β¨ enum k230_rst_type(9) β¨
okay so bestie, welcome to the Kernel API Manual π
we're talking about enum k230_rst_type and honestly? it's giving "small but iconic." let's get into it π
πΈ NAME πΈ
enum k230_rst_type β the K230 reset types, aka the whole vibe check for how resets behave on this chip π
π¦ SYNOPSIS π¦
enum k230_rst_type {
RST_TYPE_CPU0 ,
RST_TYPE_CPU1 ,
RST_TYPE_FLUSH ,
RST_TYPE_HW_DONE ,
RST_TYPE_SW_DONE
};
literally the entire enum, no notes π
β Constants β
okay this is the part where you actually need to pay attention, bestie, because each one of these has its own whole personality π«Ά
RST_TYPE_CPU0β the reset type for CPU0. it automatically clears, and it's got a write enable and a done bit, and it's active high. so iconic of it β¨RST_TYPE_CPU1β reset type for CPU1. this one manually clears (not like its sibling, periodt), and it has a write enable and a done bit, active high π«RST_TYPE_FLUSHβ reset type for the CPU L2 cache flush. automatically clears, has a write enable, but no done bit β and it's active high. lowkey the minimal one of the group π§RST_TYPE_HW_DONEβ reset type for hardware auto clear. automatically clears, no write enable, but it does have a done bit, active high. it's giving "done bit main character energy" πRST_TYPE_SW_DONEβ reset type for software manual clear. manually clears, and here's the moment β it has no write enable and no done bit. and the polarity? active high if the ID isRST_SPI2AXI, otherwise active low. yes bestie, conditional polarity, we love a plot twist π
fr fr do not sleep on that last one β the RST_SPI2AXI condition is the whole thing. miss it and you're gonna have a bad time π
π₯ SEE ALSO π₯
- Kernel file
./drivers/reset/reset-k230.cβ go read it, that's where all this lives π
and that's the page!! no cap, you now know your reset types better than most people π
signed off with love from ./drivers/reset, dated October 2026 ππβ¨
π¦ 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