/* * Provision is available on some SPEAr SoCs to control ARM PL022 spi cs * through system registers. This register lies outside spi (pl022) * address space into system registers. * * It provides control for spi chip select lines so that any chipselect * (out of 4 possible chipselects in pl022) can be made low to select * the particular slave.
*/
/** * struct spear_spics - represents spi chip select control * @base: base address * @perip_cfg: configuration register * @sw_enable_bit: bit to enable s/w control over chipselects * @cs_value_bit: bit to program high or low chipselect * @cs_enable_mask: mask to select bits required to select chipselect * @cs_enable_shift: bit pos of cs_enable_mask * @use_count: use count of a spi controller cs lines * @last_off: stores last offset caller of set_value() * @chip: gpio_chip abstraction
*/ struct spear_spics { void __iomem *base;
u32 perip_cfg;
u32 sw_enable_bit;
u32 cs_value_bit;
u32 cs_enable_mask;
u32 cs_enable_shift; unsignedlong use_count; int last_off; struct gpio_chip chip;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.