STRUCT MARVELL_NAND_CHIP_SEL(9)
π struct marvell_nand_chip_sel(9) β Kernel API Manual π
okay bestie, this is the Kernel API Manual page for struct marvell_nand_chip_sel, and it is literally a CS line description. no cap, we're going through every field and note. π
π NAME π
struct marvell_nand_chip_sel β CS line description π
β¨ SYNOPSIS β¨
struct marvell_nand_chip_sel {
unsigned int cs;
u32 ndcb0_csel;
unsigned int rb;
};
π Members π
csβ the wanted CE lane. π―ndcb0_cselβ value of theNDCB0register, with or without the flag selecting the wanted CE lane. This is set once when the Device Tree is probed. β¨rbβ the Ready/Busy pin for the flash chip. β
πΈ Description πΈ
okay so the Nand Flash Controller has up to 4 CE and 2 RB pins. The CE selection is made by a field in the NDCB0 register, and in another field in the NDCB2 register. The datasheet describes the logic with an error: the ADDR5 field is once declared at the beginning of NDCB2, and another time at its end. Because the ADDR5 field of NDCB2 may be used by other bytes, it would be more logical to use the last bit of this field instead of the first ones. π
Not me side-eyeing that datasheet error π but anyway, that's the whole vibe.
π¦ SEE ALSO π¦
- Kernel file:
./drivers/mtd/nand/raw/marvell_nand.c struct marvell_hw_ecc_layout(9)struct marvell_nand_chip(9)struct marvell_nfc_caps(9)struct marvell_nfc(9)struct marvell_nfc_timings(9)TO_CYCLES(9)struct marvell_nfc_op(9)
xoxo, your Kernel API Manual bestie π β source/version: ./drivers/mtd/nand/raw, date: October 2026. Periodt. π«Ά
π¦ 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